[03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]accept exits with 7 [03:30:33]New connection [03:30:33]New thread 3066801508 created [03:30:33]Thread 3066944868 joined [03:30:33]Waiting for new connection... [03:30:33] Sock 7.Parse request [03:30:33]Sock 7.Check first char [03:30:33]Sock 7.First char is OK [03:30:33]request: POST /json_proto HTTP/1.0 [03:30:33]Method: POST [03:30:33]URL: /json_proto [03:30:33]Method is POST - this is cgi request [03:30:33]url: /json_proto [03:30:33]query_string will be loaded in cgi processing [03:30:33]execute_cgi json_proto POST (null) [03:30:33]execute_cgi path=json_proto method=POST [03:30:33]POST find Content-Length [03:30:33]Host: 172.17.46.196:8080 [03:30:33]Content-Length: 886 [03:30:33]Content-Type: application/json [03:30:33] [03:30:33]POST finish read [03:30:33]Found Content-Length = 886 [03:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189926", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:33]execute_script... [03:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189926", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:33]POST & json_proto [03:30:33]process_json_proto [03:30:33]json parsed OK: [03:30:33]protocol is kg_v1.0 [03:30:33]action value=close_receipt [03:30:33]process_action close_receipt [03:30:33]cmd_close_receipt [03:30:33]MH_GetDate [03:30:33]Write to MH i2c: F0 00 00 20 41 50 [03:30:33]Write i2c OK [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: F0 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: F0 09 00 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: F0 09 00 20 41 00 E0 6A C1 66 07 E8 5D 66 7C [03:30:33]GetLastDocTimeStamp 1723948865 [03:30:33]current date 1723951840 [03:30:33]FM_GetShiftState [03:30:33]SAM_PROTO_GetShiftState [03:30:33]wFMCommunicate request_size=4 [03:30:33]MH_SAM_APDU [03:30:33]CAPDU: 80 13 01 00 [03:30:33]Write to MH i2c: E2 08 00 21 41 80 13 01 00 00 00 00 00 DF [03:30:33]Write i2c OK [03:30:33]MH_I2C_Read... [03:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:33]Read from MH i2c: E2 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: E2 0E 00 [03:30:33]MH_I2C_Read... [03:30:33]Read from MH i2c: E2 0E 00 21 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FC [03:30:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [03:30:33]wFMCommunicate OK [03:30:33]SAM_PROTO_GetShiftState done [03:30:33]FM_GetShiftState done [03:30:33]opened in 1723939759 [03:30:33]opened+sec_in_day 1724026159 [03:30:33]quantity*price = 8200 [03:30:33]sum+1 = 8201 [03:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 0.00 Безнал.: 82.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 13 18.08.2024 03:30 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49747 ФПД: 175373921844629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T033040&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49747&fm=175373921844629&tin=02508201610067®Number=0000000000092546&sum=8200 0 [03:30:34]StoreToDocumentArchive [03:30:34]shift 466 fd 49747 [03:30:34]save to /storage/0466/doc_00049747 [03:30:34]save last doc name /storage/0466/doc_00049747 to /storage/kkm_last_doc_name [03:30:34]save OK [03:30:34]Clear old archive folders... [03:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=304 [03:30:34]tlvbuf is 018EE970 [03:30:34]SAM_PROTO_ClearQueue [03:30:34]wFMCommunicate request_size=4 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 09 00 00 [03:30:34]Write to MH i2c: E2 08 00 2E 41 80 09 00 00 00 00 00 00 E1 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 2E 41 00 90 00 E3 [03:30:34]RAPDU: 90 00 [03:30:34]wFMCommunicate OK [03:30:34]SAM_PROTO_ClearQueue done [03:30:34]KKMCreateOFDPacket [03:30:34]OFDProtocolAddRootSTLVToBuf [03:30:34]FM_MakeSignedData [03:30:34]FM_MakeSignedData [03:30:34]SAM_PROTO_SignData [03:30:34]wFMCommunicate request_size=4 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 0D 01 02 [03:30:34]Write to MH i2c: E2 08 00 2F 41 80 0D 01 02 00 00 00 00 E9 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 2F 41 00 90 00 E4 [03:30:34]RAPDU: 90 00 [03:30:34]wFMCommunicate OK [03:30:34]wFMCommunicate request_size=255 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E0 6A C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 [03:30:34]Write to MH i2c: E2 02 01 30 41 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E0 6A C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 00 00 87 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:34]Read from MH i2c: E2 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 [03:30:34]MH_I2C_Read... [03:30:34]Read from MH i2c: E2 03 00 30 41 00 90 00 E5 [03:30:34]RAPDU: 90 00 [03:30:34]wFMCommunicate OK [03:30:34]wFMCommunicate request_size=63 [03:30:34]MH_SAM_APDU [03:30:34]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C2 00 00 35 04 06 00 9F 80 6C 50 7D 95 [03:30:34]Write to MH i2c: E2 42 00 31 41 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C2 00 00 35 04 06 00 9F 80 6C 50 7D 95 00 00 31 [03:30:34]Write i2c OK [03:30:34]MH_I2C_Read... [03:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:35]Read from MH i2c: E2 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 03 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 03 00 31 41 00 90 00 E6 [03:30:35]RAPDU: 90 00 [03:30:35]wFMCommunicate OK [03:30:35]wFMCommunicate request_size=4 [03:30:35]MH_SAM_APDU [03:30:35]CAPDU: 80 0D 03 02 [03:30:35]Write to MH i2c: E2 08 00 32 41 80 0D 03 02 00 00 00 00 EE [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:35]Read from MH i2c: E2 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 0B 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 0B 00 32 41 00 0D 5E 1C 4B 46 3C 92 F5 90 00 CA [03:30:35]RAPDU: 0D 5E 1C 4B 46 3C 92 F5 90 00 [03:30:35]wFMCommunicate OK [03:30:35]SAM_PROTO_SignData done [03:30:35]FM_MakeSignedData done [03:30:35]CreateOFDProtocolMessage [03:30:35]wFMCommunicate request_size=4 [03:30:35]MH_SAM_APDU [03:30:35]CAPDU: 80 11 00 00 [03:30:35]Write to MH i2c: E2 08 00 33 41 80 11 00 00 00 00 00 00 EE [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:35]Read from MH i2c: E2 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 17 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: E2 17 00 33 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 39 [03:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:30:35]wFMCommunicate OK [03:30:35]CreateOFDProtocolMessage done [03:30:35]OFDSenderStorePacket 49747 [03:30:35]StoreOFDPacket docnum=49747 [03:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 4B 6C 3C 01 45 78 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E0 6A C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C2 00 00 35 04 06 00 9F 80 6C 50 7D 95 0D 5E 1C 4B 46 3C 92 F5 [03:30:35]CheckFolder [03:30:35]dirname=/storage/ofd_packets [03:30:35]CheckFolder done [03:30:35]ProducePacketName [03:30:35]name=ofd_packets/00049747 [03:30:35]NVStorageSaveData ofd_packets/00049747 [03:30:35]File name is /storage/ofd_packets/00049747 [03:30:35]Write 354 bytes [03:30:35]NVStorageSaveData done [03:30:35]OFDSenderStorePacket done [03:30:35]KKMCreateOFDPacket done [03:30:35]NVStorageSaveData kkm_last_timestamp [03:30:35]File name is /storage/kkm_last_timestamp [03:30:35]Write 4 bytes [03:30:35]NVStorageSaveData done [03:30:35]ExternCall_PrintAddStr [03:30:35]wPrintStart [03:30:35]Write to MH i2c: 01 00 00 34 41 75 [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 07 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 07 00 34 41 00 00 00 00 00 FF 0F 8A [03:30:35]RasterBufferAndPrint [03:30:35]line Счет N : (3)189926 [03:30:35]line ИНН: 02508201610067 [03:30:35]line Контрольно-Кассовый Чек [03:30:35]line ПРОДАЖА [03:30:35]line Товар: 4700000480302 [03:30:35]line Напиток энерг Nitro манго-клуб 0.45 ж/б [03:30:35]line 1.000 * 82.00 [03:30:35]line = 82.00 [03:30:35]line НДС 12% НСП 1% [03:30:35]line > о реализуемом товаре [03:30:35]line ИТОГО: 82.00 [03:30:35]line НСП 1% : 0.73 [03:30:35]line НДС 12% : 8.71 [03:30:35]line Наличными: 0.00 [03:30:35]line Безнал.: 82.00 [03:30:35]line Место: АЗС № 95 "Партнер Нефть" [03:30:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [03:30:35]line СНО: Общий режим [03:30:35]line Чек 13 18.08.2024 03:30 [03:30:35]line Смена: 466 ФФД: 1.0 [03:30:35]line ЗНМ: 0300000078 [03:30:35]line РНМ: 0000000000092546 [03:30:35]line Версия ККМ: 001 [03:30:35]line Платежная система: Бакай Банк [03:30:35]line ФМ: 0000000000871800 [03:30:35]line ФД: 49747 [03:30:35]line ФПД: 175373921844629 [03:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T033040&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49747&fm=175373921844629&tin=02508201610067®Number=0000000000092546&sum=8200 [03:30:35]line 0 [03:30:35]OFD Sender: Processing packet 49747 [packets to send 21, broken 20] [03:30:35]ProducePacketName [03:30:35]name=ofd_packets/00049747 [03:30:35]OFD Sender: To server: pG, [03:30:35]CommunicateWithHost lk.salyk.kg:30040 [03:30:35]ConnectInit lk.salyk.kg [03:30:35]written 0, free lines is 4095 [03:30:35]Connected sock=11 [03:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 4B 6C 3C 01 45 78 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 20 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E0 6A C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C2 00 00 35 04 06 00 9F 80 6C 50 7D 95 0D 5E 1C 4B 46 3C 92 F5 [03:30:35]Write to MH i2c: 01 00 00 5F 41 A0 [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 07 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: 01 07 00 5F 41 00 00 00 00 00 A9 0C 5C [03:30:35]RasterBufferAndPrint [03:30:35]line [03:30:35]line [03:30:35]line [03:30:35]line [03:30:35]line [03:30:35]written 0, free lines is 3249 [03:30:35]MH_Cut [03:30:35]Write to MH i2c: D1 01 00 66 41 01 79 [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: D1 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: D1 01 00 [03:30:35]MH_I2C_Read... [03:30:35]Read from MH i2c: D1 01 00 66 41 00 78 [03:30:35]Write to MH i2c: 01 00 00 67 41 A8 [03:30:35]Write i2c OK [03:30:35]MH_I2C_Read... [03:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 43 F7 47 00 02 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C2 00 00 F4 03 04 00 1A 16 C1 66 B6 04 01 00 00 CB 9B A5 53 CB E0 BA DB [03:30:35]CommunicateWithHost err = 0 [03:30:35]CheckOFDResponse [03:30:35]1017 (14) - 77093643461234 [03:30:35]1041 (16) - 0000000000871800 [03:30:35]1040 (4) - 49747 [03:30:35]1012 (4) - 17.08.2024 21:28 [03:30:35]1206 (1) - 0 [03:30:35]OFD Sender: Remove packet 49747 [03:30:35]ProducePacketName [03:30:35]name=ofd_packets/00049747 [03:30:35]NVStorageDeleteData [03:30:36]OFD Sender: No OFD packet to send [03:30:36]*** Cut start [03:30:36]*** Purtial cut [03:30:36]*** CUTSNS_PIN = 0 [03:30:36]*** Stage 1: CUTSNS_PIN = 1 [03:30:38]Read from MH i2c: 01 [03:30:38]MH_I2C_Read... [03:30:38]*** Stop cut motor [03:30:38]*** Cut end [03:30:38]Read from MH i2c: 01 07 00 [03:30:38]MH_I2C_Read... [03:30:38]Read from MH i2c: 01 07 00 67 41 00 00 00 00 00 FF 0F BD [03:30:38]process_action close_receipt done [03:30:38]requested_data is exist [03:30:38]produce_requested_data [03:30:38]requested_item fm.sn is exist - process it [03:30:38]wFMCommunicate request_size=4 [03:30:38]MH_SAM_APDU [03:30:38]CAPDU: 80 11 00 00 [03:30:38]Write to MH i2c: E2 08 00 68 41 80 11 00 00 00 00 00 00 23 [03:30:38]Write i2c OK [03:30:38]MH_I2C_Read... [03:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:38]Read from MH i2c: E2 [03:30:38]MH_I2C_Read... [03:30:38]Read from MH i2c: E2 17 00 [03:30:38]MH_I2C_Read... [03:30:38]Read from MH i2c: E2 17 00 68 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [03:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:30:38]wFMCommunicate OK [03:30:38]requested_item fd.num is exist - process it [03:30:38]SAM_PROTO_GetFieldsCounters [03:30:38]wFMCommunicate request_size=4 [03:30:38]MH_SAM_APDU [03:30:38]CAPDU: 80 13 00 00 [03:30:38]Write to MH i2c: E2 08 00 69 41 80 13 00 00 00 00 00 00 26 [03:30:38]Write i2c OK [03:30:38]MH_I2C_Read... [03:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:38]Read from MH i2c: E2 [03:30:38]MH_I2C_Read... [03:30:38]Read from MH i2c: E2 62 00 [03:30:38]MH_I2C_Read... [03:30:38]Read from MH i2c: E2 62 00 69 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [03:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:30:38]wFMCommunicate OK [03:30:38]SAM_PROTO_GetFieldsCounters done [03:30:38]requested_item shift.num is exist - process it [03:30:38]requested_item shift.opened is exist - process it [03:30:38]req_shift_opened [03:30:38]FM_GetShiftState [03:30:38]SAM_PROTO_GetShiftState [03:30:38]wFMCommunicate request_size=4 [03:30:38]MH_SAM_APDU [03:30:38]CAPDU: 80 13 01 00 [03:30:38]Write to MH i2c: E2 08 00 6A 41 80 13 01 00 00 00 00 00 28 [03:30:38]Write i2c OK [03:30:38]MH_I2C_Read... [03:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:39]Read from MH i2c: E2 [03:30:39]MH_I2C_Read... [03:30:39]Read from MH i2c: E2 0E 00 [03:30:39]MH_I2C_Read... [03:30:39]Read from MH i2c: E2 0E 00 6A 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 45 [03:30:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [03:30:39]wFMCommunicate OK [03:30:39]SAM_PROTO_GetShiftState done [03:30:39]FM_GetShiftState done [03:30:39]req_shift_opened done [03:30:39]requested_item shift.open_date is exist - process it [03:30:39]req_shift_open_date [03:30:39]req_shift_open_date done [03:30:39]produce_requested_data done [03:30:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49747,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [03:30:39]process_action_free close_receipt [03:30:39]json_value_free [03:30:39]json_value_free done [03:30:39]process_json_proto returns [03:30:39]Send response to host [03:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49747,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [03:30:39]free response buf [03:30:39]execute_script done [03:30:39]execute_script returns [03:30:39]free content buf [03:30:39]Sock 7.Close socket [03:30:39]Sock 7.Thread stoped [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:02]accept exits with 9 [04:09:02]New connection [04:09:02]New thread 3066944868 created [04:09:02]Thread 3066801508 joined [04:09:02]Waiting for new connection... [04:09:02] Sock 9.Parse request [04:09:02]Sock 9.Check first char [04:09:02]Sock 9.First char is OK [04:09:02]request: POST /json_proto HTTP/1.0 [04:09:02]Method: POST [04:09:02]URL: /json_proto [04:09:02]Method is POST - this is cgi request [04:09:02]url: /json_proto [04:09:02]query_string will be loaded in cgi processing [04:09:02]execute_cgi json_proto POST (null) [04:09:02]execute_cgi path=json_proto method=POST [04:09:02]POST find Content-Length [04:09:02]Host: 172.17.46.196:8080 [04:09:02]Content-Length: 654 [04:09:02]Content-Type: application/json [04:09:02] [04:09:02]POST finish read [04:09:02]Found Content-Length = 654 [04:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189927", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:02]execute_script... [04:09: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 : (3)189927", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:02]POST & json_proto [04:09:02]process_json_proto [04:09:02]json parsed OK: [04:09:02]protocol is kg_v1.0 [04:09:02]action value=close_receipt [04:09:02]process_action close_receipt [04:09:02]cmd_close_receipt [04:09:02]MH_GetDate [04:09:02]Write to MH i2c: F0 00 00 6B 41 9B [04:09:02]Write i2c OK [04:09:02]MH_I2C_Read... [04:09:02]Read from MH i2c: F0 [04:09:02]MH_I2C_Read... [04:09:02]Read from MH i2c: F0 09 00 [04:09:02]MH_I2C_Read... [04:09:02]Read from MH i2c: F0 09 00 6B 41 00 E5 73 C1 66 07 E8 5D 66 D5 [04:09:02]GetLastDocTimeStamp 1723951840 [04:09:02]current date 1723954149 [04:09:02]FM_GetShiftState [04:09:02]SAM_PROTO_GetShiftState [04:09:02]wFMCommunicate request_size=4 [04:09:02]MH_SAM_APDU [04:09:02]CAPDU: 80 13 01 00 [04:09:02]Write to MH i2c: E2 08 00 6C 41 80 13 01 00 00 00 00 00 2A [04:09:02]Write i2c OK [04:09:02]MH_I2C_Read... [04:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:02]Read from MH i2c: E2 [04:09:02]MH_I2C_Read... [04:09:02]Read from MH i2c: E2 0E 00 [04:09:02]MH_I2C_Read... [04:09:02]Read from MH i2c: E2 0E 00 6C 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 47 [04:09:02]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:09:02]wFMCommunicate OK [04:09:02]SAM_PROTO_GetShiftState done [04:09:02]FM_GetShiftState done [04:09:02]opened in 1723939759 [04:09:02]opened+sec_in_day 1724026159 [04:09:02]quantity*price = 9500 [04:09:02]sum+1 = 9501 [04:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 14 18.08.2024 04:09 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49748 ФПД: 13501711966705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T040909&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49748&fm=13501711966705&tin=02508201610067®Number=0000000000092546&sum=9500 0 [04:09:03]StoreToDocumentArchive [04:09:03]shift 466 fd 49748 [04:09:03]save to /storage/0466/doc_00049748 [04:09:03]save last doc name /storage/0466/doc_00049748 to /storage/kkm_last_doc_name [04:09:03]save OK [04:09:03]Clear old archive folders... [04:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=293 [04:09:03]tlvbuf is 01862530 [04:09:03]SAM_PROTO_ClearQueue [04:09:03]wFMCommunicate request_size=4 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 09 00 00 [04:09:03]Write to MH i2c: E2 08 00 79 41 80 09 00 00 00 00 00 00 2C [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 [04:09:03]MH_I2C_Read... [04:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:09:03]Read from MH i2c: E2 03 00 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 79 41 00 90 00 2E [04:09:03]RAPDU: 90 00 [04:09:03]wFMCommunicate OK [04:09:03]SAM_PROTO_ClearQueue done [04:09:03]KKMCreateOFDPacket [04:09:03]OFDProtocolAddRootSTLVToBuf [04:09:03]FM_MakeSignedData [04:09:03]FM_MakeSignedData [04:09:03]SAM_PROTO_SignData [04:09:03]wFMCommunicate request_size=4 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 0D 01 02 [04:09:03]Write to MH i2c: E2 08 00 7A 41 80 0D 01 02 00 00 00 00 34 [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:09:03]Read from MH i2c: E2 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 7A 41 00 90 00 2F [04:09:03]RAPDU: 90 00 [04:09:03]wFMCommunicate OK [04:09:03]wFMCommunicate request_size=255 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E5 73 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [04:09:03]Write to MH i2c: E2 02 01 7B 41 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E5 73 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 34 [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:03]Read from MH i2c: E2 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 7B 41 00 90 00 30 [04:09:03]RAPDU: 90 00 [04:09:03]wFMCommunicate OK [04:09:03]wFMCommunicate request_size=52 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C2 00 00 35 04 06 00 0C 47 9C BE E1 F1 [04:09:03]Write to MH i2c: E2 37 00 7C 41 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C2 00 00 35 04 06 00 0C 47 9C BE E1 F1 00 00 88 [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:03]Read from MH i2c: E2 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 03 00 7C 41 00 90 00 31 [04:09:03]RAPDU: 90 00 [04:09:03]wFMCommunicate OK [04:09:03]wFMCommunicate request_size=4 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 0D 03 02 [04:09:03]Write to MH i2c: E2 08 00 7D 41 80 0D 03 02 00 00 00 00 39 [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:09:03]Read from MH i2c: E2 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 0B 00 [04:09:03]MH_I2C_Read... [04:09:03]Read from MH i2c: E2 0B 00 7D 41 00 A7 F5 36 0E E3 28 36 9A 90 00 F5 [04:09:03]RAPDU: A7 F5 36 0E E3 28 36 9A 90 00 [04:09:03]wFMCommunicate OK [04:09:03]SAM_PROTO_SignData done [04:09:03]FM_MakeSignedData done [04:09:03]CreateOFDProtocolMessage [04:09:03]wFMCommunicate request_size=4 [04:09:03]MH_SAM_APDU [04:09:03]CAPDU: 80 11 00 00 [04:09:03]Write to MH i2c: E2 08 00 7E 41 80 11 00 00 00 00 00 00 39 [04:09:03]Write i2c OK [04:09:03]MH_I2C_Read... [04:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:04]Read from MH i2c: E2 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: E2 17 00 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: E2 17 00 7E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [04:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:09:04]wFMCommunicate OK [04:09:04]CreateOFDProtocolMessage done [04:09:04]OFDSenderStorePacket 49748 [04:09:04]StoreOFDPacket docnum=49748 [04:09:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 BD F0 31 01 D6 79 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E5 73 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C2 00 00 35 04 06 00 0C 47 9C BE E1 F1 A7 F5 36 0E E3 28 36 9A [04:09:04]CheckFolder [04:09:04]dirname=/storage/ofd_packets [04:09:04]CheckFolder done [04:09:04]ProducePacketName [04:09:04]name=ofd_packets/00049748 [04:09:04]NVStorageSaveData ofd_packets/00049748 [04:09:04]File name is /storage/ofd_packets/00049748 [04:09:04]Write 343 bytes [04:09:04]NVStorageSaveData done [04:09:04]OFDSenderStorePacket done [04:09:04]KKMCreateOFDPacket done [04:09:04]NVStorageSaveData kkm_last_timestamp [04:09:04]File name is /storage/kkm_last_timestamp [04:09:04]Write 4 bytes [04:09:04]NVStorageSaveData done [04:09:04]ExternCall_PrintAddStr [04:09:04]wPrintStart [04:09:04]Write to MH i2c: 01 00 00 7F 41 C0 [04:09:04]Write i2c OK [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 07 00 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 07 00 7F 41 00 00 00 00 00 FF 0F D5 [04:09:04]RasterBufferAndPrint [04:09:04]line Счет N : (3)189927 [04:09:04]line ИНН: 02508201610067 [04:09:04]line Контрольно-Кассовый Чек [04:09:04]line ПРОДАЖА [04:09:04]line Товар: 4700000480050 [04:09:04]line Напиток Nitro Energy эн green ж/б 0,45л [04:09:04]line 1.000 * 95.00 [04:09:04]line = 95.00 [04:09:04]line НДС 12% НСП 1% [04:09:04]line > о реализуемом товаре [04:09:04]line ИТОГО: 95.00 [04:09:04]line НСП 1% : 0.84 [04:09:04]line НДС 12% : 10.09 [04:09:04]line Наличными: 95.00 [04:09:04]line Безнал.: 0.00 [04:09:04]line Место: АЗС № 95 "Партнер Нефть" [04:09:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:09:04]line СНО: Общий режим [04:09:04]line Чек 14 18.08.2024 04:09 [04:09:04]line Смена: 466 ФФД: 1.0 [04:09:04]line ЗНМ: 0300000078 [04:09:04]line РНМ: 0000000000092546 [04:09:04]line Версия ККМ: 001 [04:09:04]line ФМ: 0000000000871800 [04:09:04]line ФД: 49748 [04:09:04]line ФПД: 13501711966705 [04:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T040909&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49748&fm=13501711966705&tin=02508201610067®Number=0000000000092546&sum=9500 [04:09:04]line 0 [04:09:04]OFD Sender: Processing packet 49748 [packets to send 21, broken 20] [04:09:04]ProducePacketName [04:09:04]name=ofd_packets/00049748 [04:09:04]OFD Sender: To server: pG, [04:09:04]CommunicateWithHost lk.salyk.kg:30040 [04:09:04]ConnectInit lk.salyk.kg [04:09:04]written 0, free lines is 4095 [04:09:04]Connected sock=10 [04:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 BD F0 31 01 D6 79 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E5 73 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C2 00 00 35 04 06 00 0C 47 9C BE E1 F1 A7 F5 36 0E E3 28 36 9A [04:09:04]Write to MH i2c: 01 00 00 A8 41 E9 [04:09:04]Write i2c OK [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 07 00 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: 01 07 00 A8 41 00 00 00 00 00 C6 0C C2 [04:09:04]RasterBufferAndPrint [04:09:04]line [04:09:04]line [04:09:04]line [04:09:04]line [04:09:04]line [04:09:04]written 0, free lines is 3274 [04:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BE 2B 47 00 3F E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C2 00 00 F4 03 04 00 1F 1F C1 66 B6 04 01 00 00 12 4B 0F A4 CE A6 7D E2 [04:09:04]CommunicateWithHost err = 0 [04:09:04]CheckOFDResponse [04:09:04]1017 (14) - 77093643461234 [04:09:04]1041 (16) - 0000000000871800 [04:09:04]1040 (4) - 49748 [04:09:04]1012 (4) - 17.08.2024 22:07 [04:09:04]1206 (1) - 0 [04:09:04]OFD Sender: Remove packet 49748 [04:09:04]ProducePacketName [04:09:04]name=ofd_packets/00049748 [04:09:04]NVStorageDeleteData [04:09:04]MH_Cut [04:09:04]Write to MH i2c: D1 01 00 AF 41 01 C2 [04:09:04]Write i2c OK [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: D1 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: D1 01 00 [04:09:04]MH_I2C_Read... [04:09:04]Read from MH i2c: D1 01 00 AF 41 00 C1 [04:09:04]Write to MH i2c: 01 00 00 B0 41 F1 [04:09:04]Write i2c OK [04:09:04]MH_I2C_Read... [04:09:05]OFD Sender: No OFD packet to send [04:09:05]*** Cut start [04:09:05]*** Purtial cut [04:09:05]*** Stage 1: CUTSNS_PIN = 1 [04:09:05]Read from MH i2c: 01 [04:09:05]MH_I2C_Read... [04:09:05]*** Stop cut motor [04:09:05]*** Cut end [04:09:05]Read from MH i2c: 01 07 00 [04:09:05]MH_I2C_Read... [04:09:05]Read from MH i2c: 01 07 00 B0 41 00 00 00 00 00 FF 0F 06 [04:09:05]process_action close_receipt done [04:09:05]requested_data is exist [04:09:05]produce_requested_data [04:09:05]requested_item fm.sn is exist - process it [04:09:05]wFMCommunicate request_size=4 [04:09:05]MH_SAM_APDU [04:09:05]CAPDU: 80 11 00 00 [04:09:05]Write to MH i2c: E2 08 00 B1 41 80 11 00 00 00 00 00 00 6C [04:09:05]Write i2c OK [04:09:05]MH_I2C_Read... [04:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:05]Read from MH i2c: E2 [04:09:05]MH_I2C_Read... [04:09:05]Read from MH i2c: E2 17 00 [04:09:05]MH_I2C_Read... [04:09:05]Read from MH i2c: E2 17 00 B1 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B7 [04:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:09:05]wFMCommunicate OK [04:09:05]requested_item fd.num is exist - process it [04:09:05]SAM_PROTO_GetFieldsCounters [04:09:05]wFMCommunicate request_size=4 [04:09:05]MH_SAM_APDU [04:09:05]CAPDU: 80 13 00 00 [04:09:05]Write to MH i2c: E2 08 00 B2 41 80 13 00 00 00 00 00 00 6F [04:09:05]Write i2c OK [04:09:05]MH_I2C_Read... [04:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:06]Read from MH i2c: E2 [04:09:06]MH_I2C_Read... [04:09:06]Read from MH i2c: E2 62 00 [04:09:06]MH_I2C_Read... [04:09:06]Read from MH i2c: E2 62 00 B2 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [04:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:09:06]wFMCommunicate OK [04:09:06]SAM_PROTO_GetFieldsCounters done [04:09:06]requested_item shift.num is exist - process it [04:09:06]requested_item shift.opened is exist - process it [04:09:06]req_shift_opened [04:09:06]FM_GetShiftState [04:09:06]SAM_PROTO_GetShiftState [04:09:06]wFMCommunicate request_size=4 [04:09:06]MH_SAM_APDU [04:09:06]CAPDU: 80 13 01 00 [04:09:06]Write to MH i2c: E2 08 00 B3 41 80 13 01 00 00 00 00 00 71 [04:09:06]Write i2c OK [04:09:06]MH_I2C_Read... [04:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:06]Read from MH i2c: E2 [04:09:06]MH_I2C_Read... [04:09:06]Read from MH i2c: E2 0E 00 [04:09:06]MH_I2C_Read... [04:09:06]Read from MH i2c: E2 0E 00 B3 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8E [04:09:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:09:06]wFMCommunicate OK [04:09:06]SAM_PROTO_GetShiftState done [04:09:06]FM_GetShiftState done [04:09:06]req_shift_opened done [04:09:06]requested_item shift.open_date is exist - process it [04:09:06]req_shift_open_date [04:09:06]req_shift_open_date done [04:09:06]produce_requested_data done [04:09:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49748,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:09:06]process_action_free close_receipt [04:09:06]json_value_free [04:09:06]json_value_free done [04:09:06]process_json_proto returns [04:09:06]Send response to host [04:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49748,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:09:06]free response buf [04:09:06]execute_script done [04:09:06]execute_script returns [04:09:06]free content buf [04:09:06]Sock 9.Close socket [04:09:06]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [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: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:39]accept exits with 7 [04:16:39]New connection [04:16:39]New thread 3066801508 created [04:16:39]Thread 3066944868 joined [04:16:39]Waiting for new connection... [04:16:39] Sock 7.Parse request [04:16:39]Sock 7.Check first char [04:16:39]Sock 7.First char is OK [04:16:39]request: POST /json_proto HTTP/1.0 [04:16:39]Method: POST [04:16:39]URL: /json_proto [04:16:39]Method is POST - this is cgi request [04:16:39]url: /json_proto [04:16:39]query_string will be loaded in cgi processing [04:16:39]execute_cgi json_proto POST (null) [04:16:39]execute_cgi path=json_proto method=POST [04:16:39]POST find Content-Length [04:16:39]Host: 172.17.46.196:8080 [04:16:39]Content-Length: 619 [04:16:39]Content-Type: application/json [04:16:39] [04:16:39]POST finish read [04:16:39]Found Content-Length = 619 [04:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189928", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:39]execute_script... [04:16:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189928", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:39]POST & json_proto [04:16:39]process_json_proto [04:16:39]json parsed OK: [04:16:39]protocol is kg_v1.0 [04:16:39]action value=close_receipt [04:16:39]process_action close_receipt [04:16:39]cmd_close_receipt [04:16:39]MH_GetDate [04:16:39]Write to MH i2c: F0 00 00 B4 41 E4 [04:16:39]Write i2c OK [04:16:39]MH_I2C_Read... [04:16:39]Read from MH i2c: F0 [04:16:39]MH_I2C_Read... [04:16:39]Read from MH i2c: F0 09 00 [04:16:39]MH_I2C_Read... [04:16:39]Read from MH i2c: F0 09 00 B4 41 00 AE 75 C1 66 07 E8 5D 66 E9 [04:16:39]GetLastDocTimeStamp 1723954149 [04:16:39]current date 1723954606 [04:16:39]FM_GetShiftState [04:16:39]SAM_PROTO_GetShiftState [04:16:39]wFMCommunicate request_size=4 [04:16:39]MH_SAM_APDU [04:16:39]CAPDU: 80 13 01 00 [04:16:39]Write to MH i2c: E2 08 00 B5 41 80 13 01 00 00 00 00 00 73 [04:16:39]Write i2c OK [04:16:39]MH_I2C_Read... [04:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:39]Read from MH i2c: E2 [04:16:39]MH_I2C_Read... [04:16:39]Read from MH i2c: E2 0E 00 [04:16:39]MH_I2C_Read... [04:16:39]Read from MH i2c: E2 0E 00 B5 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 90 [04:16:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:16:39]wFMCommunicate OK [04:16:39]SAM_PROTO_GetShiftState done [04:16:39]FM_GetShiftState done [04:16:39]opened in 1723939759 [04:16:39]opened+sec_in_day 1724026159 [04:16:39]quantity*price = 14000 [04:16:39]sum+1 = 14001 [04:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 15 18.08.2024 04:16 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49749 ФПД: 109156773672170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T041646&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49749&fm=109156773672170&tin=02508201610067®Number=0000000000092546&sum=14000 0 [04:16:40]StoreToDocumentArchive [04:16:40]shift 466 fd 49749 [04:16:40]save to /storage/0466/doc_00049749 [04:16:40]save last doc name /storage/0466/doc_00049749 to /storage/kkm_last_doc_name [04:16:40]save OK [04:16:40]Clear old archive folders... [04:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=271 [04:16:40]tlvbuf is 01890BA0 [04:16:40]SAM_PROTO_ClearQueue [04:16:40]wFMCommunicate request_size=4 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 09 00 00 [04:16:40]Write to MH i2c: E2 08 00 C2 41 80 09 00 00 00 00 00 00 75 [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 C2 41 00 90 00 77 [04:16:40]RAPDU: 90 00 [04:16:40]wFMCommunicate OK [04:16:40]SAM_PROTO_ClearQueue done [04:16:40]KKMCreateOFDPacket [04:16:40]OFDProtocolAddRootSTLVToBuf [04:16:40]FM_MakeSignedData [04:16:40]FM_MakeSignedData [04:16:40]SAM_PROTO_SignData [04:16:40]wFMCommunicate request_size=4 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 0D 01 02 [04:16:40]Write to MH i2c: E2 08 00 C3 41 80 0D 01 02 00 00 00 00 7D [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 C3 41 00 90 00 78 [04:16:40]RAPDU: 90 00 [04:16:40]wFMCommunicate OK [04:16:40]wFMCommunicate request_size=255 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AE 75 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [04:16:40]Write to MH i2c: E2 02 01 C4 41 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AE 75 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 2E [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]OFD Sender: No OFD packet to send [04:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 C4 41 00 90 00 79 [04:16:40]RAPDU: 90 00 [04:16:40]wFMCommunicate OK [04:16:40]wFMCommunicate request_size=30 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 55 C2 00 00 35 04 06 00 63 47 0A B8 34 EA [04:16:40]Write to MH i2c: E2 21 00 C5 41 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 55 C2 00 00 35 04 06 00 63 47 0A B8 34 EA 00 00 12 [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 03 00 C5 41 00 90 00 7A [04:16:40]RAPDU: 90 00 [04:16:40]wFMCommunicate OK [04:16:40]wFMCommunicate request_size=4 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 0D 03 02 [04:16:40]Write to MH i2c: E2 08 00 C6 41 80 0D 03 02 00 00 00 00 82 [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 0B 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 0B 00 C6 41 00 FE 45 26 91 9A 94 C8 D5 90 00 48 [04:16:40]RAPDU: FE 45 26 91 9A 94 C8 D5 90 00 [04:16:40]wFMCommunicate OK [04:16:40]SAM_PROTO_SignData done [04:16:40]FM_MakeSignedData done [04:16:40]CreateOFDProtocolMessage [04:16:40]wFMCommunicate request_size=4 [04:16:40]MH_SAM_APDU [04:16:40]CAPDU: 80 11 00 00 [04:16:40]Write to MH i2c: E2 08 00 C7 41 80 11 00 00 00 00 00 00 82 [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:40]Read from MH i2c: E2 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 17 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: E2 17 00 C7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CD [04:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:16:40]wFMCommunicate OK [04:16:40]CreateOFDProtocolMessage done [04:16:40]OFDSenderStorePacket 49749 [04:16:40]StoreOFDPacket docnum=49749 [04:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 9E DE 1B 01 E7 E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AE 75 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C2 00 00 35 04 06 00 63 47 0A B8 34 EA FE 45 26 91 9A 94 C8 D5 [04:16:40]CheckFolder [04:16:40]dirname=/storage/ofd_packets [04:16:40]CheckFolder done [04:16:40]ProducePacketName [04:16:40]name=ofd_packets/00049749 [04:16:40]NVStorageSaveData ofd_packets/00049749 [04:16:40]File name is /storage/ofd_packets/00049749 [04:16:40]Write 321 bytes [04:16:40]NVStorageSaveData done [04:16:40]OFDSenderStorePacket done [04:16:40]KKMCreateOFDPacket done [04:16:40]NVStorageSaveData kkm_last_timestamp [04:16:40]File name is /storage/kkm_last_timestamp [04:16:40]Write 4 bytes [04:16:40]NVStorageSaveData done [04:16:40]ExternCall_PrintAddStr [04:16:40]wPrintStart [04:16:40]Write to MH i2c: 01 00 00 C8 41 09 [04:16:40]Write i2c OK [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: 01 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: 01 07 00 [04:16:40]MH_I2C_Read... [04:16:40]Read from MH i2c: 01 07 00 C8 41 00 00 00 00 00 FF 0F 1E [04:16:40]RasterBufferAndPrint [04:16:40]line Счет N : (3)189928 [04:16:40]line ИНН: 02508201610067 [04:16:40]line Контрольно-Кассовый Чек [04:16:40]line ПРОДАЖА [04:16:40]line Товар: 47802995 [04:16:40]line Сигареты Winston XS Silver [04:16:40]line 1.000 * 140.00 [04:16:40]line = 140.00 [04:16:40]line НДС 12% НСП 1% [04:16:40]line > о реализуемом товаре [04:16:40]line ИТОГО: 140.00 [04:16:40]line НСП 1% : 1.24 [04:16:40]line НДС 12% : 14.87 [04:16:40]line Наличными: 140.00 [04:16:40]line Безнал.: 0.00 [04:16:40]line Место: АЗС № 95 "Партнер Нефть" [04:16:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:16:40]line СНО: Общий режим [04:16:40]line Чек 15 18.08.2024 04:16 [04:16:40]line Смена: 466 ФФД: 1.0 [04:16:40]line ЗНМ: 0300000078 [04:16:40]line РНМ: 0000000000092546 [04:16:40]line Версия ККМ: 001 [04:16:40]line ФМ: 0000000000871800 [04:16:40]line ФД: 49749 [04:16:40]line ФПД: 109156773672170 [04:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T041646&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49749&fm=109156773672170&tin=02508201610067®Number=0000000000092546&sum=14000 [04:16:41]line 0 [04:16:41]OFD Sender: Processing packet 49749 [packets to send 21, broken 20] [04:16:41]ProducePacketName [04:16:41]name=ofd_packets/00049749 [04:16:41]OFD Sender: To server: pG, [04:16:41]CommunicateWithHost lk.salyk.kg:30040 [04:16:41]ConnectInit lk.salyk.kg [04:16:41]written 0, free lines is 4095 [04:16:41]Connected sock=10 [04:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 9E DE 1B 01 E7 E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 AE 75 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C2 00 00 35 04 06 00 63 47 0A B8 34 EA FE 45 26 91 9A 94 C8 D5 [04:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8D 72 47 00 13 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 38 30 30 10 04 04 00 55 C2 00 00 F4 03 04 00 E8 20 C1 66 B6 04 01 00 00 EE 46 22 38 49 46 A9 C0 [04:16:41]CommunicateWithHost err = 0 [04:16:41]CheckOFDResponse [04:16:41]1017 (14) - 77093643461234 [04:16:41]1041 (16) - 0000000000871800 [04:16:41]1040 (4) - 49749 [04:16:41]1012 (4) - 17.08.2024 22:15 [04:16:41]1206 (1) - 0 [04:16:41]OFD Sender: Remove packet 49749 [04:16:41]ProducePacketName [04:16:41]name=ofd_packets/00049749 [04:16:41]NVStorageDeleteData [04:16:41]Write to MH i2c: 01 00 00 F0 41 31 [04:16:41]Write i2c OK [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: 01 [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: 01 07 00 [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: 01 07 00 F0 41 00 00 00 00 00 EA 0C 2E [04:16:41]RasterBufferAndPrint [04:16:41]line [04:16:41]line [04:16:41]line [04:16:41]line [04:16:41]line [04:16:41]written 0, free lines is 3312 [04:16:41]MH_Cut [04:16:41]Write to MH i2c: D1 01 00 F7 41 01 0A [04:16:41]Write i2c OK [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: D1 [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: D1 01 00 [04:16:41]MH_I2C_Read... [04:16:41]Read from MH i2c: D1 01 00 F7 41 00 09 [04:16:41]Write to MH i2c: 01 00 00 F8 41 39 [04:16:41]Write i2c OK [04:16:41]MH_I2C_Read... [04:16:42]OFD Sender: No OFD packet to send [04:16:42]*** Cut start [04:16:42]*** Purtial cut [04:16:42]*** CUTSNS_PIN = 0 [04:16:42]*** Stage 1: CUTSNS_PIN = 1 [04:16:44]Read from MH i2c: 01 [04:16:44]MH_I2C_Read... [04:16:44]*** Stop cut motor [04:16:44]*** Cut end [04:16:44]Read from MH i2c: 01 07 00 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: 01 07 00 F8 41 00 00 00 00 00 FF 0F 4E [04:16:44]process_action close_receipt done [04:16:44]requested_data is exist [04:16:44]produce_requested_data [04:16:44]requested_item fm.sn is exist - process it [04:16:44]wFMCommunicate request_size=4 [04:16:44]MH_SAM_APDU [04:16:44]CAPDU: 80 11 00 00 [04:16:44]Write to MH i2c: E2 08 00 F9 41 80 11 00 00 00 00 00 00 B4 [04:16:44]Write i2c OK [04:16:44]MH_I2C_Read... [04:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:44]Read from MH i2c: E2 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 17 00 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 17 00 F9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [04:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:16:44]wFMCommunicate OK [04:16:44]requested_item fd.num is exist - process it [04:16:44]SAM_PROTO_GetFieldsCounters [04:16:44]wFMCommunicate request_size=4 [04:16:44]MH_SAM_APDU [04:16:44]CAPDU: 80 13 00 00 [04:16:44]Write to MH i2c: E2 08 00 FA 41 80 13 00 00 00 00 00 00 B7 [04:16:44]Write i2c OK [04:16:44]MH_I2C_Read... [04:16:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:44]Read from MH i2c: E2 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 62 00 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 62 00 FA 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [04:16:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:16:44]wFMCommunicate OK [04:16:44]SAM_PROTO_GetFieldsCounters done [04:16:44]requested_item shift.num is exist - process it [04:16:44]requested_item shift.opened is exist - process it [04:16:44]req_shift_opened [04:16:44]FM_GetShiftState [04:16:44]SAM_PROTO_GetShiftState [04:16:44]wFMCommunicate request_size=4 [04:16:44]MH_SAM_APDU [04:16:44]CAPDU: 80 13 01 00 [04:16:44]Write to MH i2c: E2 08 00 FB 41 80 13 01 00 00 00 00 00 B9 [04:16:44]Write i2c OK [04:16:44]MH_I2C_Read... [04:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:44]Read from MH i2c: E2 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 0E 00 [04:16:44]MH_I2C_Read... [04:16:44]Read from MH i2c: E2 0E 00 FB 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D6 [04:16:44]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:16:44]wFMCommunicate OK [04:16:44]SAM_PROTO_GetShiftState done [04:16:44]FM_GetShiftState done [04:16:44]req_shift_opened done [04:16:44]requested_item shift.open_date is exist - process it [04:16:44]req_shift_open_date [04:16:44]req_shift_open_date done [04:16:44]produce_requested_data done [04:16:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49749,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:16:44]process_action_free close_receipt [04:16:44]json_value_free [04:16:44]json_value_free done [04:16:44]process_json_proto returns [04:16:44]Send response to host [04:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49749,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:16:44]free response buf [04:16:44]execute_script done [04:16:44]execute_script returns [04:16:44]free content buf [04:16:44]Sock 7.Close socket [04:16:44]Sock 7.Thread stoped [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:45]accept exits with 9 [04:18:45]New connection [04:18:45]New thread 3066944868 created [04:18:45]Thread 3066801508 joined [04:18:45]Waiting for new connection... [04:18:45] Sock 9.Parse request [04:18:45]Sock 9.Check first char [04:18:45]Sock 9.First char is OK [04:18:45]request: POST /json_proto HTTP/1.0 [04:18:45]Method: POST [04:18:45]URL: /json_proto [04:18:45]Method is POST - this is cgi request [04:18:45]url: /json_proto [04:18:45]query_string will be loaded in cgi processing [04:18:45]execute_cgi json_proto POST (null) [04:18:45]execute_cgi path=json_proto method=POST [04:18:45]POST find Content-Length [04:18:45]Host: 172.17.46.196:8080 [04:18:45]Content-Length: 668 [04:18:45]Content-Type: application/json [04:18:45] [04:18:45]POST finish read [04:18:45]Found Content-Length = 668 [04:18:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189929", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:45]execute_script... [04: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 : (3)189929", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:45]POST & json_proto [04:18:45]process_json_proto [04:18:45]json parsed OK: [04:18:45]protocol is kg_v1.0 [04:18:45]action value=close_receipt [04:18:45]process_action close_receipt [04:18:45]cmd_close_receipt [04:18:45]MH_GetDate [04:18:45]Write to MH i2c: F0 00 00 FC 41 2C [04:18:45]Write i2c OK [04:18:45]MH_I2C_Read... [04:18:45]Read from MH i2c: F0 [04:18:45]MH_I2C_Read... [04:18:45]Read from MH i2c: F0 09 00 [04:18:45]MH_I2C_Read... [04:18:45]Read from MH i2c: F0 09 00 FC 41 00 2C 76 C1 66 07 E8 5D 66 B0 [04:18:45]GetLastDocTimeStamp 1723954606 [04:18:45]current date 1723954732 [04:18:45]FM_GetShiftState [04:18:45]SAM_PROTO_GetShiftState [04:18:45]wFMCommunicate request_size=4 [04:18:45]MH_SAM_APDU [04:18:45]CAPDU: 80 13 01 00 [04:18:45]Write to MH i2c: E2 08 00 FD 41 80 13 01 00 00 00 00 00 BB [04:18:45]Write i2c OK [04:18:45]MH_I2C_Read... [04:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:45]Read from MH i2c: E2 [04:18:45]MH_I2C_Read... [04:18:45]Read from MH i2c: E2 0E 00 [04:18:45]MH_I2C_Read... [04:18:45]Read from MH i2c: E2 0E 00 FD 41 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D8 [04:18:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:18:45]wFMCommunicate OK [04:18:45]SAM_PROTO_GetShiftState done [04:18:45]FM_GetShiftState done [04:18:45]opened in 1723939759 [04:18:45]opened+sec_in_day 1724026159 [04:18:45]quantity*price = 5900 [04:18:45]sum+1 = 5901 [04:18:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 16 18.08.2024 04:18 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49750 ФПД: 192335082122379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T041853&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49750&fm=192335082122379&tin=02508201610067®Number=0000000000092546&sum=5900 0 [04:18:47]StoreToDocumentArchive [04:18:47]shift 466 fd 49750 [04:18:47]save to /storage/0466/doc_00049750 [04:18:47]save last doc name /storage/0466/doc_00049750 to /storage/kkm_last_doc_name [04:18:47]save OK [04:18:47]Clear old archive folders... [04:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=283 [04:18:47]tlvbuf is 01840BC0 [04:18:47]SAM_PROTO_ClearQueue [04:18:47]wFMCommunicate request_size=4 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 09 00 00 [04:18:47]Write to MH i2c: E2 08 00 0A 42 80 09 00 00 00 00 00 00 BE [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 0A 42 00 90 00 C0 [04:18:47]RAPDU: 90 00 [04:18:47]wFMCommunicate OK [04:18:47]SAM_PROTO_ClearQueue done [04:18:47]KKMCreateOFDPacket [04:18:47]OFDProtocolAddRootSTLVToBuf [04:18:47]FM_MakeSignedData [04:18:47]FM_MakeSignedData [04:18:47]SAM_PROTO_SignData [04:18:47]wFMCommunicate request_size=4 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 0D 01 02 [04:18:47]Write to MH i2c: E2 08 00 0B 42 80 0D 01 02 00 00 00 00 C6 [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 0B 42 00 90 00 C1 [04:18:47]RAPDU: 90 00 [04:18:47]wFMCommunicate OK [04:18:47]wFMCommunicate request_size=255 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2D 76 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 [04:18:47]Write to MH i2c: E2 02 01 0C 42 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2D 76 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 00 00 D2 [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]OFD Sender: No OFD packet to send [04:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 0C 42 00 90 00 C2 [04:18:47]RAPDU: 90 00 [04:18:47]wFMCommunicate OK [04:18:47]wFMCommunicate request_size=42 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C2 00 00 35 04 06 00 AE ED 80 3F 6C 8B [04:18:47]Write to MH i2c: E2 2D 00 0D 42 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C2 00 00 35 04 06 00 AE ED 80 3F 6C 8B 00 00 FF [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 03 00 0D 42 00 90 00 C3 [04:18:47]RAPDU: 90 00 [04:18:47]wFMCommunicate OK [04:18:47]wFMCommunicate request_size=4 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 0D 03 02 [04:18:47]Write to MH i2c: E2 08 00 0E 42 80 0D 03 02 00 00 00 00 CB [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 0B 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 0B 00 0E 42 00 6F FD 1D 61 8C 45 92 C3 90 00 DC [04:18:47]RAPDU: 6F FD 1D 61 8C 45 92 C3 90 00 [04:18:47]wFMCommunicate OK [04:18:47]SAM_PROTO_SignData done [04:18:47]FM_MakeSignedData done [04:18:47]CreateOFDProtocolMessage [04:18:47]wFMCommunicate request_size=4 [04:18:47]MH_SAM_APDU [04:18:47]CAPDU: 80 11 00 00 [04:18:47]Write to MH i2c: E2 08 00 0F 42 80 11 00 00 00 00 00 00 CB [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:47]Read from MH i2c: E2 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 17 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: E2 17 00 0F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [04:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:18:47]wFMCommunicate OK [04:18:47]CreateOFDProtocolMessage done [04:18:47]OFDSenderStorePacket 49750 [04:18:47]StoreOFDPacket docnum=49750 [04:18:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 E8 85 27 01 78 6B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2D 76 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C2 00 00 35 04 06 00 AE ED 80 3F 6C 8B 6F FD 1D 61 8C 45 92 C3 [04:18:47]CheckFolder [04:18:47]dirname=/storage/ofd_packets [04:18:47]CheckFolder done [04:18:47]ProducePacketName [04:18:47]name=ofd_packets/00049750 [04:18:47]NVStorageSaveData ofd_packets/00049750 [04:18:47]File name is /storage/ofd_packets/00049750 [04:18:47]Write 333 bytes [04:18:47]NVStorageSaveData done [04:18:47]OFDSenderStorePacket done [04:18:47]KKMCreateOFDPacket done [04:18:47]NVStorageSaveData kkm_last_timestamp [04:18:47]File name is /storage/kkm_last_timestamp [04:18:47]Write 4 bytes [04:18:47]NVStorageSaveData done [04:18:47]ExternCall_PrintAddStr [04:18:47]wPrintStart [04:18:47]Write to MH i2c: 01 00 00 10 42 52 [04:18:47]Write i2c OK [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: 01 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: 01 07 00 [04:18:47]MH_I2C_Read... [04:18:47]Read from MH i2c: 01 07 00 10 42 00 00 00 00 00 FF 0F 67 [04:18:47]RasterBufferAndPrint [04:18:47]line Счет N : (3)189929 [04:18:47]line ИНН: 02508201610067 [04:18:47]line Контрольно-Кассовый Чек [04:18:47]line ПРОДАЖА [04:18:47]line Товар: 4011100977624 [04:18:47]line Шок Батончик Баунти 55г [04:18:47]line 1.000 * 59.00 [04:18:47]line = 59.00 [04:18:47]line НДС 12% НСП 1% [04:18:47]line > о реализуемом товаре [04:18:47]line ИТОГО: 59.00 [04:18:47]line НСП 1% : 0.52 [04:18:47]line НДС 12% : 6.26 [04:18:47]line Наличными: 59.00 [04:18:47]line Безнал.: 0.00 [04:18:47]line Место: АЗС № 95 "Партнер Нефть" [04:18:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:18:47]line СНО: Общий режим [04:18:47]line Чек 16 18.08.2024 04:18 [04:18:47]line Смена: 466 ФФД: 1.0 [04:18:47]line ЗНМ: 0300000078 [04:18:47]line РНМ: 0000000000092546 [04:18:47]line Версия ККМ: 001 [04:18:47]line ФМ: 0000000000871800 [04:18:47]line ФД: 49750 [04:18:47]line ФПД: 192335082122379 [04:18:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T041853&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49750&fm=192335082122379&tin=02508201610067®Number=0000000000092546&sum=5900 [04:18:47]OFD Sender: Processing packet 49750 [packets to send 21, broken 20] [04:18:47]ProducePacketName [04:18:47]name=ofd_packets/00049750 [04:18:47]OFD Sender: To server: pG, [04:18:47]CommunicateWithHost lk.salyk.kg:30040 [04:18:47]ConnectInit lk.salyk.kg [04:18:47]line 0 [04:18:47]written 0, free lines is 4095 [04:18:48]Connected sock=10 [04:18:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 E8 85 27 01 78 6B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2D 76 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C2 00 00 35 04 06 00 AE ED 80 3F 6C 8B 6F FD 1D 61 8C 45 92 C3 [04:18:48]Write to MH i2c: 01 00 00 38 42 7A [04:18:48]Write i2c OK [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: 01 [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: 01 07 00 [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: 01 07 00 38 42 00 00 00 00 00 EA 0C 77 [04:18:48]RasterBufferAndPrint [04:18:48]line [04:18:48]line [04:18:48]line [04:18:48]line [04:18:48]line [04:18:48]written 0, free lines is 3312 [04: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 38 30 30 4F 00 00 00 88 74 47 00 17 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C2 00 00 F4 03 04 00 67 21 C1 66 B6 04 01 00 00 AD CC 39 80 25 31 DE 70 [04:18:48]CommunicateWithHost err = 0 [04:18:48]CheckOFDResponse [04:18:48]1017 (14) - 77093643461234 [04:18:48]1041 (16) - 0000000000871800 [04:18:48]1040 (4) - 49750 [04:18:48]1012 (4) - 17.08.2024 22:17 [04:18:48]1206 (1) - 0 [04:18:48]OFD Sender: Remove packet 49750 [04:18:48]ProducePacketName [04:18:48]name=ofd_packets/00049750 [04:18:48]NVStorageDeleteData [04:18:48]MH_Cut [04:18:48]Write to MH i2c: D1 01 00 3F 42 01 53 [04:18:48]Write i2c OK [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: D1 [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: D1 01 00 [04:18:48]MH_I2C_Read... [04:18:48]Read from MH i2c: D1 01 00 3F 42 00 52 [04:18:48]Write to MH i2c: 01 00 00 40 42 82 [04:18:48]Write i2c OK [04:18:48]MH_I2C_Read... [04:18:48]OFD Sender: No OFD packet to send [04:18:49]*** Cut start [04:18:49]*** Purtial cut [04:18:49]*** Stage 1: CUTSNS_PIN = 1 [04:18:49]Read from MH i2c: 01 [04:18:49]MH_I2C_Read... [04:18:49]*** Stop cut motor [04:18:49]*** Cut end [04:18:49]Read from MH i2c: 01 07 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: 01 07 00 40 42 00 00 00 00 00 FF 0F 97 [04:18:49]process_action close_receipt done [04:18:49]requested_data is exist [04:18:49]produce_requested_data [04:18:49]requested_item fm.sn is exist - process it [04:18:49]wFMCommunicate request_size=4 [04:18:49]MH_SAM_APDU [04:18:49]CAPDU: 80 11 00 00 [04:18:49]Write to MH i2c: E2 08 00 41 42 80 11 00 00 00 00 00 00 FD [04:18:49]Write i2c OK [04:18:49]MH_I2C_Read... [04:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:49]Read from MH i2c: E2 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 17 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 17 00 41 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 48 [04:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:18:49]wFMCommunicate OK [04:18:49]requested_item fd.num is exist - process it [04:18:49]SAM_PROTO_GetFieldsCounters [04:18:49]wFMCommunicate request_size=4 [04:18:49]MH_SAM_APDU [04:18:49]CAPDU: 80 13 00 00 [04:18:49]Write to MH i2c: E2 08 00 42 42 80 13 00 00 00 00 00 00 00 [04:18:49]Write i2c OK [04:18:49]MH_I2C_Read... [04:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:18:49]Read from MH i2c: E2 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 62 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 62 00 42 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [04:18:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:18:49]wFMCommunicate OK [04:18:49]SAM_PROTO_GetFieldsCounters done [04:18:49]requested_item shift.num is exist - process it [04:18:49]requested_item shift.opened is exist - process it [04:18:49]req_shift_opened [04:18:49]FM_GetShiftState [04:18:49]SAM_PROTO_GetShiftState [04:18:49]wFMCommunicate request_size=4 [04:18:49]MH_SAM_APDU [04:18:49]CAPDU: 80 13 01 00 [04:18:49]Write to MH i2c: E2 08 00 43 42 80 13 01 00 00 00 00 00 02 [04:18:49]Write i2c OK [04:18:49]MH_I2C_Read... [04:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:49]Read from MH i2c: E2 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 0E 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 0E 00 43 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 1F [04:18:49]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:18:49]wFMCommunicate OK [04:18:49]SAM_PROTO_GetShiftState done [04:18:49]FM_GetShiftState done [04:18:49]req_shift_opened done [04:18:49]requested_item shift.open_date is exist - process it [04:18:49]req_shift_open_date [04:18:49]req_shift_open_date done [04:18:49]produce_requested_data done [04:18:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49750,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:18:49]process_action_free close_receipt [04:18:49]json_value_free [04:18:49]json_value_free done [04:18:49]process_json_proto returns [04:18:49]Send response to host [04:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49750,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:18:49]free response buf [04:18:49]execute_script done [04:18:49]execute_script returns [04:18:49]free content buf [04:18:49]Sock 9.Close socket [04:18:49]Sock 9.Thread stoped [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:01]accept exits with 7 [04:24:01]New connection [04:24:01]New thread 3066801508 created [04:24:01]Thread 3066944868 joined [04:24:01]Waiting for new connection... [04:24:01] Sock 7.Parse request [04:24:01]Sock 7.Check first char [04:24:01]Sock 7.First char is OK [04:24:01]request: POST /json_proto HTTP/1.0 [04:24:01]Method: POST [04:24:01]URL: /json_proto [04:24:01]Method is POST - this is cgi request [04:24:01]url: /json_proto [04:24:01]query_string will be loaded in cgi processing [04:24:01]execute_cgi json_proto POST (null) [04:24:01]execute_cgi path=json_proto method=POST [04:24:01]POST find Content-Length [04:24:01]Host: 172.17.46.196:8080 [04:24:01]Content-Length: 630 [04:24:01]Content-Type: application/json [04:24:01] [04:24:01]POST finish read [04:24:01]Found Content-Length = 630 [04:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189930", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:01]execute_script... [04: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 : (3)189930", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:01]POST & json_proto [04:24:01]process_json_proto [04:24:01]json parsed OK: [04:24:01]protocol is kg_v1.0 [04:24:01]action value=close_receipt [04:24:01]process_action close_receipt [04:24:01]cmd_close_receipt [04:24:01]MH_GetDate [04:24:01]Write to MH i2c: F0 00 00 44 42 75 [04:24:01]Write i2c OK [04:24:01]MH_I2C_Read... [04:24:01]Read from MH i2c: F0 [04:24:01]MH_I2C_Read... [04:24:01]Read from MH i2c: F0 09 00 [04:24:01]MH_I2C_Read... [04:24:01]Read from MH i2c: F0 09 00 44 42 00 68 77 C1 66 07 E8 5D 66 36 [04:24:01]GetLastDocTimeStamp 1723954733 [04:24:01]current date 1723955048 [04:24:01]FM_GetShiftState [04:24:01]SAM_PROTO_GetShiftState [04:24:01]wFMCommunicate request_size=4 [04:24:01]MH_SAM_APDU [04:24:01]CAPDU: 80 13 01 00 [04:24:01]Write to MH i2c: E2 08 00 45 42 80 13 01 00 00 00 00 00 04 [04:24:01]Write i2c OK [04:24:01]MH_I2C_Read... [04:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:01]Read from MH i2c: E2 [04:24:01]MH_I2C_Read... [04:24:01]Read from MH i2c: E2 0E 00 [04:24:01]MH_I2C_Read... [04:24:01]Read from MH i2c: E2 0E 00 45 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 21 [04:24:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:24:01]wFMCommunicate OK [04:24:01]SAM_PROTO_GetShiftState done [04:24:01]FM_GetShiftState done [04:24:01]opened in 1723939759 [04:24:01]opened+sec_in_day 1724026159 [04:24:01]quantity*price = 5000 [04:24:01]sum+1 = 5001 [04:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 17 18.08.2024 04:24 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49751 ФПД: 235573387075011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T042408&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49751&fm=235573387075011&tin=02508201610067®Number=0000000000092546&sum=5000 0 [04:24:02]StoreToDocumentArchive [04:24:02]shift 466 fd 49751 [04:24:02]save to /storage/0466/doc_00049751 [04:24:02]save last doc name /storage/0466/doc_00049751 to /storage/kkm_last_doc_name [04:24:02]save OK [04:24:02]Clear old archive folders... [04:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=269 [04:24:02]tlvbuf is 01840AA0 [04:24:02]SAM_PROTO_ClearQueue [04:24:02]wFMCommunicate request_size=4 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 09 00 00 [04:24:02]Write to MH i2c: E2 08 00 52 42 80 09 00 00 00 00 00 00 06 [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 52 42 00 90 00 08 [04:24:02]RAPDU: 90 00 [04:24:02]wFMCommunicate OK [04:24:02]SAM_PROTO_ClearQueue done [04:24:02]KKMCreateOFDPacket [04:24:02]OFDProtocolAddRootSTLVToBuf [04:24:02]FM_MakeSignedData [04:24:02]FM_MakeSignedData [04:24:02]SAM_PROTO_SignData [04:24:02]wFMCommunicate request_size=4 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 0D 01 02 [04:24:02]Write to MH i2c: E2 08 00 53 42 80 0D 01 02 00 00 00 00 0E [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 53 42 00 90 00 09 [04:24:02]RAPDU: 90 00 [04:24:02]wFMCommunicate OK [04:24:02]wFMCommunicate request_size=255 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 68 77 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [04:24:02]Write to MH i2c: E2 02 01 54 42 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 68 77 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 10 [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 54 42 00 90 00 0A [04:24:02]RAPDU: 90 00 [04:24:02]wFMCommunicate OK [04:24:02]wFMCommunicate request_size=28 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 57 C2 00 00 35 04 06 00 D6 40 B4 0E 1D C3 [04:24:02]Write to MH i2c: E2 1F 00 55 42 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 57 C2 00 00 35 04 06 00 D6 40 B4 0E 1D C3 00 00 67 [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 03 00 55 42 00 90 00 0B [04:24:02]RAPDU: 90 00 [04:24:02]wFMCommunicate OK [04:24:02]wFMCommunicate request_size=4 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 0D 03 02 [04:24:02]Write to MH i2c: E2 08 00 56 42 80 0D 03 02 00 00 00 00 13 [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 0B 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 0B 00 56 42 00 B4 A1 7D EC B9 01 CB 8B 90 00 E2 [04:24:02]RAPDU: B4 A1 7D EC B9 01 CB 8B 90 00 [04:24:02]wFMCommunicate OK [04:24:02]SAM_PROTO_SignData done [04:24:02]FM_MakeSignedData done [04:24:02]CreateOFDProtocolMessage [04:24:02]wFMCommunicate request_size=4 [04:24:02]MH_SAM_APDU [04:24:02]CAPDU: 80 11 00 00 [04:24:02]Write to MH i2c: E2 08 00 57 42 80 11 00 00 00 00 00 00 13 [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:02]Read from MH i2c: E2 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 17 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: E2 17 00 57 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [04:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:24:02]wFMCommunicate OK [04:24:02]CreateOFDProtocolMessage done [04:24:02]OFDSenderStorePacket 49751 [04:24:02]StoreOFDPacket docnum=49751 [04:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 B1 9F 19 01 51 0A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 68 77 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C2 00 00 35 04 06 00 D6 40 B4 0E 1D C3 B4 A1 7D EC B9 01 CB 8B [04:24:02]CheckFolder [04:24:02]dirname=/storage/ofd_packets [04:24:02]CheckFolder done [04:24:02]ProducePacketName [04:24:02]name=ofd_packets/00049751 [04:24:02]NVStorageSaveData ofd_packets/00049751 [04:24:02]File name is /storage/ofd_packets/00049751 [04:24:02]Write 319 bytes [04:24:02]NVStorageSaveData done [04:24:02]OFDSenderStorePacket done [04:24:02]KKMCreateOFDPacket done [04:24:02]NVStorageSaveData kkm_last_timestamp [04:24:02]File name is /storage/kkm_last_timestamp [04:24:02]Write 4 bytes [04:24:02]NVStorageSaveData done [04:24:02]ExternCall_PrintAddStr [04:24:02]wPrintStart [04:24:02]Write to MH i2c: 01 00 00 58 42 9A [04:24:02]Write i2c OK [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: 01 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: 01 07 00 [04:24:02]MH_I2C_Read... [04:24:02]Read from MH i2c: 01 07 00 58 42 00 00 00 00 00 FF 0F AF [04:24:02]RasterBufferAndPrint [04:24:02]line Счет N : (3)189930 [04:24:02]line ИНН: 02508201610067 [04:24:02]line Контрольно-Кассовый Чек [04:24:02]line ПРОДАЖА [04:24:02]line Товар: 4700000160358 [04:24:03]line Вода Легенда 1л [04:24:03]line 1.000 * 50.00 [04:24:03]line = 50.00 [04:24:03]line НДС 12% НСП 1% [04:24:03]line > о реализуемом товаре [04:24:03]line ИТОГО: 50.00 [04:24:03]line НСП 1% : 0.44 [04:24:03]line НДС 12% : 5.31 [04:24:03]line Наличными: 50.00 [04:24:03]line Безнал.: 0.00 [04:24:03]line Место: АЗС № 95 "Партнер Нефть" [04:24:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:24:03]line СНО: Общий режим [04:24:03]line Чек 17 18.08.2024 04:24 [04:24:03]line Смена: 466 ФФД: 1.0 [04:24:03]line ЗНМ: 0300000078 [04:24:03]line РНМ: 0000000000092546 [04:24:03]line Версия ККМ: 001 [04:24:03]line ФМ: 0000000000871800 [04:24:03]line ФД: 49751 [04:24:03]line ФПД: 235573387075011 [04:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T042408&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49751&fm=235573387075011&tin=02508201610067®Number=0000000000092546&sum=5000 [04:24:03]OFD Sender: Processing packet 49751 [packets to send 21, broken 20] [04:24:03]ProducePacketName [04:24:03]name=ofd_packets/00049751 [04:24:03]OFD Sender: To server: pG, [04:24:03]CommunicateWithHost lk.salyk.kg:30040 [04:24:03]ConnectInit lk.salyk.kg [04:24:03]line 0 [04:24:03]written 0, free lines is 4095 [04:24:03]Connected sock=10 [04: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 38 30 30 21 01 00 00 B1 9F 19 01 51 0A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 68 77 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C2 00 00 35 04 06 00 D6 40 B4 0E 1D C3 B4 A1 7D EC B9 01 CB 8B [04:24:03]Write to MH i2c: 01 00 00 80 42 C2 [04:24:03]Write i2c OK [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: 01 [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: 01 07 00 [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: 01 07 00 80 42 00 00 00 00 00 ED 0C C2 [04:24:03]RasterBufferAndPrint [04:24:03]line [04:24:03]line [04:24:03]line [04:24:03]line [04:24:03]line [04:24:03]written 0, free lines is 3315 [04: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 38 30 30 4F 00 00 00 12 D1 47 00 01 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C2 00 00 F4 03 04 00 A2 22 C1 66 B6 04 01 00 00 29 3D 9E 04 BF 97 29 A0 [04:24:03]CommunicateWithHost err = 0 [04:24:03]CheckOFDResponse [04:24:03]1017 (14) - 77093643461234 [04:24:03]1041 (16) - 0000000000871800 [04:24:03]1040 (4) - 49751 [04:24:03]1012 (4) - 17.08.2024 22:22 [04:24:03]1206 (1) - 0 [04:24:03]OFD Sender: Remove packet 49751 [04:24:03]ProducePacketName [04:24:03]name=ofd_packets/00049751 [04:24:03]NVStorageDeleteData [04:24:03]MH_Cut [04:24:03]Write to MH i2c: D1 01 00 87 42 01 9B [04:24:03]Write i2c OK [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: D1 [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: D1 01 00 [04:24:03]MH_I2C_Read... [04:24:03]Read from MH i2c: D1 01 00 87 42 00 9A [04:24:03]Write to MH i2c: 01 00 00 88 42 CA [04:24:03]Write i2c OK [04:24:03]MH_I2C_Read... [04:24:04]OFD Sender: No OFD packet to send [04:24:04]*** Cut start [04:24:04]*** Purtial cut [04:24:04]*** CUTSNS_PIN = 0 [04:24:04]*** Stage 1: CUTSNS_PIN = 1 [04:24:06]Read from MH i2c: 01 [04:24:06]MH_I2C_Read... [04:24:06]*** Stop cut motor [04:24:06]*** Cut end [04:24:06]Read from MH i2c: 01 07 00 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: 01 07 00 88 42 00 00 00 00 00 FF 0F DF [04:24:06]process_action close_receipt done [04:24:06]requested_data is exist [04:24:06]produce_requested_data [04:24:06]requested_item fm.sn is exist - process it [04:24:06]wFMCommunicate request_size=4 [04:24:06]MH_SAM_APDU [04:24:06]CAPDU: 80 11 00 00 [04:24:06]Write to MH i2c: E2 08 00 89 42 80 11 00 00 00 00 00 00 45 [04:24:06]Write i2c OK [04:24:06]MH_I2C_Read... [04:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:06]Read from MH i2c: E2 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 17 00 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 17 00 89 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [04:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:24:06]wFMCommunicate OK [04:24:06]requested_item fd.num is exist - process it [04:24:06]SAM_PROTO_GetFieldsCounters [04:24:06]wFMCommunicate request_size=4 [04:24:06]MH_SAM_APDU [04:24:06]CAPDU: 80 13 00 00 [04:24:06]Write to MH i2c: E2 08 00 8A 42 80 13 00 00 00 00 00 00 48 [04:24:06]Write i2c OK [04:24:06]MH_I2C_Read... [04:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:06]Read from MH i2c: E2 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 62 00 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 62 00 8A 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [04:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:06]wFMCommunicate OK [04:24:06]SAM_PROTO_GetFieldsCounters done [04:24:06]requested_item shift.num is exist - process it [04:24:06]requested_item shift.opened is exist - process it [04:24:06]req_shift_opened [04:24:06]FM_GetShiftState [04:24:06]SAM_PROTO_GetShiftState [04:24:06]wFMCommunicate request_size=4 [04:24:06]MH_SAM_APDU [04:24:06]CAPDU: 80 13 01 00 [04:24:06]Write to MH i2c: E2 08 00 8B 42 80 13 01 00 00 00 00 00 4A [04:24:06]Write i2c OK [04:24:06]MH_I2C_Read... [04:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:06]Read from MH i2c: E2 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 0E 00 [04:24:06]MH_I2C_Read... [04:24:06]Read from MH i2c: E2 0E 00 8B 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 67 [04:24:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:24:06]wFMCommunicate OK [04:24:06]SAM_PROTO_GetShiftState done [04:24:06]FM_GetShiftState done [04:24:06]req_shift_opened done [04:24:06]requested_item shift.open_date is exist - process it [04:24:06]req_shift_open_date [04:24:06]req_shift_open_date done [04:24:06]produce_requested_data done [04:24:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49751,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:24:06]process_action_free close_receipt [04:24:06]json_value_free [04:24:06]json_value_free done [04:24:06]process_json_proto returns [04:24:06]Send response to host [04:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49751,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:24:06]free response buf [04:24:06]execute_script done [04:24:06]execute_script returns [04:24:06]free content buf [04:24:06]Sock 7.Close socket [04:24:06]Sock 7.Thread stoped [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:52]accept exits with 9 [04:34:52]New connection [04:34:52]New thread 3066944868 created [04:34:52]Thread 3066801508 joined [04:34:52]Waiting for new connection... [04:34:52] Sock 9.Parse request [04:34:52]Sock 9.Check first char [04:34:52]Sock 9.First char is OK [04:34:52]request: POST /json_proto HTTP/1.0 [04:34:52]Method: POST [04:34:52]URL: /json_proto [04:34:52]Method is POST - this is cgi request [04:34:52]url: /json_proto [04:34:52]query_string will be loaded in cgi processing [04:34:52]execute_cgi json_proto POST (null) [04:34:52]execute_cgi path=json_proto method=POST [04:34:52]POST find Content-Length [04:34:52]Host: 172.17.46.196:8080 [04:34:52]Content-Length: 1129 [04:34:52]Content-Type: application/json [04:34:52] [04:34:52]POST finish read [04:34:52]Found Content-Length = 1129 [04:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189931", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 384.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:52]execute_script... [04:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189931", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 384.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:52]POST & json_proto [04:34:52]process_json_proto [04:34:52]json parsed OK: [04:34:52]protocol is kg_v1.0 [04:34:52]action value=close_receipt [04:34:52]process_action close_receipt [04:34:52]cmd_close_receipt [04:34:52]MH_GetDate [04:34:52]Write to MH i2c: F0 00 00 8C 42 BD [04:34:52]Write i2c OK [04:34:52]MH_I2C_Read... [04:34:52]Read from MH i2c: F0 [04:34:52]MH_I2C_Read... [04:34:52]Read from MH i2c: F0 09 00 [04:34:52]MH_I2C_Read... [04:34:52]Read from MH i2c: F0 09 00 8C 42 00 F3 79 C1 66 07 E8 5D 66 0B [04:34:52]GetLastDocTimeStamp 1723955048 [04:34:52]current date 1723955699 [04:34:52]FM_GetShiftState [04:34:52]SAM_PROTO_GetShiftState [04:34:52]wFMCommunicate request_size=4 [04:34:52]MH_SAM_APDU [04:34:52]CAPDU: 80 13 01 00 [04:34:52]Write to MH i2c: E2 08 00 8D 42 80 13 01 00 00 00 00 00 4C [04:34:52]Write i2c OK [04:34:52]MH_I2C_Read... [04:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:52]Read from MH i2c: E2 [04:34:52]MH_I2C_Read... [04:34:52]Read from MH i2c: E2 0E 00 [04:34:52]MH_I2C_Read... [04:34:52]Read from MH i2c: E2 0E 00 8D 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 69 [04:34:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:34:52]wFMCommunicate OK [04:34:52]SAM_PROTO_GetShiftState done [04:34:52]FM_GetShiftState done [04:34:52]opened in 1723939759 [04:34:52]opened+sec_in_day 1724026159 [04:34:52]quantity*price = 10500 [04:34:52]sum+1 = 10501 [04:34:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214645 Р/ж mentos pure white клуб 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 384.00 НСП 1% : 3.39 НДС 12% : 40.77 Наличными: 384.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 18 18.08.2024 04:34 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49752 ФПД: 263071168406293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043459&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49752&fm=263071168406293&tin=02508201610067®Number=0000000000092546&sum=38400 0 [04:34:53]StoreToDocumentArchive [04:34:53]shift 466 fd 49752 [04:34:53]save to /storage/0466/doc_00049752 [04:34:53]save last doc name /storage/0466/doc_00049752 to /storage/kkm_last_doc_name [04:34:53]save OK [04:34:53]Clear old archive folders... [04:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=495 [04:34:53]tlvbuf is 018210E0 [04:34:53]SAM_PROTO_ClearQueue [04:34:53]wFMCommunicate request_size=4 [04:34:53]MH_SAM_APDU [04:34:53]CAPDU: 80 09 00 00 [04:34:53]Write to MH i2c: E2 08 00 9A 42 80 09 00 00 00 00 00 00 4E [04:34:53]Write i2c OK [04:34:53]MH_I2C_Read... [04:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:53]Read from MH i2c: E2 [04:34:53]MH_I2C_Read... [04:34:53]Read from MH i2c: E2 03 00 [04:34:53]MH_I2C_Read... [04:34:53]Read from MH i2c: E2 03 00 9A 42 00 90 00 50 [04:34:53]RAPDU: 90 00 [04:34:53]wFMCommunicate OK [04:34:53]SAM_PROTO_ClearQueue done [04:34:53]KKMCreateOFDPacket [04:34:53]OFDProtocolAddRootSTLVToBuf [04:34:53]FM_MakeSignedData [04:34:53]FM_MakeSignedData [04:34:53]SAM_PROTO_SignData [04:34:53]wFMCommunicate request_size=4 [04:34:53]MH_SAM_APDU [04:34:53]CAPDU: 80 0D 01 02 [04:34:53]Write to MH i2c: E2 08 00 9B 42 80 0D 01 02 00 00 00 00 56 [04:34:53]Write i2c OK [04:34:53]MH_I2C_Read... [04:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:53]Read from MH i2c: E2 [04:34:53]MH_I2C_Read... [04:34:53]Read from MH i2c: E2 03 00 [04:34:53]MH_I2C_Read... [04:34:53]Read from MH i2c: E2 03 00 9B 42 00 90 00 51 [04:34:53]RAPDU: 90 00 [04:34:53]wFMCommunicate OK [04:34:53]wFMCommunicate request_size=255 [04:34:53]MH_SAM_APDU [04:34:53]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 [04:34:53]Write to MH i2c: E2 02 01 9C 42 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 00 00 67 [04:34:54]Write i2c OK [04:34:54]MH_I2C_Read... [04:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:54]Read from MH i2c: E2 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 03 00 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 03 00 9C 42 00 90 00 52 [04:34:54]RAPDU: 90 00 [04:34:54]wFMCommunicate OK [04:34:54]wFMCommunicate request_size=254 [04:34:54]MH_SAM_APDU [04:34:54]CAPDU: 80 0D 02 02 F9 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F3 79 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C2 00 00 35 04 06 00 EF 43 07 8B 23 15 [04:34:54]Write to MH i2c: E2 01 01 9D 42 80 0D 02 02 F9 00 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F3 79 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C2 00 00 35 04 06 00 EF 43 07 8B 23 15 00 00 E6 [04:34:54]Write i2c OK [04:34:54]MH_I2C_Read... [04:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:54]Read from MH i2c: E2 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 03 00 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 03 00 9D 42 00 90 00 53 [04:34:54]RAPDU: 90 00 [04:34:54]wFMCommunicate OK [04:34:54]wFMCommunicate request_size=4 [04:34:54]MH_SAM_APDU [04:34:54]CAPDU: 80 0D 03 02 [04:34:54]Write to MH i2c: E2 08 00 9E 42 80 0D 03 02 00 00 00 00 5B [04:34:54]Write i2c OK [04:34:54]MH_I2C_Read... [04:34:54]OFD Sender: No OFD packet to send [04:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:54]Read from MH i2c: E2 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 0B 00 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 0B 00 9E 42 00 E7 EB EF 71 20 89 EC 97 90 00 BA [04:34:54]RAPDU: E7 EB EF 71 20 89 EC 97 90 00 [04:34:54]wFMCommunicate OK [04:34:54]SAM_PROTO_SignData done [04:34:54]FM_MakeSignedData done [04:34:54]CreateOFDProtocolMessage [04:34:54]wFMCommunicate request_size=4 [04:34:54]MH_SAM_APDU [04:34:54]CAPDU: 80 11 00 00 [04:34:54]Write to MH i2c: E2 08 00 9F 42 80 11 00 00 00 00 00 00 5B [04:34:54]Write i2c OK [04:34:54]MH_I2C_Read... [04:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:54]Read from MH i2c: E2 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 17 00 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: E2 17 00 9F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A6 [04:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:34:54]wFMCommunicate OK [04:34:54]CreateOFDProtocolMessage done [04:34:54]OFDSenderStorePacket 49752 [04:34:54]StoreOFDPacket docnum=49752 [04:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 03 02 00 00 5D D6 FB 01 41 6B 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F3 79 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C2 00 00 35 04 06 00 EF 43 07 8B 23 15 E7 EB EF 71 20 89 EC 97 [04:34:54]CheckFolder [04:34:54]dirname=/storage/ofd_packets [04:34:54]CheckFolder done [04:34:54]ProducePacketName [04:34:54]name=ofd_packets/00049752 [04:34:54]NVStorageSaveData ofd_packets/00049752 [04:34:54]File name is /storage/ofd_packets/00049752 [04:34:54]Write 545 bytes [04:34:54]NVStorageSaveData done [04:34:54]OFDSenderStorePacket done [04:34:54]KKMCreateOFDPacket done [04:34:54]NVStorageSaveData kkm_last_timestamp [04:34:54]File name is /storage/kkm_last_timestamp [04:34:54]Write 4 bytes [04:34:54]NVStorageSaveData done [04:34:54]ExternCall_PrintAddStr [04:34:54]wPrintStart [04:34:54]Write to MH i2c: 01 00 00 A0 42 E2 [04:34:54]Write i2c OK [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: 01 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: 01 07 00 [04:34:54]MH_I2C_Read... [04:34:54]Read from MH i2c: 01 07 00 A0 42 00 00 00 00 00 FF 0F F7 [04:34:54]RasterBufferAndPrint [04:34:54]line Счет N : (3)189931 [04:34:54]line ИНН: 02508201610067 [04:34:54]line Контрольно-Кассовый Чек [04:34:54]line ПРОДАЖА [04:34:54]line Товар: 2000034730018 [04:34:54]line Кофе Американо (GABB TRADE) [04:34:54]line 1.000 * 105.00 [04:34:54]line = 105.00 [04:34:54]line НДС 12% НСП 1% [04:34:54]line > о реализуемом товаре [04:34:54]line Товар: 2000036240010 [04:34:54]line Кофе Латте (GABB TRADE) [04:34:54]line 2.000 * 115.00 [04:34:54]line = 230.00 [04:34:54]line НДС 12% НСП 1% [04:34:54]line > о реализуемом товаре [04:34:54]line Товар: 46214645 [04:34:54]line Р/ж mentos pure white клуб 16/15,5г [04:34:54]line 1.000 * 49.00 [04:34:54]line = 49.00 [04:34:54]line НДС 12% НСП 1% [04:34:54]line > о реализуемом товаре [04:34:54]line ИТОГО: 384.00 [04:34:54]line НСП 1% : 3.39 [04:34:54]line НДС 12% : 40.77 [04:34:54]line Наличными: 384.00 [04:34:54]line Безнал.: 0.00 [04:34:54]line Место: АЗС № 95 "Партнер Нефть" [04:34:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:34:54]line СНО: Общий режим [04:34:54]line Чек 18 18.08.2024 04:34 [04:34:54]line Смена: 466 ФФД: 1.0 [04:34:54]line ЗНМ: 0300000078 [04:34:54]line РНМ: 0000000000092546 [04:34:54]line Версия ККМ: 001 [04:34:54]line ФМ: 0000000000871800 [04:34:54]line ФД: 49752 [04:34:54]line ФПД: 263071168406293 [04:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043459&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49752&fm=263071168406293&tin=02508201610067®Number=0000000000092546&sum=38400 [04:34:54]OFD Sender: Processing packet 49752 [packets to send 21, broken 20] [04:34:54]ProducePacketName [04:34:54]name=ofd_packets/00049752 [04:34:54]OFD Sender: To server: pG, [04:34:54]CommunicateWithHost lk.salyk.kg:30040 [04:34:54]ConnectInit lk.salyk.kg [04:34:54]line 0 [04:34:54]written 0, free lines is 4095 [04:34:55]Connected sock=11 [04:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 03 02 00 00 5D D6 FB 01 41 6B 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 0F 00 00 00 00 07 04 06 00 00 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F3 79 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C2 00 00 35 04 06 00 EF 43 07 8B 23 15 E7 EB EF 71 20 89 EC 97 [04:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 92 45 47 00 25 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 38 30 30 10 04 04 00 58 C2 00 00 F4 03 04 00 2E 25 C1 66 B6 04 01 00 00 6C 4A 7D 96 4A 4D 41 0A [04:34:55]CommunicateWithHost err = 0 [04:34:55]CheckOFDResponse [04:34:55]1017 (14) - 77093643461234 [04:34:55]1041 (16) - 0000000000871800 [04:34:55]1040 (4) - 49752 [04:34:55]1012 (4) - 17.08.2024 22:33 [04:34:55]1206 (1) - 0 [04:34:55]OFD Sender: Remove packet 49752 [04:34:55]ProducePacketName [04:34:55]name=ofd_packets/00049752 [04:34:55]NVStorageDeleteData [04:34:55]Write to MH i2c: 01 00 00 D6 42 18 [04:34:55]Write i2c OK [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: 01 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: 01 07 00 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: 01 07 00 D6 42 00 00 00 00 00 12 0C 3D [04:34:55]RasterBufferAndPrint [04:34:55]line [04:34:55]line [04:34:55]line [04:34:55]line [04:34:55]line [04:34:55]written 0, free lines is 3095 [04:34:55]MH_Cut [04:34:55]Write to MH i2c: D1 01 00 DD 42 01 F1 [04:34:55]Write i2c OK [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: D1 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: D1 01 00 [04:34:55]MH_I2C_Read... [04:34:55]Read from MH i2c: D1 01 00 DD 42 00 F0 [04:34:55]Write to MH i2c: 01 00 00 DE 42 20 [04:34:55]Write i2c OK [04:34:55]MH_I2C_Read... [04:34:55]OFD Sender: No OFD packet to send [04:34:56]*** Cut start [04:34:56]*** Purtial cut [04:34:56]*** Stage 1: CUTSNS_PIN = 1 [04:34:56]Read from MH i2c: 01 [04:34:56]MH_I2C_Read... [04:34:56]*** Stop cut motor [04:34:56]*** Cut end [04:34:56]Read from MH i2c: 01 07 00 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: 01 07 00 DE 42 00 00 00 00 00 FF 0F 35 [04:34:56]process_action close_receipt done [04:34:56]requested_data is exist [04:34:56]produce_requested_data [04:34:56]requested_item fm.sn is exist - process it [04:34:56]wFMCommunicate request_size=4 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 11 00 00 [04:34:56]Write to MH i2c: E2 08 00 DF 42 80 11 00 00 00 00 00 00 9B [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:56]Read from MH i2c: E2 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 17 00 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 17 00 DF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [04:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:34:56]wFMCommunicate OK [04:34:56]requested_item fd.num is exist - process it [04:34:56]SAM_PROTO_GetFieldsCounters [04:34:56]wFMCommunicate request_size=4 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 13 00 00 [04:34:56]Write to MH i2c: E2 08 00 E0 42 80 13 00 00 00 00 00 00 9E [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:56]Read from MH i2c: E2 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 62 00 [04:34:56]MH_I2C_Read... [04:34:56]Read from MH i2c: E2 62 00 E0 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [04:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:56]wFMCommunicate OK [04:34:56]SAM_PROTO_GetFieldsCounters done [04:34:56]requested_item shift.num is exist - process it [04:34:56]requested_item shift.opened is exist - process it [04:34:56]req_shift_opened [04:34:56]FM_GetShiftState [04:34:56]SAM_PROTO_GetShiftState [04:34:56]wFMCommunicate request_size=4 [04:34:56]MH_SAM_APDU [04:34:56]CAPDU: 80 13 01 00 [04:34:56]Write to MH i2c: E2 08 00 E1 42 80 13 01 00 00 00 00 00 A0 [04:34:56]Write i2c OK [04:34:56]MH_I2C_Read... [04:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:57]Read from MH i2c: E2 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 0E 00 [04:34:57]MH_I2C_Read... [04:34:57]Read from MH i2c: E2 0E 00 E1 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BD [04:34:57]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:34:57]wFMCommunicate OK [04:34:57]SAM_PROTO_GetShiftState done [04:34:57]FM_GetShiftState done [04:34:57]req_shift_opened done [04:34:57]requested_item shift.open_date is exist - process it [04:34:57]req_shift_open_date [04:34:57]req_shift_open_date done [04:34:57]produce_requested_data done [04:34:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49752,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:34:57]process_action_free close_receipt [04:34:57]json_value_free [04:34:57]json_value_free done [04:34:57]process_json_proto returns [04:34:57]Send response to host [04:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49752,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:34:57]free response buf [04:34:57]execute_script done [04:34:57]execute_script returns [04:34:57]free content buf [04:34:57]Sock 9.Close socket [04:34:57]Sock 9.Thread stoped [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]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:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:02]accept exits with 7 [04:43:02]New connection [04:43:02]New thread 3066801508 created [04:43:02]Thread 3066944868 joined [04:43:02]Waiting for new connection... [04:43:02] Sock 7.Parse request [04:43:02]Sock 7.Check first char [04:43:02]Sock 7.First char is OK [04:43:02]request: POST /json_proto HTTP/1.0 [04:43:02]Method: POST [04:43:02]URL: /json_proto [04:43:02]Method is POST - this is cgi request [04:43:02]url: /json_proto [04:43:02]query_string will be loaded in cgi processing [04:43:02]execute_cgi json_proto POST (null) [04:43:02]execute_cgi path=json_proto method=POST [04:43:02]POST find Content-Length [04:43:02]Host: 172.17.46.196:8080 [04:43:02]Content-Length: 646 [04:43:02]Content-Type: application/json [04:43:02] [04:43:02]POST finish read [04:43:02]Found Content-Length = 646 [04:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189932", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:02]execute_script... [04:43: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 : (3)189932", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:02]POST & json_proto [04:43:02]process_json_proto [04:43:02]json parsed OK: [04:43:02]protocol is kg_v1.0 [04:43:02]action value=close_receipt [04:43:02]process_action close_receipt [04:43:02]cmd_close_receipt [04:43:02]MH_GetDate [04:43:02]Write to MH i2c: F0 00 00 E2 42 13 [04:43:02]Write i2c OK [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: F0 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: F0 09 00 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: F0 09 00 E2 42 00 DD 7B C1 66 07 E8 5D 66 4D [04:43:02]GetLastDocTimeStamp 1723955699 [04:43:02]current date 1723956189 [04:43:02]FM_GetShiftState [04:43:02]SAM_PROTO_GetShiftState [04:43:02]wFMCommunicate request_size=4 [04:43:02]MH_SAM_APDU [04:43:02]CAPDU: 80 13 01 00 [04:43:02]Write to MH i2c: E2 08 00 E3 42 80 13 01 00 00 00 00 00 A2 [04:43:02]Write i2c OK [04:43:02]MH_I2C_Read... [04:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:02]Read from MH i2c: E2 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: E2 0E 00 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: E2 0E 00 E3 42 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BF [04:43:02]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:43:02]wFMCommunicate OK [04:43:02]SAM_PROTO_GetShiftState done [04:43:02]FM_GetShiftState done [04:43:02]opened in 1723939759 [04:43:02]opened+sec_in_day 1724026159 [04:43:02]quantity*price = 13000 [04:43:02]sum+1 = 13001 [04:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 19 18.08.2024 04:43 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49753 ФПД: 31100162984005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T044309&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49753&fm=31100162984005&tin=02508201610067®Number=0000000000092546&sum=13000 0 [04:43:03]StoreToDocumentArchive [04:43:03]shift 466 fd 49753 [04:43:03]save to /storage/0466/doc_00049753 [04:43:03]save last doc name /storage/0466/doc_00049753 to /storage/kkm_last_doc_name [04:43:03]save OK [04:43:03]Clear old archive folders... [04:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:43:03]tlvbuf is 0194FA70 [04:43:03]SAM_PROTO_ClearQueue [04:43:03]wFMCommunicate request_size=4 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 09 00 00 [04:43:03]Write to MH i2c: E2 08 00 F0 42 80 09 00 00 00 00 00 00 A4 [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 F0 42 00 90 00 A6 [04:43:03]RAPDU: 90 00 [04:43:03]wFMCommunicate OK [04:43:03]SAM_PROTO_ClearQueue done [04:43:03]KKMCreateOFDPacket [04:43:03]OFDProtocolAddRootSTLVToBuf [04:43:03]FM_MakeSignedData [04:43:03]FM_MakeSignedData [04:43:03]SAM_PROTO_SignData [04:43:03]wFMCommunicate request_size=4 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 0D 01 02 [04:43:03]Write to MH i2c: E2 08 00 F1 42 80 0D 01 02 00 00 00 00 AC [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 F1 42 00 90 00 A7 [04:43:03]RAPDU: 90 00 [04:43:03]wFMCommunicate OK [04:43:03]wFMCommunicate request_size=255 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DD 7B C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [04:43:03]Write to MH i2c: E2 02 01 F2 42 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DD 7B C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 21 [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 F2 42 00 90 00 A8 [04:43:03]RAPDU: 90 00 [04:43:03]wFMCommunicate OK [04:43:03]wFMCommunicate request_size=41 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C2 00 00 35 04 06 00 1C 49 12 2A C8 45 [04:43:03]Write to MH i2c: E2 2C 00 F3 42 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C2 00 00 35 04 06 00 1C 49 12 2A C8 45 00 00 3F [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 03 00 F3 42 00 90 00 A9 [04:43:03]RAPDU: 90 00 [04:43:03]wFMCommunicate OK [04:43:03]wFMCommunicate request_size=4 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 0D 03 02 [04:43:03]Write to MH i2c: E2 08 00 F4 42 80 0D 03 02 00 00 00 00 B1 [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 0B 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 0B 00 F4 42 00 C3 44 A1 1A A0 C5 47 75 90 00 95 [04:43:03]RAPDU: C3 44 A1 1A A0 C5 47 75 90 00 [04:43:03]wFMCommunicate OK [04:43:03]SAM_PROTO_SignData done [04:43:03]FM_MakeSignedData done [04:43:03]CreateOFDProtocolMessage [04:43:03]wFMCommunicate request_size=4 [04:43:03]MH_SAM_APDU [04:43:03]CAPDU: 80 11 00 00 [04:43:03]Write to MH i2c: E2 08 00 F5 42 80 11 00 00 00 00 00 00 B1 [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:03]Read from MH i2c: E2 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 17 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: E2 17 00 F5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [04:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:43:03]wFMCommunicate OK [04:43:03]CreateOFDProtocolMessage done [04:43:03]OFDSenderStorePacket 49753 [04:43:03]StoreOFDPacket docnum=49753 [04:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 21 33 26 01 A6 5C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DD 7B C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C2 00 00 35 04 06 00 1C 49 12 2A C8 45 C3 44 A1 1A A0 C5 47 75 [04:43:03]CheckFolder [04:43:03]dirname=/storage/ofd_packets [04:43:03]CheckFolder done [04:43:03]ProducePacketName [04:43:03]name=ofd_packets/00049753 [04:43:03]NVStorageSaveData ofd_packets/00049753 [04:43:03]File name is /storage/ofd_packets/00049753 [04:43:03]Write 332 bytes [04:43:03]NVStorageSaveData done [04:43:03]OFDSenderStorePacket done [04:43:03]KKMCreateOFDPacket done [04:43:03]NVStorageSaveData kkm_last_timestamp [04:43:03]File name is /storage/kkm_last_timestamp [04:43:03]Write 4 bytes [04:43:03]NVStorageSaveData done [04:43:03]ExternCall_PrintAddStr [04:43:03]wPrintStart [04:43:03]Write to MH i2c: 01 00 00 F6 42 38 [04:43:03]Write i2c OK [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: 01 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: 01 07 00 [04:43:03]MH_I2C_Read... [04:43:03]Read from MH i2c: 01 07 00 F6 42 00 00 00 00 00 FF 0F 4D [04:43:03]RasterBufferAndPrint [04:43:03]line Счет N : (3)189932 [04:43:03]line ИНН: 02508201610067 [04:43:03]line Контрольно-Кассовый Чек [04:43:03]line ПРОДАЖА [04:43:03]line Товар: 2000036220012 [04:43:03]line Кофе Капучино XL(GABB TRADE) [04:43:03]line 1.000 * 130.00 [04:43:03]line = 130.00 [04:43:03]line НДС 12% НСП 1% [04:43:03]line > о реализуемом товаре [04:43:03]line ИТОГО: 130.00 [04:43:03]line НСП 1% : 1.15 [04:43:03]line НДС 12% : 13.80 [04:43:03]line Наличными: 130.00 [04:43:03]line Безнал.: 0.00 [04:43:03]line Место: АЗС № 95 "Партнер Нефть" [04:43:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:43:03]line СНО: Общий режим [04:43:03]line Чек 19 18.08.2024 04:43 [04:43:03]line Смена: 466 ФФД: 1.0 [04:43:03]line ЗНМ: 0300000078 [04:43:03]line РНМ: 0000000000092546 [04:43:03]line Версия ККМ: 001 [04:43:03]line ФМ: 0000000000871800 [04:43:03]line ФД: 49753 [04:43:03]line ФПД: 31100162984005 [04:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T044309&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49753&fm=31100162984005&tin=02508201610067®Number=0000000000092546&sum=13000 [04:43:04]line 0 [04:43:04]OFD Sender: Processing packet 49753 [packets to send 21, broken 20] [04:43:04]ProducePacketName [04:43:04]name=ofd_packets/00049753 [04:43:04]OFD Sender: To server: pG, [04:43:04]CommunicateWithHost lk.salyk.kg:30040 [04:43:04]ConnectInit lk.salyk.kg [04:43:04]written 0, free lines is 4095 [04:43:04]Connected sock=10 [04:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 21 33 26 01 A6 5C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DD 7B C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C2 00 00 35 04 06 00 1C 49 12 2A C8 45 C3 44 A1 1A A0 C5 47 75 [04:43:04]Write to MH i2c: 01 00 00 1F 43 62 [04:43:04]Write i2c OK [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: 01 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: 01 07 00 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: 01 07 00 1F 43 00 00 00 00 00 DC 0C 51 [04:43:04]RasterBufferAndPrint [04:43:04]line [04:43:04]line [04:43:04]line [04:43:04]line [04:43:04]line [04:43:04]written 0, free lines is 3298 [04:43:04]MH_Cut [04:43:04]Write to MH i2c: D1 01 00 26 43 01 3B [04:43:04]Write i2c OK [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: D1 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: D1 01 00 [04:43:04]MH_I2C_Read... [04:43:04]Read from MH i2c: D1 01 00 26 43 00 3A [04:43:04]Write to MH i2c: 01 00 00 27 43 6A [04:43:04]Write i2c OK [04:43:04]MH_I2C_Read... [04:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D4 35 47 00 85 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 38 30 30 10 04 04 00 59 C2 00 00 F4 03 04 00 17 27 C1 66 B6 04 01 00 00 E6 3F A0 36 2E 31 0B 47 [04:43:04]CommunicateWithHost err = 0 [04:43:04]CheckOFDResponse [04:43:04]1017 (14) - 77093643461234 [04:43:04]1041 (16) - 0000000000871800 [04:43:04]1040 (4) - 49753 [04:43:04]1012 (4) - 17.08.2024 22:41 [04:43:04]1206 (1) - 0 [04:43:04]OFD Sender: Remove packet 49753 [04:43:04]ProducePacketName [04:43:04]name=ofd_packets/00049753 [04:43:04]NVStorageDeleteData [04:43:05]OFD Sender: No OFD packet to send [04:43:05]*** Cut start [04:43:05]*** Purtial cut [04:43:05]*** CUTSNS_PIN = 0 [04:43:05]*** Stage 1: CUTSNS_PIN = 1 [04:43:07]Read from MH i2c: 01 [04:43:07]MH_I2C_Read... [04:43:07]*** Stop cut motor [04:43:07]*** Cut end [04:43:07]Read from MH i2c: 01 07 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: 01 07 00 27 43 00 00 00 00 00 FF 0F 7F [04:43:07]process_action close_receipt done [04:43:07]requested_data is exist [04:43:07]produce_requested_data [04:43:07]requested_item fm.sn is exist - process it [04:43:07]wFMCommunicate request_size=4 [04:43:07]MH_SAM_APDU [04:43:07]CAPDU: 80 11 00 00 [04:43:07]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:07]Read from MH i2c: E2 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 17 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 30 [04:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:43:07]wFMCommunicate OK [04:43:07]requested_item fd.num is exist - process it [04:43:07]SAM_PROTO_GetFieldsCounters [04:43:07]wFMCommunicate request_size=4 [04:43:07]MH_SAM_APDU [04:43:07]CAPDU: 80 13 00 00 [04:43:07]Write to MH i2c: E2 08 00 29 43 80 13 00 00 00 00 00 00 E8 [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:07]Read from MH i2c: E2 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 62 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 62 00 29 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [04: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:07]wFMCommunicate OK [04:43:07]SAM_PROTO_GetFieldsCounters done [04:43:07]requested_item shift.num is exist - process it [04:43:07]requested_item shift.opened is exist - process it [04:43:07]req_shift_opened [04:43:07]FM_GetShiftState [04:43:07]SAM_PROTO_GetShiftState [04:43:07]wFMCommunicate request_size=4 [04:43:07]MH_SAM_APDU [04:43:07]CAPDU: 80 13 01 00 [04:43:07]Write to MH i2c: E2 08 00 2A 43 80 13 01 00 00 00 00 00 EA [04:43:07]Write i2c OK [04:43:07]MH_I2C_Read... [04:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:07]Read from MH i2c: E2 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 0E 00 [04:43:07]MH_I2C_Read... [04:43:07]Read from MH i2c: E2 0E 00 2A 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 07 [04:43:07]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [04:43:07]wFMCommunicate OK [04:43:07]SAM_PROTO_GetShiftState done [04:43:07]FM_GetShiftState done [04:43:07]req_shift_opened done [04:43:07]requested_item shift.open_date is exist - process it [04:43:07]req_shift_open_date [04:43:07]req_shift_open_date done [04:43:07]produce_requested_data done [04:43:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49753,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [04:43:07]process_action_free close_receipt [04:43:07]json_value_free [04:43:07]json_value_free done [04:43:07]process_json_proto returns [04:43:07]Send response to host [04:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49753,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [04:43:07]free response buf [04:43:07]execute_script done [04:43:07]execute_script returns [04:43:07]free content buf [04:43:07]Sock 7.Close socket [04:43:07]Sock 7.Thread stoped [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:03]int [04:53:03]Write to MH i2c: 01 00 00 2B 43 6E [04:53:03]*** FLAG_PRN_KEY set [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 2B 43 00 08 00 00 00 FF 0F 8B [04:53:03]state=0 [04:53:03]Key pressed [04:53:03]Feed [04:53:03]Write to MH i2c: D8 00 00 2C 43 46 [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: D8 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: D8 01 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: D8 01 00 2C 43 00 47 [04:53:03]int [04:53:03]Write to MH i2c: 01 00 00 2D 43 70 [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 2D 43 00 48 00 00 00 3C 00 FB [04:53:03]state=2 [04:53:03]Key pressed [04:53:03]int [04:53:03]Write to MH i2c: 01 00 00 2E 43 71 [04:53:03]*** FLAG_PRN_KEY reset [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 2E 43 00 00 00 00 00 F6 0F 7D [04:53:03]state=2 [04:53:03]Stop feed [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:55]int [05:06:55]Write to MH i2c: 01 00 00 2F 43 72 [05:06:55]*** FLAG_PRN_PAP1 set [05:06:55]Write i2c OK [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 07 00 [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 07 00 2F 43 00 01 00 00 00 FF 0F 88 [05:06:55]state=0 [05:06:55]No paper [05:06:55]int [05:06:55]Write to MH i2c: 01 00 00 30 43 73 [05:06:55]*** FLAG_PRN_PAP2 set [05:06:55]Write i2c OK [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 07 00 [05:06:55]MH_I2C_Read... [05:06:55]Read from MH i2c: 01 07 00 30 43 00 03 00 00 00 FF 0F 8B [05:06:55]state=0 [05:06:55]No paper [05:06:55]Cover opened [05:06:56]int [05:06:56]Write to MH i2c: 01 00 00 31 43 74 [05:06:56]*** FLAG_PRN_PAP2 reset [05:06:56]Write i2c OK [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 07 00 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 07 00 31 43 00 01 00 00 00 FF 0F 8A [05:06:56]state=3 [05:06:56]No paper [05:06:56]Cover closed [05:06:56]int [05:06:56]Write to MH i2c: 01 00 00 32 43 75 [05:06:56]*** FLAG_PRN_PAP2 set [05:06:56]Write i2c OK [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 07 00 [05:06:56]MH_I2C_Read... [05:06:56]Read from MH i2c: 01 07 00 32 43 00 03 00 00 00 FF 0F 8D [05:06:56]state=0 [05:06:56]No paper [05:06:56]Cover opened [05:06:56]OFD Sender: No OFD packet to send [05:07:01]Write to MH i2c: 01 00 00 33 43 76 [05:07:01]Write i2c OK [05:07:01]MH_I2C_Read... [05:07:01]Read from MH i2c: 01 [05:07:01]MH_I2C_Read... [05:07:01]Read from MH i2c: 01 07 00 [05:07:01]MH_I2C_Read... [05:07:01]Read from MH i2c: 01 07 00 33 43 00 03 00 00 00 FF 0F 8E [05:07:01]state=3 [05:07:01]No paper [05:07:01]Cover opened [05:07:01]OFD Sender: No OFD packet to send [05:07:06]Write to MH i2c: 01 00 00 34 43 77 [05:07:06]Write i2c OK [05:07:06]MH_I2C_Read... [05:07:06]Read from MH i2c: 01 [05:07:06]MH_I2C_Read... [05:07:06]Read from MH i2c: 01 07 00 [05:07:06]MH_I2C_Read... [05:07:06]Read from MH i2c: 01 07 00 34 43 00 03 00 00 00 FF 0F 8F [05:07:06]state=3 [05:07:06]No paper [05:07:06]Cover opened [05:07:06]OFD Sender: No OFD packet to send [05:07:08]int [05:07:08]Write to MH i2c: 01 00 00 35 43 78 [05:07:08]*** FLAG_PRN_PAP1 reset [05:07:08]*** FLAG_PRN_PAP2 reset [05:07:08]Write i2c OK [05:07:08]MH_I2C_Read... [05:07:08]Read from MH i2c: 01 [05:07:08]MH_I2C_Read... [05:07:08]Read from MH i2c: 01 07 00 [05:07:08]MH_I2C_Read... [05:07:08]Read from MH i2c: 01 07 00 35 43 00 00 00 00 00 FF 0F 8D [05:07:08]state=3 [05:07:08]Cover closed [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [05:39:27]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:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:31]accept exits with 9 [06:02:31]New connection [06:02:31]New thread 3066944868 created [06:02:31]Thread 3066801508 joined [06:02:31]Waiting for new connection... [06:02:31] Sock 9.Parse request [06:02:31]Sock 9.Check first char [06:02:31]Sock 9.First char is OK [06:02:31]request: POST /json_proto HTTP/1.0 [06:02:31]Method: POST [06:02:31]URL: /json_proto [06:02:31]Method is POST - this is cgi request [06:02:31]url: /json_proto [06:02:31]query_string will be loaded in cgi processing [06:02:31]execute_cgi json_proto POST (null) [06:02:31]execute_cgi path=json_proto method=POST [06:02:31]POST find Content-Length [06:02:31]Host: 172.17.46.196:8080 [06:02:31]Content-Length: 661 [06:02:31]Content-Type: application/json [06:02:31] [06:02:31]POST finish read [06:02:31]Found Content-Length = 661 [06:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189933", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:31]execute_script... [06:02: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 : (3)189933", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:31]POST & json_proto [06:02:31]process_json_proto [06:02:31]json parsed OK: [06:02:31]protocol is kg_v1.0 [06:02:31]action value=close_receipt [06:02:31]process_action close_receipt [06:02:31]cmd_close_receipt [06:02:31]MH_GetDate [06:02:31]Write to MH i2c: F0 00 00 36 43 68 [06:02:31]Write i2c OK [06:02:31]MH_I2C_Read... [06:02:31]Read from MH i2c: F0 [06:02:31]MH_I2C_Read... [06:02:31]Read from MH i2c: F0 09 00 [06:02:31]MH_I2C_Read... [06:02:31]Read from MH i2c: F0 09 00 36 43 00 7E 8E C1 66 07 E8 5D 66 56 [06:02:31]GetLastDocTimeStamp 1723956189 [06:02:31]current date 1723960958 [06:02:31]FM_GetShiftState [06:02:31]SAM_PROTO_GetShiftState [06:02:31]wFMCommunicate request_size=4 [06:02:31]MH_SAM_APDU [06:02:31]CAPDU: 80 13 01 00 [06:02:31]Write to MH i2c: E2 08 00 37 43 80 13 01 00 00 00 00 00 F7 [06:02:31]Write i2c OK [06:02:31]MH_I2C_Read... [06:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:31]Read from MH i2c: E2 [06:02:31]MH_I2C_Read... [06:02:31]Read from MH i2c: E2 0E 00 [06:02:31]MH_I2C_Read... [06:02:31]Read from MH i2c: E2 0E 00 37 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 14 [06:02:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:02:31]wFMCommunicate OK [06:02:31]SAM_PROTO_GetShiftState done [06:02:31]FM_GetShiftState done [06:02:31]opened in 1723939759 [06:02:31]opened+sec_in_day 1724026159 [06:02:31]quantity*price = 26000 [06:02:31]sum+1 = 26001 [06:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 20 18.08.2024 06:02 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49754 ФПД: 214100084269286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T060238&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49754&fm=214100084269286&tin=02508201610067®Number=0000000000092546&sum=26000 0 [06:02:32]StoreToDocumentArchive [06:02:32]shift 466 fd 49754 [06:02:32]save to /storage/0466/doc_00049754 [06:02:32]save last doc name /storage/0466/doc_00049754 to /storage/kkm_last_doc_name [06:02:32]save OK [06:02:32]Clear old archive folders... [06:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:02:32]tlvbuf is 018D9770 [06:02:32]SAM_PROTO_ClearQueue [06:02:32]wFMCommunicate request_size=4 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 09 00 00 [06:02:32]Write to MH i2c: E2 08 00 44 43 80 09 00 00 00 00 00 00 F9 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 44 43 00 90 00 FB [06:02:32]RAPDU: 90 00 [06:02:32]wFMCommunicate OK [06:02:32]SAM_PROTO_ClearQueue done [06:02:32]KKMCreateOFDPacket [06:02:32]OFDProtocolAddRootSTLVToBuf [06:02:32]FM_MakeSignedData [06:02:32]FM_MakeSignedData [06:02:32]SAM_PROTO_SignData [06:02:32]wFMCommunicate request_size=4 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 0D 01 02 [06:02:32]Write to MH i2c: E2 08 00 45 43 80 0D 01 02 00 00 00 00 01 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 45 43 00 90 00 FC [06:02:32]RAPDU: 90 00 [06:02:32]wFMCommunicate OK [06:02:32]wFMCommunicate request_size=255 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7E 8E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:02:32]Write to MH i2c: E2 02 01 46 43 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7E 8E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 E0 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 46 43 00 90 00 FD [06:02:32]RAPDU: 90 00 [06:02:32]wFMCommunicate OK [06:02:32]wFMCommunicate request_size=52 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C2 00 00 35 04 06 00 C2 B9 0F 78 20 E6 [06:02:32]Write to MH i2c: E2 37 00 47 43 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C2 00 00 35 04 06 00 C2 B9 0F 78 20 E6 00 00 E4 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 03 00 47 43 00 90 00 FE [06:02:32]RAPDU: 90 00 [06:02:32]wFMCommunicate OK [06:02:32]wFMCommunicate request_size=4 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 0D 03 02 [06:02:32]Write to MH i2c: E2 08 00 48 43 80 0D 03 02 00 00 00 00 06 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 0B 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 0B 00 48 43 00 87 8C 4D B0 E0 45 57 54 90 00 E7 [06:02:32]RAPDU: 87 8C 4D B0 E0 45 57 54 90 00 [06:02:32]wFMCommunicate OK [06:02:32]SAM_PROTO_SignData done [06:02:32]FM_MakeSignedData done [06:02:32]CreateOFDProtocolMessage [06:02:32]wFMCommunicate request_size=4 [06:02:32]MH_SAM_APDU [06:02:32]CAPDU: 80 11 00 00 [06:02:32]Write to MH i2c: E2 08 00 49 43 80 11 00 00 00 00 00 00 06 [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:32]Read from MH i2c: E2 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 17 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: E2 17 00 49 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 51 [06:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:02:32]wFMCommunicate OK [06:02:32]CreateOFDProtocolMessage done [06:02:32]OFDSenderStorePacket 49754 [06:02:32]StoreOFDPacket docnum=49754 [06:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 66 A3 31 01 CB 66 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7E 8E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C2 00 00 35 04 06 00 C2 B9 0F 78 20 E6 87 8C 4D B0 E0 45 57 54 [06:02:32]CheckFolder [06:02:32]dirname=/storage/ofd_packets [06:02:32]CheckFolder done [06:02:32]ProducePacketName [06:02:32]name=ofd_packets/00049754 [06:02:32]NVStorageSaveData ofd_packets/00049754 [06:02:32]File name is /storage/ofd_packets/00049754 [06:02:32]Write 343 bytes [06:02:32]NVStorageSaveData done [06:02:32]OFDSenderStorePacket done [06:02:32]KKMCreateOFDPacket done [06:02:32]NVStorageSaveData kkm_last_timestamp [06:02:32]File name is /storage/kkm_last_timestamp [06:02:32]Write 4 bytes [06:02:32]NVStorageSaveData done [06:02:32]ExternCall_PrintAddStr [06:02:32]wPrintStart [06:02:32]Write to MH i2c: 01 00 00 4A 43 8D [06:02:32]Write i2c OK [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: 01 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: 01 07 00 [06:02:32]MH_I2C_Read... [06:02:32]Read from MH i2c: 01 07 00 4A 43 00 00 00 00 00 FF 0F A2 [06:02:32]RasterBufferAndPrint [06:02:32]line Счет N : (3)189933 [06:02:32]line ИНН: 02508201610067 [06:02:32]line Контрольно-Кассовый Чек [06:02:32]line ПРОДАЖА [06:02:32]line Товар: 4870002329999 [06:02:32]line Напиток Lipton IceTea 1л лимон Regular [06:02:32]line 2.000 * 130.00 [06:02:32]line = 260.00 [06:02:32]line НДС 12% НСП 1% [06:02:32]line > о реализуемом товаре [06:02:32]line ИТОГО: 260.00 [06:02:32]line НСП 1% : 2.30 [06:02:32]line НДС 12% : 27.61 [06:02:32]line Наличными: 260.00 [06:02:32]line Безнал.: 0.00 [06:02:32]line Место: АЗС № 95 "Партнер Нефть" [06:02:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:02:32]line СНО: Общий режим [06:02:32]line Чек 20 18.08.2024 06:02 [06:02:32]line Смена: 466 ФФД: 1.0 [06:02:32]line ЗНМ: 0300000078 [06:02:32]line РНМ: 0000000000092546 [06:02:32]line Версия ККМ: 001 [06:02:32]line ФМ: 0000000000871800 [06:02:32]line ФД: 49754 [06:02:32]line ФПД: 214100084269286 [06:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T060238&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49754&fm=214100084269286&tin=02508201610067®Number=0000000000092546&sum=26000 [06:02:33]line 0 [06:02:33]OFD Sender: Processing packet 49754 [packets to send 21, broken 20] [06:02:33]ProducePacketName [06:02:33]name=ofd_packets/00049754 [06:02:33]OFD Sender: To server: pG, [06:02:33]CommunicateWithHost lk.salyk.kg:30040 [06:02:33]ConnectInit lk.salyk.kg [06:02:33]written 0, free lines is 4095 [06:02:33]Connected sock=10 [06:02:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 66 A3 31 01 CB 66 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7E 8E C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C2 00 00 35 04 06 00 C2 B9 0F 78 20 E6 87 8C 4D B0 E0 45 57 54 [06:02:33]Write to MH i2c: 01 00 00 73 43 B6 [06:02:33]Write i2c OK [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: 01 [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: 01 07 00 [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: 01 07 00 73 43 00 00 00 00 00 E7 0C B0 [06:02:33]RasterBufferAndPrint [06:02:33]line [06:02:33]line [06:02:33]line [06:02:33]line [06:02:33]line [06:02:33]written 0, free lines is 3312 [06:02:33]MH_Cut [06:02:33]Write to MH i2c: D1 01 00 7A 43 01 8F [06:02:33]Write i2c OK [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: D1 [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: D1 01 00 [06:02:33]MH_I2C_Read... [06:02:33]Read from MH i2c: D1 01 00 7A 43 00 8E [06:02:33]Write to MH i2c: 01 00 00 7B 43 BE [06:02:33]Write i2c OK [06:02:33]MH_I2C_Read... [06:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D1 6C 47 00 BF 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C2 00 00 F4 03 04 00 B8 39 C1 66 B6 04 01 00 00 D8 C3 84 75 39 14 2A 65 [06:02:33]CommunicateWithHost err = 0 [06:02:33]CheckOFDResponse [06:02:33]1017 (14) - 77093643461234 [06:02:33]1041 (16) - 0000000000871800 [06:02:33]1040 (4) - 49754 [06:02:33]1012 (4) - 18.08.2024 00:00 [06:02:33]1206 (1) - 0 [06:02:33]OFD Sender: Remove packet 49754 [06:02:33]ProducePacketName [06:02:33]name=ofd_packets/00049754 [06:02:33]NVStorageDeleteData [06:02:34]OFD Sender: No OFD packet to send [06:02:34]*** Cut start [06:02:34]*** Purtial cut [06:02:34]*** Stage 1: CUTSNS_PIN = 1 [06:02:34]Read from MH i2c: 01 [06:02:34]MH_I2C_Read... [06:02:34]*** Stop cut motor [06:02:34]*** Cut end [06:02:34]Read from MH i2c: 01 07 00 [06:02:34]MH_I2C_Read... [06:02:34]Read from MH i2c: 01 07 00 7B 43 00 00 00 00 00 FF 0F D3 [06:02:34]process_action close_receipt done [06:02:34]requested_data is exist [06:02:34]produce_requested_data [06:02:34]requested_item fm.sn is exist - process it [06:02:34]wFMCommunicate request_size=4 [06:02:34]MH_SAM_APDU [06:02:34]CAPDU: 80 11 00 00 [06:02:34]Write to MH i2c: E2 08 00 7C 43 80 11 00 00 00 00 00 00 39 [06:02:34]Write i2c OK [06:02:34]MH_I2C_Read... [06:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:34]Read from MH i2c: E2 [06:02:34]MH_I2C_Read... [06:02:34]Read from MH i2c: E2 17 00 [06:02:34]MH_I2C_Read... [06:02:34]Read from MH i2c: E2 17 00 7C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [06:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:02:34]wFMCommunicate OK [06:02:34]requested_item fd.num is exist - process it [06:02:34]SAM_PROTO_GetFieldsCounters [06:02:34]wFMCommunicate request_size=4 [06:02:34]MH_SAM_APDU [06:02:34]CAPDU: 80 13 00 00 [06:02:34]Write to MH i2c: E2 08 00 7D 43 80 13 00 00 00 00 00 00 3C [06:02:34]Write i2c OK [06:02:34]MH_I2C_Read... [06:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:34]Read from MH i2c: E2 [06:02:34]MH_I2C_Read... [06:02:34]Read from MH i2c: E2 62 00 [06:02:34]MH_I2C_Read... [06:02:34]Read from MH i2c: E2 62 00 7D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [06:02:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:02:34]wFMCommunicate OK [06:02:34]SAM_PROTO_GetFieldsCounters done [06:02:34]requested_item shift.num is exist - process it [06:02:34]requested_item shift.opened is exist - process it [06:02:34]req_shift_opened [06:02:34]FM_GetShiftState [06:02:34]SAM_PROTO_GetShiftState [06:02:34]wFMCommunicate request_size=4 [06:02:34]MH_SAM_APDU [06:02:34]CAPDU: 80 13 01 00 [06:02:34]Write to MH i2c: E2 08 00 7E 43 80 13 01 00 00 00 00 00 3E [06:02:34]Write i2c OK [06:02:34]MH_I2C_Read... [06:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:35]Read from MH i2c: E2 [06:02:35]MH_I2C_Read... [06:02:35]Read from MH i2c: E2 0E 00 [06:02:35]MH_I2C_Read... [06:02:35]Read from MH i2c: E2 0E 00 7E 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 5B [06:02:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:02:35]wFMCommunicate OK [06:02:35]SAM_PROTO_GetShiftState done [06:02:35]FM_GetShiftState done [06:02:35]req_shift_opened done [06:02:35]requested_item shift.open_date is exist - process it [06:02:35]req_shift_open_date [06:02:35]req_shift_open_date done [06:02:35]produce_requested_data done [06:02:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49754,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [06:02:35]process_action_free close_receipt [06:02:35]json_value_free [06:02:35]json_value_free done [06:02:35]process_json_proto returns [06:02:35]Send response to host [06:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49754,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [06:02:35]free response buf [06:02:35]execute_script done [06:02:35]execute_script returns [06:02:35]free content buf [06:02:35]Sock 9.Close socket [06:02:35]Sock 9.Thread stoped [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]accept exits with 7 [06:19:30]New connection [06:19:30]New thread 3066801508 created [06:19:30]Thread 3066944868 joined [06:19:30]Waiting for new connection... [06:19:30] Sock 7.Parse request [06:19:30]Sock 7.Check first char [06:19:30]Sock 7.First char is OK [06:19:30]request: POST /json_proto HTTP/1.0 [06:19:30]Method: POST [06:19:30]URL: /json_proto [06:19:30]Method is POST - this is cgi request [06:19:30]url: /json_proto [06:19:30]query_string will be loaded in cgi processing [06:19:30]execute_cgi json_proto POST (null) [06:19:30]execute_cgi path=json_proto method=POST [06:19:30]POST find Content-Length [06:19:30]Host: 172.17.46.196:8080 [06:19:30]Content-Length: 623 [06:19:30]Content-Type: application/json [06:19:30] [06:19:30]POST finish read [06:19:30]Found Content-Length = 623 [06:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189934", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:30]execute_script... [06:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189934", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:30]POST & json_proto [06:19:30]process_json_proto [06:19:30]json parsed OK: [06:19:30]protocol is kg_v1.0 [06:19:30]action value=close_receipt [06:19:30]process_action close_receipt [06:19:30]cmd_close_receipt [06:19:30]MH_GetDate [06:19:30]Write to MH i2c: F0 00 00 7F 43 B1 [06:19:30]Write i2c OK [06:19:30]MH_I2C_Read... [06:19:30]Read from MH i2c: F0 [06:19:30]MH_I2C_Read... [06:19:30]Read from MH i2c: F0 09 00 [06:19:30]MH_I2C_Read... [06:19:30]Read from MH i2c: F0 09 00 7F 43 00 79 92 C1 66 07 E8 5D 66 9E [06:19:30]GetLastDocTimeStamp 1723960958 [06:19:30]current date 1723961977 [06:19:30]FM_GetShiftState [06:19:30]SAM_PROTO_GetShiftState [06:19:30]wFMCommunicate request_size=4 [06:19:30]MH_SAM_APDU [06:19:30]CAPDU: 80 13 01 00 [06:19:30]Write to MH i2c: E2 08 00 80 43 80 13 01 00 00 00 00 00 40 [06:19:30]Write i2c OK [06:19:30]MH_I2C_Read... [06:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:30]Read from MH i2c: E2 [06:19:30]MH_I2C_Read... [06:19:30]Read from MH i2c: E2 0E 00 [06:19:30]MH_I2C_Read... [06:19:30]Read from MH i2c: E2 0E 00 80 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 5D [06:19:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:19:30]wFMCommunicate OK [06:19:30]SAM_PROTO_GetShiftState done [06:19:30]FM_GetShiftState done [06:19:30]opened in 1723939759 [06:19:30]opened+sec_in_day 1724026159 [06:19:30]quantity*price = 14000 [06:19:30]sum+1 = 14001 [06:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 21 18.08.2024 06:19 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49755 ФПД: 163903244429025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T061937&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49755&fm=163903244429025&tin=02508201610067®Number=0000000000092546&sum=14000 0 [06:19:31]StoreToDocumentArchive [06:19:31]shift 466 fd 49755 [06:19:31]save to /storage/0466/doc_00049755 [06:19:31]save last doc name /storage/0466/doc_00049755 to /storage/kkm_last_doc_name [06:19:31]save OK [06:19:31]Clear old archive folders... [06:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=275 [06:19:31]tlvbuf is 01977600 [06:19:31]SAM_PROTO_ClearQueue [06:19:31]wFMCommunicate request_size=4 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 09 00 00 [06:19:31]Write to MH i2c: E2 08 00 8D 43 80 09 00 00 00 00 00 00 42 [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 8D 43 00 90 00 44 [06:19:31]RAPDU: 90 00 [06:19:31]wFMCommunicate OK [06:19:31]SAM_PROTO_ClearQueue done [06:19:31]KKMCreateOFDPacket [06:19:31]OFDProtocolAddRootSTLVToBuf [06:19:31]FM_MakeSignedData [06:19:31]FM_MakeSignedData [06:19:31]SAM_PROTO_SignData [06:19:31]wFMCommunicate request_size=4 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 0D 01 02 [06:19:31]Write to MH i2c: E2 08 00 8E 43 80 0D 01 02 00 00 00 00 4A [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 8E 43 00 90 00 45 [06:19:31]RAPDU: 90 00 [06:19:31]wFMCommunicate OK [06:19:31]wFMCommunicate request_size=255 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 92 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [06:19:31]Write to MH i2c: E2 02 01 8F 43 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 92 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 F5 [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 8F 43 00 90 00 46 [06:19:31]RAPDU: 90 00 [06:19:31]wFMCommunicate OK [06:19:31]wFMCommunicate request_size=34 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C2 00 00 35 04 06 00 95 11 B2 A9 66 E1 [06:19:31]Write to MH i2c: E2 25 00 90 43 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C2 00 00 35 04 06 00 95 11 B2 A9 66 E1 00 00 6B [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 03 00 90 43 00 90 00 47 [06:19:31]RAPDU: 90 00 [06:19:31]wFMCommunicate OK [06:19:31]wFMCommunicate request_size=4 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 0D 03 02 [06:19:31]Write to MH i2c: E2 08 00 91 43 80 0D 03 02 00 00 00 00 4F [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 0B 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 0B 00 91 43 00 6A 2B 0B 60 0C 09 C7 B7 90 00 E3 [06:19:31]RAPDU: 6A 2B 0B 60 0C 09 C7 B7 90 00 [06:19:31]wFMCommunicate OK [06:19:31]SAM_PROTO_SignData done [06:19:31]FM_MakeSignedData done [06:19:31]CreateOFDProtocolMessage [06:19:31]wFMCommunicate request_size=4 [06:19:31]MH_SAM_APDU [06:19:31]CAPDU: 80 11 00 00 [06:19:31]Write to MH i2c: E2 08 00 92 43 80 11 00 00 00 00 00 00 4F [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:31]Read from MH i2c: E2 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 17 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: E2 17 00 92 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9A [06:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:19:31]wFMCommunicate OK [06:19:31]CreateOFDProtocolMessage done [06:19:31]OFDSenderStorePacket 49755 [06:19:31]StoreOFDPacket docnum=49755 [06:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 6C 69 1F 01 15 4A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 92 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C2 00 00 35 04 06 00 95 11 B2 A9 66 E1 6A 2B 0B 60 0C 09 C7 B7 [06:19:31]CheckFolder [06:19:31]dirname=/storage/ofd_packets [06:19:31]CheckFolder done [06:19:31]ProducePacketName [06:19:31]name=ofd_packets/00049755 [06:19:31]NVStorageSaveData ofd_packets/00049755 [06:19:31]File name is /storage/ofd_packets/00049755 [06:19:31]Write 325 bytes [06:19:31]NVStorageSaveData done [06:19:31]OFDSenderStorePacket done [06:19:31]KKMCreateOFDPacket done [06:19:31]NVStorageSaveData kkm_last_timestamp [06:19:31]File name is /storage/kkm_last_timestamp [06:19:31]Write 4 bytes [06:19:31]NVStorageSaveData done [06:19:31]ExternCall_PrintAddStr [06:19:31]wPrintStart [06:19:31]Write to MH i2c: 01 00 00 93 43 D6 [06:19:31]Write i2c OK [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: 01 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: 01 07 00 [06:19:31]MH_I2C_Read... [06:19:31]Read from MH i2c: 01 07 00 93 43 00 00 00 00 00 FF 0F EB [06:19:31]RasterBufferAndPrint [06:19:31]line Счет N : (3)189934 [06:19:31]line ИНН: 02508201610067 [06:19:31]line Контрольно-Кассовый Чек [06:19:31]line ПРОДАЖА [06:19:31]line Товар: 48743587 [06:19:31]line Сигареты Winston XStyle Silver [06:19:31]line 1.000 * 140.00 [06:19:31]line = 140.00 [06:19:31]line НДС 12% НСП 1% [06:19:31]line > о реализуемом товаре [06:19:31]line ИТОГО: 140.00 [06:19:31]line НСП 1% : 1.24 [06:19:31]line НДС 12% : 14.87 [06:19:31]line Наличными: 140.00 [06:19:31]line Безнал.: 0.00 [06:19:31]line Место: АЗС № 95 "Партнер Нефть" [06:19:31]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:19:31]line СНО: Общий режим [06:19:31]line Чек 21 18.08.2024 06:19 [06:19:31]line Смена: 466 ФФД: 1.0 [06:19:31]line ЗНМ: 0300000078 [06:19:31]line РНМ: 0000000000092546 [06:19:31]line Версия ККМ: 001 [06:19:31]line ФМ: 0000000000871800 [06:19:31]line ФД: 49755 [06:19:31]line ФПД: 163903244429025 [06:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T061937&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49755&fm=163903244429025&tin=02508201610067®Number=0000000000092546&sum=14000 [06:19:31]line 0 [06:19:31]written 0, free lines is 4095 [06:19:31]OFD Sender: Processing packet 49755 [packets to send 21, broken 20] [06:19:31]ProducePacketName [06:19:31]name=ofd_packets/00049755 [06:19:31]OFD Sender: To server: pG, [06:19:31]CommunicateWithHost lk.salyk.kg:30040 [06:19:31]ConnectInit lk.salyk.kg [06:19:31]Connected sock=10 [06:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 6C 69 1F 01 15 4A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 92 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C2 00 00 35 04 06 00 95 11 B2 A9 66 E1 6A 2B 0B 60 0C 09 C7 B7 [06:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B5 45 47 00 84 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 38 30 30 10 04 04 00 5B C2 00 00 F4 03 04 00 B3 3D C1 66 B6 04 01 00 00 D1 57 D7 08 EE 2D 5E 6C [06:19:32]CommunicateWithHost err = 0 [06:19:32]CheckOFDResponse [06:19:32]1017 (14) - 77093643461234 [06:19:32]1041 (16) - 0000000000871800 [06:19:32]1040 (4) - 49755 [06:19:32]1012 (4) - 18.08.2024 00:17 [06:19:32]1206 (1) - 0 [06:19:32]OFD Sender: Remove packet 49755 [06:19:32]ProducePacketName [06:19:32]name=ofd_packets/00049755 [06:19:32]NVStorageDeleteData [06:19:32]Write to MH i2c: 01 00 00 BC 43 FF [06:19:32]Write i2c OK [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: 01 [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: 01 07 00 [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: 01 07 00 BC 43 00 00 00 00 00 EA 0C FC [06:19:32]RasterBufferAndPrint [06:19:32]line [06:19:32]line [06:19:32]line [06:19:32]line [06:19:32]line [06:19:32]written 0, free lines is 3315 [06:19:32]MH_Cut [06:19:32]Write to MH i2c: D1 01 00 C3 43 01 D8 [06:19:32]Write i2c OK [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: D1 [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: D1 01 00 [06:19:32]MH_I2C_Read... [06:19:32]Read from MH i2c: D1 01 00 C3 43 00 D7 [06:19:32]Write to MH i2c: 01 00 00 C4 43 07 [06:19:32]Write i2c OK [06:19:32]MH_I2C_Read... [06:19:32]OFD Sender: No OFD packet to send [06:19:32]*** Cut start [06:19:32]*** Purtial cut [06:19:32]*** CUTSNS_PIN = 0 [06:19:33]*** Stage 1: CUTSNS_PIN = 1 [06:19:35]Read from MH i2c: 01 [06:19:35]MH_I2C_Read... [06:19:35]*** Stop cut motor [06:19:35]*** Cut end [06:19:35]Read from MH i2c: 01 07 00 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: 01 07 00 C4 43 00 00 00 00 00 FF 0F 1C [06:19:35]process_action close_receipt done [06:19:35]requested_data is exist [06:19:35]produce_requested_data [06:19:35]requested_item fm.sn is exist - process it [06:19:35]wFMCommunicate request_size=4 [06:19:35]MH_SAM_APDU [06:19:35]CAPDU: 80 11 00 00 [06:19:35]Write to MH i2c: E2 08 00 C5 43 80 11 00 00 00 00 00 00 82 [06:19:35]Write i2c OK [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 [06:19:35]MH_I2C_Read... [06:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:35]Read from MH i2c: E2 17 00 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 17 00 C5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CD [06:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:19:35]wFMCommunicate OK [06:19:35]requested_item fd.num is exist - process it [06:19:35]SAM_PROTO_GetFieldsCounters [06:19:35]wFMCommunicate request_size=4 [06:19:35]MH_SAM_APDU [06:19:35]CAPDU: 80 13 00 00 [06:19:35]Write to MH i2c: E2 08 00 C6 43 80 13 00 00 00 00 00 00 85 [06:19:35]Write i2c OK [06:19:35]MH_I2C_Read... [06:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:19:35]Read from MH i2c: E2 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 62 00 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 62 00 C6 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [06:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:19:35]wFMCommunicate OK [06:19:35]SAM_PROTO_GetFieldsCounters done [06:19:35]requested_item shift.num is exist - process it [06:19:35]requested_item shift.opened is exist - process it [06:19:35]req_shift_opened [06:19:35]FM_GetShiftState [06:19:35]SAM_PROTO_GetShiftState [06:19:35]wFMCommunicate request_size=4 [06:19:35]MH_SAM_APDU [06:19:35]CAPDU: 80 13 01 00 [06:19:35]Write to MH i2c: E2 08 00 C7 43 80 13 01 00 00 00 00 00 87 [06:19:35]Write i2c OK [06:19:35]MH_I2C_Read... [06:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:35]Read from MH i2c: E2 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 0E 00 [06:19:35]MH_I2C_Read... [06:19:35]Read from MH i2c: E2 0E 00 C7 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A4 [06:19:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:19:35]wFMCommunicate OK [06:19:35]SAM_PROTO_GetShiftState done [06:19:35]FM_GetShiftState done [06:19:35]req_shift_opened done [06:19:35]requested_item shift.open_date is exist - process it [06:19:35]req_shift_open_date [06:19:35]req_shift_open_date done [06:19:35]produce_requested_data done [06:19:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49755,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [06:19:35]process_action_free close_receipt [06:19:35]json_value_free [06:19:35]json_value_free done [06:19:35]process_json_proto returns [06:19:35]Send response to host [06:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49755,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [06:19:35]free response buf [06:19:35]execute_script done [06:19:35]execute_script returns [06:19:35]free content buf [06:19:35]Sock 7.Close socket [06:19:35]Sock 7.Thread stoped [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:05]accept exits with 9 [06:48:05]New connection [06:48:05]New thread 3066944868 created [06:48:05]Thread 3066801508 joined [06:48:05]Waiting for new connection... [06:48:05] Sock 9.Parse request [06:48:05]Sock 9.Check first char [06:48:05]Sock 9.First char is OK [06:48:05]request: POST /json_proto HTTP/1.0 [06:48:05]Method: POST [06:48:05]URL: /json_proto [06:48:05]Method is POST - this is cgi request [06:48:05]url: /json_proto [06:48:05]query_string will be loaded in cgi processing [06:48:05]execute_cgi json_proto POST (null) [06:48:05]execute_cgi path=json_proto method=POST [06:48:05]POST find Content-Length [06:48:05]Host: 172.17.46.196:8080 [06:48:05]Content-Length: 669 [06:48:05]Content-Type: application/json [06:48:05] [06:48:05]POST finish read [06:48:05]Found Content-Length = 669 [06:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189935", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:05]execute_script... [06:48:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189935", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:05]POST & json_proto [06:48:05]process_json_proto [06:48:05]json parsed OK: [06:48:05]protocol is kg_v1.0 [06:48:05]action value=close_receipt [06:48:05]process_action close_receipt [06:48:05]cmd_close_receipt [06:48:05]MH_GetDate [06:48:05]Write to MH i2c: F0 00 00 C8 43 FA [06:48:05]Write i2c OK [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 09 00 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: F0 09 00 C8 43 00 2C 99 C1 66 07 E8 5D 66 A1 [06:48:05]GetLastDocTimeStamp 1723961977 [06:48:05]current date 1723963692 [06:48:05]FM_GetShiftState [06:48:05]SAM_PROTO_GetShiftState [06:48:05]wFMCommunicate request_size=4 [06:48:05]MH_SAM_APDU [06:48:05]CAPDU: 80 13 01 00 [06:48:05]Write to MH i2c: E2 08 00 C9 43 80 13 01 00 00 00 00 00 89 [06:48:05]Write i2c OK [06:48:05]MH_I2C_Read... [06:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:05]Read from MH i2c: E2 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: E2 0E 00 [06:48:05]MH_I2C_Read... [06:48:05]Read from MH i2c: E2 0E 00 C9 43 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A6 [06:48:05]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:48:05]wFMCommunicate OK [06:48:05]SAM_PROTO_GetShiftState done [06:48:05]FM_GetShiftState done [06:48:05]opened in 1723939759 [06:48:05]opened+sec_in_day 1724026159 [06:48:05]quantity*price = 6500 [06:48:05]sum+1 = 6501 [06:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 22 18.08.2024 06:48 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49756 ФПД: 125976171326838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T064812&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49756&fm=125976171326838&tin=02508201610067®Number=0000000000092546&sum=6500 0 [06:48:06]StoreToDocumentArchive [06:48:06]shift 466 fd 49756 [06:48:06]save to /storage/0466/doc_00049756 [06:48:06]save last doc name /storage/0466/doc_00049756 to /storage/kkm_last_doc_name [06:48:06]save OK [06:48:06]Clear old archive folders... [06:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=284 [06:48:06]tlvbuf is 01864B50 [06:48:06]SAM_PROTO_ClearQueue [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 09 00 00 [06:48:06]Write to MH i2c: E2 08 00 D6 43 80 09 00 00 00 00 00 00 8B [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 D6 43 00 90 00 8D [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]SAM_PROTO_ClearQueue done [06:48:06]KKMCreateOFDPacket [06:48:06]OFDProtocolAddRootSTLVToBuf [06:48:06]FM_MakeSignedData [06:48:06]FM_MakeSignedData [06:48:06]SAM_PROTO_SignData [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 01 02 [06:48:06]Write to MH i2c: E2 08 00 D7 43 80 0D 01 02 00 00 00 00 93 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 D7 43 00 90 00 8E [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=255 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2C 99 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [06:48:06]Write to MH i2c: E2 02 01 D8 43 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2C 99 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 F5 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 D8 43 00 90 00 8F [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=43 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C2 00 00 35 04 06 00 72 93 1C F1 2D 76 [06:48:06]Write to MH i2c: E2 2E 00 D9 43 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C2 00 00 35 04 06 00 72 93 1C F1 2D 76 00 00 49 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 D9 43 00 90 00 90 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 03 02 [06:48:06]Write to MH i2c: E2 08 00 DA 43 80 0D 03 02 00 00 00 00 98 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 0B 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 0B 00 DA 43 00 B6 11 B5 EB 01 E1 2D 7F 90 00 8E [06:48:06]RAPDU: B6 11 B5 EB 01 E1 2D 7F 90 00 [06:48:06]wFMCommunicate OK [06:48:06]SAM_PROTO_SignData done [06:48:06]FM_MakeSignedData done [06:48:06]CreateOFDProtocolMessage [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 11 00 00 [06:48:06]Write to MH i2c: E2 08 00 DB 43 80 11 00 00 00 00 00 00 98 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 17 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 17 00 DB 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E3 [06:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:48:06]wFMCommunicate OK [06:48:06]CreateOFDProtocolMessage done [06:48:06]OFDSenderStorePacket 49756 [06:48:06]StoreOFDPacket docnum=49756 [06:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 51 A2 28 01 8B 24 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2C 99 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C2 00 00 35 04 06 00 72 93 1C F1 2D 76 B6 11 B5 EB 01 E1 2D 7F [06:48:06]CheckFolder [06:48:06]dirname=/storage/ofd_packets [06:48:06]CheckFolder done [06:48:06]ProducePacketName [06:48:06]name=ofd_packets/00049756 [06:48:06]NVStorageSaveData ofd_packets/00049756 [06:48:06]File name is /storage/ofd_packets/00049756 [06:48:06]Write 334 bytes [06:48:06]NVStorageSaveData done [06:48:06]OFDSenderStorePacket done [06:48:06]KKMCreateOFDPacket done [06:48:06]NVStorageSaveData kkm_last_timestamp [06:48:06]File name is /storage/kkm_last_timestamp [06:48:06]Write 4 bytes [06:48:06]NVStorageSaveData done [06:48:06]ExternCall_PrintAddStr [06:48:06]wPrintStart [06:48:06]Write to MH i2c: 01 00 00 DC 43 1F [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 07 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 07 00 DC 43 00 00 00 00 00 FF 0F 34 [06:48:06]RasterBufferAndPrint [06:48:06]line Счет N : (3)189935 [06:48:06]line ИНН: 02508201610067 [06:48:06]line Контрольно-Кассовый Чек [06:48:06]line ПРОДАЖА [06:48:06]line Товар: 4700040114137 [06:48:06]line Султан чай 1л. зел лимон [06:48:06]line 1.000 * 65.00 [06:48:06]line = 65.00 [06:48:06]line НДС 12% НСП 1% [06:48:06]line > о реализуемом товаре [06:48:06]line ИТОГО: 65.00 [06:48:06]line НСП 1% : 0.57 [06:48:06]line НДС 12% : 6.90 [06:48:06]line Наличными: 65.00 [06:48:06]line Безнал.: 0.00 [06:48:06]line Место: АЗС № 95 "Партнер Нефть" [06:48:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:48:06]line СНО: Общий режим [06:48:06]line Чек 22 18.08.2024 06:48 [06:48:06]line Смена: 466 ФФД: 1.0 [06:48:06]line ЗНМ: 0300000078 [06:48:06]line РНМ: 0000000000092546 [06:48:06]line Версия ККМ: 001 [06:48:06]line ФМ: 0000000000871800 [06:48:06]line ФД: 49756 [06:48:06]line ФПД: 125976171326838 [06:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T064812&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49756&fm=125976171326838&tin=02508201610067®Number=0000000000092546&sum=6500 [06:48:07]OFD Sender: Processing packet 49756 [packets to send 21, broken 20] [06:48:07]ProducePacketName [06:48:07]name=ofd_packets/00049756 [06:48:07]OFD Sender: To server: pG, [06:48:07]CommunicateWithHost lk.salyk.kg:30040 [06:48:07]ConnectInit lk.salyk.kg [06:48:07]line 0 [06:48:07]written 0, free lines is 4095 [06:48:07]Connected sock=11 [06:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 51 A2 28 01 8B 24 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2C 99 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C2 00 00 35 04 06 00 72 93 1C F1 2D 76 B6 11 B5 EB 01 E1 2D 7F [06:48:07]Write to MH i2c: 01 00 00 04 44 48 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 04 44 00 00 00 00 00 E6 0C 41 [06:48:07]RasterBufferAndPrint [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]written 0, free lines is 3308 [06:48:07]MH_Cut [06:48:07]Write to MH i2c: D1 01 00 0B 44 01 21 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 01 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 01 00 0B 44 00 20 [06:48:07]Write to MH i2c: 01 00 00 0C 44 50 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5B 2A 47 00 14 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 38 30 30 10 04 04 00 5C C2 00 00 F4 03 04 00 66 44 C1 66 B6 04 01 00 00 63 6A 23 10 DF BF 1B C0 [06:48:07]CommunicateWithHost err = 0 [06:48:07]CheckOFDResponse [06:48:07]1017 (14) - 77093643461234 [06:48:07]1041 (16) - 0000000000871800 [06:48:07]1040 (4) - 49756 [06:48:07]1012 (4) - 18.08.2024 00:46 [06:48:07]1206 (1) - 0 [06:48:07]OFD Sender: Remove packet 49756 [06:48:07]ProducePacketName [06:48:07]name=ofd_packets/00049756 [06:48:07]NVStorageDeleteData [06:48:08]OFD Sender: No OFD packet to send [06:48:08]*** Cut start [06:48:08]*** Purtial cut [06:48:08]*** Stage 1: CUTSNS_PIN = 1 [06:48:08]Read from MH i2c: 01 [06:48:08]MH_I2C_Read... [06:48:08]*** Stop cut motor [06:48:08]*** Cut end [06:48:08]Read from MH i2c: 01 07 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 0C 44 00 00 00 00 00 FF 0F 65 [06:48:08]process_action close_receipt done [06:48:08]requested_data is exist [06:48:08]produce_requested_data [06:48:08]requested_item fm.sn is exist - process it [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 11 00 00 [06:48:08]Write to MH i2c: E2 08 00 0D 44 80 11 00 00 00 00 00 00 CB [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 0D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [06:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:48:08]wFMCommunicate OK [06:48:08]requested_item fd.num is exist - process it [06:48:08]SAM_PROTO_GetFieldsCounters [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 13 00 00 [06:48:08]Write to MH i2c: E2 08 00 0E 44 80 13 00 00 00 00 00 00 CE [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 62 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 62 00 0E 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [06:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_GetFieldsCounters done [06:48:08]requested_item shift.num is exist - process it [06:48:08]requested_item shift.opened is exist - process it [06:48:08]req_shift_opened [06:48:08]FM_GetShiftState [06:48:08]SAM_PROTO_GetShiftState [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 13 01 00 [06:48:08]Write to MH i2c: E2 08 00 0F 44 80 13 01 00 00 00 00 00 D0 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0E 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0E 00 0F 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 ED [06:48:08]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_GetShiftState done [06:48:08]FM_GetShiftState done [06:48:08]req_shift_opened done [06:48:08]requested_item shift.open_date is exist - process it [06:48:08]req_shift_open_date [06:48:08]req_shift_open_date done [06:48:08]produce_requested_data done [06:48:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49756,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [06:48:08]process_action_free close_receipt [06:48:08]json_value_free [06:48:08]json_value_free done [06:48:08]process_json_proto returns [06:48:08]Send response to host [06:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49756,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [06:48:08]free response buf [06:48:08]execute_script done [06:48:08]execute_script returns [06:48:08]free content buf [06:48:08]Sock 9.Close socket [06:48:08]Sock 9.Thread stoped [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:11]accept exits with 7 [07:13:11]New connection [07:13:11]New thread 3066801508 created [07:13:11]Thread 3066944868 joined [07:13:11]Waiting for new connection... [07:13:11] Sock 7.Parse request [07:13:11]Sock 7.Check first char [07:13:11]Sock 7.First char is OK [07:13:11]request: POST /json_proto HTTP/1.0 [07:13:11]Method: POST [07:13:11]URL: /json_proto [07:13:11]Method is POST - this is cgi request [07:13:11]url: /json_proto [07:13:11]query_string will be loaded in cgi processing [07:13:11]execute_cgi json_proto POST (null) [07:13:11]execute_cgi path=json_proto method=POST [07:13:11]POST find Content-Length [07:13:11]Host: 172.17.46.196:8080 [07:13:11]Content-Length: 621 [07:13:11]Content-Type: application/json [07:13:11] [07:13:11]POST finish read [07:13:11]Found Content-Length = 621 [07:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189936", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:11]execute_script... [07:13:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189936", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:11]POST & json_proto [07:13:11]process_json_proto [07:13:11]json parsed OK: [07:13:11]protocol is kg_v1.0 [07:13:11]action value=close_receipt [07:13:11]process_action close_receipt [07:13:11]cmd_close_receipt [07:13:11]MH_GetDate [07:13:11]Write to MH i2c: F0 00 00 10 44 43 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 09 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: F0 09 00 10 44 00 0E 9F C1 66 07 E8 5D 66 D2 [07:13:11]GetLastDocTimeStamp 1723963692 [07:13:11]current date 1723965198 [07:13:11]FM_GetShiftState [07:13:11]SAM_PROTO_GetShiftState [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 13 01 00 [07:13:11]Write to MH i2c: E2 08 00 11 44 80 13 01 00 00 00 00 00 D2 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:11]Read from MH i2c: E2 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 11 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EF [07:13:11]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:13:11]wFMCommunicate OK [07:13:11]SAM_PROTO_GetShiftState done [07:13:11]FM_GetShiftState done [07:13:11]opened in 1723939759 [07:13:11]opened+sec_in_day 1724026159 [07:13:11]quantity*price = 14000 [07:13:11]sum+1 = 14001 [07:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 23 18.08.2024 07:13 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49757 ФПД: 99258907467703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071318&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49757&fm=99258907467703&tin=02508201610067®Number=0000000000092546&sum=14000 0 [07:13:12]StoreToDocumentArchive [07:13:12]shift 466 fd 49757 [07:13:12]save to /storage/0466/doc_00049757 [07:13:12]save last doc name /storage/0466/doc_00049757 to /storage/kkm_last_doc_name [07:13:12]save OK [07:13:12]Clear old archive folders... [07:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:13:12]tlvbuf is 018410B0 [07:13:12]SAM_PROTO_ClearQueue [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 09 00 00 [07:13:12]Write to MH i2c: E2 08 00 1E 44 80 09 00 00 00 00 00 00 D4 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 1E 44 00 90 00 D6 [07:13:12]RAPDU: 90 00 [07:13:12]wFMCommunicate OK [07:13:12]SAM_PROTO_ClearQueue done [07:13:12]KKMCreateOFDPacket [07:13:12]OFDProtocolAddRootSTLVToBuf [07:13:12]FM_MakeSignedData [07:13:12]FM_MakeSignedData [07:13:12]SAM_PROTO_SignData [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 0D 01 02 [07:13:12]Write to MH i2c: E2 08 00 1F 44 80 0D 01 02 00 00 00 00 DC [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 1F 44 00 90 00 D7 [07:13:12]RAPDU: 90 00 [07:13:12]wFMCommunicate OK [07:13:12]wFMCommunicate request_size=255 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0E 9F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [07:13:12]Write to MH i2c: E2 02 01 20 44 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0E 9F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 90 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 20 44 00 90 00 D8 [07:13:12]RAPDU: 90 00 [07:13:12]wFMCommunicate OK [07:13:12]wFMCommunicate request_size=32 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C2 00 00 35 04 06 00 5A 46 83 EB 9F B7 [07:13:12]Write to MH i2c: E2 23 00 21 44 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C2 00 00 35 04 06 00 5A 46 83 EB 9F B7 00 00 B7 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 03 00 21 44 00 90 00 D9 [07:13:12]RAPDU: 90 00 [07:13:12]wFMCommunicate OK [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 0D 03 02 [07:13:12]Write to MH i2c: E2 08 00 22 44 80 0D 03 02 00 00 00 00 E1 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 0B 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 0B 00 22 44 00 E1 10 CE 7D 3C 0F 60 F5 90 00 BE [07:13:12]RAPDU: E1 10 CE 7D 3C 0F 60 F5 90 00 [07:13:12]wFMCommunicate OK [07:13:12]SAM_PROTO_SignData done [07:13:12]FM_MakeSignedData done [07:13:12]CreateOFDProtocolMessage [07:13:12]wFMCommunicate request_size=4 [07:13:12]MH_SAM_APDU [07:13:12]CAPDU: 80 11 00 00 [07:13:12]Write to MH i2c: E2 08 00 23 44 80 11 00 00 00 00 00 00 E1 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:12]Read from MH i2c: E2 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 17 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: E2 17 00 23 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [07:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:13:12]wFMCommunicate OK [07:13:12]CreateOFDProtocolMessage done [07:13:12]OFDSenderStorePacket 49757 [07:13:12]StoreOFDPacket docnum=49757 [07:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 FF 5D 1D 01 78 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0E 9F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C2 00 00 35 04 06 00 5A 46 83 EB 9F B7 E1 10 CE 7D 3C 0F 60 F5 [07:13:12]CheckFolder [07:13:12]dirname=/storage/ofd_packets [07:13:12]CheckFolder done [07:13:12]ProducePacketName [07:13:12]name=ofd_packets/00049757 [07:13:12]NVStorageSaveData ofd_packets/00049757 [07:13:12]File name is /storage/ofd_packets/00049757 [07:13:12]Write 323 bytes [07:13:12]NVStorageSaveData done [07:13:12]OFDSenderStorePacket done [07:13:12]KKMCreateOFDPacket done [07:13:12]NVStorageSaveData kkm_last_timestamp [07:13:12]File name is /storage/kkm_last_timestamp [07:13:12]Write 4 bytes [07:13:12]NVStorageSaveData done [07:13:12]ExternCall_PrintAddStr [07:13:12]wPrintStart [07:13:12]Write to MH i2c: 01 00 00 24 44 68 [07:13:12]Write i2c OK [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: 01 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: 01 07 00 [07:13:12]MH_I2C_Read... [07:13:12]Read from MH i2c: 01 07 00 24 44 00 00 00 00 00 FF 0F 7D [07:13:12]RasterBufferAndPrint [07:13:12]line Счет N : (3)189936 [07:13:12]line ИНН: 02508201610067 [07:13:12]line Контрольно-Кассовый Чек [07:13:12]line ПРОДАЖА [07:13:12]line Товар: 48743570 [07:13:12]line Сигареты Winston XStyle Blue [07:13:12]line 1.000 * 140.00 [07:13:12]line = 140.00 [07:13:12]line НДС 12% НСП 1% [07:13:12]line > о реализуемом товаре [07:13:12]line ИТОГО: 140.00 [07:13:12]line НСП 1% : 1.24 [07:13:12]line НДС 12% : 14.87 [07:13:12]line Наличными: 140.00 [07:13:12]line Безнал.: 0.00 [07:13:12]line Место: АЗС № 95 "Партнер Нефть" [07:13:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:13:12]line СНО: Общий режим [07:13:12]line Чек 23 18.08.2024 07:13 [07:13:12]line Смена: 466 ФФД: 1.0 [07:13:12]line ЗНМ: 0300000078 [07:13:12]line РНМ: 0000000000092546 [07:13:12]line Версия ККМ: 001 [07:13:12]line ФМ: 0000000000871800 [07:13:12]line ФД: 49757 [07:13:12]line ФПД: 99258907467703 [07:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071318&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49757&fm=99258907467703&tin=02508201610067®Number=0000000000092546&sum=14000 [07:13:13]OFD Sender: Processing packet 49757 [packets to send 21, broken 20] [07:13:13]ProducePacketName [07:13:13]name=ofd_packets/00049757 [07:13:13]OFD Sender: To server: pG, [07:13:13]CommunicateWithHost lk.salyk.kg:30040 [07:13:13]ConnectInit lk.salyk.kg [07:13:13]line 0 [07:13:13]written 0, free lines is 4095 [07:13:13]Connected sock=10 [07:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 FF 5D 1D 01 78 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 0E 9F C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C2 00 00 35 04 06 00 5A 46 83 EB 9F B7 E1 10 CE 7D 3C 0F 60 F5 [07:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8A 61 47 00 CB 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C2 00 00 F4 03 04 00 48 4A C1 66 B6 04 01 00 00 C0 25 0C AF AC 68 A7 3C [07:13:13]CommunicateWithHost err = 0 [07:13:13]CheckOFDResponse [07:13:13]1017 (14) - 77093643461234 [07:13:13]1041 (16) - 0000000000871800 [07:13:13]1040 (4) - 49757 [07:13:13]1012 (4) - 18.08.2024 01:11 [07:13:13]1206 (1) - 0 [07:13:13]OFD Sender: Remove packet 49757 [07:13:13]ProducePacketName [07:13:13]name=ofd_packets/00049757 [07:13:13]NVStorageDeleteData [07:13:13]Write to MH i2c: 01 00 00 4C 44 90 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 07 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: 01 07 00 4C 44 00 00 00 00 00 DC 0C 7F [07:13:13]RasterBufferAndPrint [07:13:13]line [07:13:13]line [07:13:13]line [07:13:13]line [07:13:13]line [07:13:13]written 0, free lines is 3298 [07:13:13]MH_Cut [07:13:13]Write to MH i2c: D1 01 00 53 44 01 69 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: D1 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: D1 01 00 [07:13:13]MH_I2C_Read... [07:13:13]Read from MH i2c: D1 01 00 53 44 00 68 [07:13:13]Write to MH i2c: 01 00 00 54 44 98 [07:13:13]Write i2c OK [07:13:13]MH_I2C_Read... [07:13:14]OFD Sender: No OFD packet to send [07:13:14]*** Cut start [07:13:14]*** Purtial cut [07:13:14]*** CUTSNS_PIN = 0 [07:13:14]*** Stage 1: CUTSNS_PIN = 1 [07:13:16]Read from MH i2c: 01 [07:13:16]MH_I2C_Read... [07:13:16]*** Stop cut motor [07:13:16]*** Cut end [07:13:16]Read from MH i2c: 01 07 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: 01 07 00 54 44 00 00 00 00 00 FF 0F AD [07:13:16]process_action close_receipt done [07:13:16]requested_data is exist [07:13:16]produce_requested_data [07:13:16]requested_item fm.sn is exist - process it [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 11 00 00 [07:13:16]Write to MH i2c: E2 08 00 55 44 80 11 00 00 00 00 00 00 13 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 17 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 17 00 55 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [07:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:13:16]wFMCommunicate OK [07:13:16]requested_item fd.num is exist - process it [07:13:16]SAM_PROTO_GetFieldsCounters [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 13 00 00 [07:13:16]Write to MH i2c: E2 08 00 56 44 80 13 00 00 00 00 00 00 16 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 62 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 62 00 56 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [07:13:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:16]wFMCommunicate OK [07:13:16]SAM_PROTO_GetFieldsCounters done [07:13:16]requested_item shift.num is exist - process it [07:13:16]requested_item shift.opened is exist - process it [07:13:16]req_shift_opened [07:13:16]FM_GetShiftState [07:13:16]SAM_PROTO_GetShiftState [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 13 01 00 [07:13:16]Write to MH i2c: E2 08 00 57 44 80 13 01 00 00 00 00 00 18 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 0E 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 0E 00 57 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 35 [07:13:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:13:16]wFMCommunicate OK [07:13:16]SAM_PROTO_GetShiftState done [07:13:16]FM_GetShiftState done [07:13:16]req_shift_opened done [07:13:16]requested_item shift.open_date is exist - process it [07:13:16]req_shift_open_date [07:13:16]req_shift_open_date done [07:13:16]produce_requested_data done [07:13:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49757,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [07:13:16]process_action_free close_receipt [07:13:16]json_value_free [07:13:16]json_value_free done [07:13:16]process_json_proto returns [07:13:16]Send response to host [07:13:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49757,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [07:13:16]free response buf [07:13:16]execute_script done [07:13:16]execute_script returns [07:13:16]free content buf [07:13:16]Sock 7.Close socket [07:13:16]Sock 7.Thread stoped [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]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:22]accept exits with 9 [07:32:22]New connection [07:32:22]New thread 3066944868 created [07:32:22]Thread 3066801508 joined [07:32:22]Waiting for new connection... [07:32:22] Sock 9.Parse request [07:32:22]Sock 9.Check first char [07:32:22]Sock 9.First char is OK [07:32:22]request: POST /json_proto HTTP/1.0 [07:32:22]Method: POST [07:32:22]URL: /json_proto [07:32:22]Method is POST - this is cgi request [07:32:22]url: /json_proto [07:32:22]query_string will be loaded in cgi processing [07:32:22]execute_cgi json_proto POST (null) [07:32:22]execute_cgi path=json_proto method=POST [07:32:22]POST find Content-Length [07:32:22]Host: 172.17.46.196:8080 [07:32:22]Content-Length: 874 [07:32:22]Content-Type: application/json [07:32:22] [07:32:22]POST finish read [07:32:22]Found Content-Length = 874 [07:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189937", "tax_sys" : 0, "items" : [ { "code": "4870002329449", "name": "Piala ice tea \u0447\u0435\u0440\u043D\u044B\u0439-\u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u043B\u0438\u043C\u043E\u043D-\u0430\u043F\u0435\u043B\u044C", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:22]execute_script... [07:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189937", "tax_sys" : 0, "items" : [ { "code": "4870002329449", "name": "Piala ice tea \u0447\u0435\u0440\u043D\u044B\u0439-\u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u043B\u0438\u043C\u043E\u043D-\u0430\u043F\u0435\u043B\u044C", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:22]POST & json_proto [07:32:22]process_json_proto [07:32:22]json parsed OK: [07:32:22]protocol is kg_v1.0 [07:32:22]action value=close_receipt [07:32:22]process_action close_receipt [07:32:22]cmd_close_receipt [07:32:22]MH_GetDate [07:32:22]Write to MH i2c: F0 00 00 58 44 8B [07:32:22]Write i2c OK [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: F0 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: F0 09 00 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: F0 09 00 58 44 00 8E A3 C1 66 07 E8 5D 66 9E [07:32:22]GetLastDocTimeStamp 1723965198 [07:32:22]current date 1723966350 [07:32:22]FM_GetShiftState [07:32:22]SAM_PROTO_GetShiftState [07:32:22]wFMCommunicate request_size=4 [07:32:22]MH_SAM_APDU [07:32:22]CAPDU: 80 13 01 00 [07:32:22]Write to MH i2c: E2 08 00 59 44 80 13 01 00 00 00 00 00 1A [07:32:22]Write i2c OK [07:32:22]MH_I2C_Read... [07:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:22]Read from MH i2c: E2 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: E2 0E 00 [07:32:22]MH_I2C_Read... [07:32:22]Read from MH i2c: E2 0E 00 59 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 37 [07:32:22]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:32:22]wFMCommunicate OK [07:32:22]SAM_PROTO_GetShiftState done [07:32:22]FM_GetShiftState done [07:32:22]opened in 1723939759 [07:32:22]opened+sec_in_day 1724026159 [07:32:22]quantity*price = 10500 [07:32:22]sum+1 = 10501 [07:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 24 18.08.2024 07:32 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49758 ФПД: 179181430931980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T073230&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49758&fm=179181430931980&tin=02508201610067®Number=0000000000092546&sum=10500 0 [07:32:24]StoreToDocumentArchive [07:32:24]shift 466 fd 49758 [07:32:24]save to /storage/0466/doc_00049758 [07:32:24]save last doc name /storage/0466/doc_00049758 to /storage/kkm_last_doc_name [07:32:24]save OK [07:32:24]Clear old archive folders... [07:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=305 [07:32:24]tlvbuf is 01840B90 [07:32:24]SAM_PROTO_ClearQueue [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 09 00 00 [07:32:24]Write to MH i2c: E2 08 00 66 44 80 09 00 00 00 00 00 00 1C [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]SAM_PROTO_ClearQueue done [07:32:24]KKMCreateOFDPacket [07:32:24]OFDProtocolAddRootSTLVToBuf [07:32:24]FM_MakeSignedData [07:32:24]FM_MakeSignedData [07:32:24]SAM_PROTO_SignData [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 01 02 [07:32:24]Write to MH i2c: E2 08 00 67 44 80 0D 01 02 00 00 00 00 24 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=255 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 34 39 06 04 3F 00 50 69 61 6C 61 20 69 63 65 20 74 65 61 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 2D D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 2D D0 B0 D0 BF D0 B5 D0 BB D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8E A3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 [07:32:24]Write to MH i2c: E2 02 01 68 44 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 34 39 06 04 3F 00 50 69 61 6C 61 20 69 63 65 20 74 65 61 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 2D D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 2D D0 B0 D0 BF D0 B5 D0 BB D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8E A3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 00 00 5E [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 68 44 00 90 00 20 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=64 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C2 00 00 35 04 06 00 A2 F6 ED 8A 82 0C [07:32:24]Write to MH i2c: E2 43 00 69 44 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C2 00 00 35 04 06 00 A2 F6 ED 8A 82 0C 00 00 2A [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 69 44 00 90 00 21 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 03 02 [07:32:24]Write to MH i2c: E2 08 00 6A 44 80 0D 03 02 00 00 00 00 29 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 0B 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 0B 00 6A 44 00 32 99 42 02 7B 3D 6D 7F 90 00 DD [07:32:24]RAPDU: 32 99 42 02 7B 3D 6D 7F 90 00 [07:32:24]wFMCommunicate OK [07:32:24]SAM_PROTO_SignData done [07:32:24]FM_MakeSignedData done [07:32:24]CreateOFDProtocolMessage [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 11 00 00 [07:32:24]Write to MH i2c: E2 08 00 6B 44 80 11 00 00 00 00 00 00 29 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 17 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 17 00 6B 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [07:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:32:24]wFMCommunicate OK [07:32:24]CreateOFDProtocolMessage done [07:32:24]OFDSenderStorePacket 49758 [07:32:24]StoreOFDPacket docnum=49758 [07:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 45 01 00 00 7F 7B 3D 01 BA EE 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 34 39 06 04 3F 00 50 69 61 6C 61 20 69 63 65 20 74 65 61 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 2D D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 2D D0 B0 D0 BF D0 B5 D0 BB D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8E A3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C2 00 00 35 04 06 00 A2 F6 ED 8A 82 0C 32 99 42 02 7B 3D 6D 7F [07:32:24]CheckFolder [07:32:24]dirname=/storage/ofd_packets [07:32:24]CheckFolder done [07:32:24]ProducePacketName [07:32:24]name=ofd_packets/00049758 [07:32:24]NVStorageSaveData ofd_packets/00049758 [07:32:24]File name is /storage/ofd_packets/00049758 [07:32:24]Write 355 bytes [07:32:24]NVStorageSaveData done [07:32:24]OFDSenderStorePacket done [07:32:24]KKMCreateOFDPacket done [07:32:24]NVStorageSaveData kkm_last_timestamp [07:32:24]File name is /storage/kkm_last_timestamp [07:32:24]Write 4 bytes [07:32:24]NVStorageSaveData done [07:32:24]ExternCall_PrintAddStr [07:32:24]wPrintStart [07:32:24]Write to MH i2c: 01 00 00 6C 44 B0 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 07 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 07 00 6C 44 00 00 00 00 00 FF 0F C5 [07:32:24]RasterBufferAndPrint [07:32:24]line Счет N : (3)189937 [07:32:24]line ИНН: 02508201610067 [07:32:24]line Контрольно-Кассовый Чек [07:32:24]line ПРОДАЖА [07:32:24]line Товар: 4870002329449 [07:32:24]line Piala ice tea черный-зеленый лимон-апель [07:32:24]line 1.000 * 105.00 [07:32:24]line = 105.00 [07:32:24]line НДС 12% НСП 1% [07:32:24]line > о реализуемом товаре [07:32:24]line ИТОГО: 105.00 [07:32:24]line НСП 1% : 0.93 [07:32:24]line НДС 12% : 11.15 [07:32:24]line Наличными: 0.00 [07:32:24]line Безнал.: 105.00 [07:32:24]line Место: АЗС № 95 "Партнер Нефть" [07:32:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:32:24]line СНО: Общий режим [07:32:24]line Чек 24 18.08.2024 07:32 [07:32:24]line Смена: 466 ФФД: 1.0 [07:32:24]line ЗНМ: 0300000078 [07:32:24]line РНМ: 0000000000092546 [07:32:24]line Версия ККМ: 001 [07:32:24]line Платежная система: O! деньги [07:32:24]line ФМ: 0000000000871800 [07:32:24]line ФД: 49758 [07:32:24]line ФПД: 179181430931980 [07:32:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T073230&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49758&fm=179181430931980&tin=02508201610067®Number=0000000000092546&sum=10500 [07:32:25]line 0 [07:32:25]OFD Sender: Processing packet 49758 [packets to send 21, broken 20] [07:32:25]ProducePacketName [07:32:25]name=ofd_packets/00049758 [07:32:25]OFD Sender: To server: pG, [07:32:25]CommunicateWithHost lk.salyk.kg:30040 [07:32:25]ConnectInit lk.salyk.kg [07:32:25]written 0, free lines is 4095 [07:32:25]Connected sock=10 [07:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 45 01 00 00 7F 7B 3D 01 BA EE 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 34 39 06 04 3F 00 50 69 61 6C 61 20 69 63 65 20 74 65 61 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 2D D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 2D D0 B0 D0 BF D0 B5 D0 BB D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8E A3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C2 00 00 35 04 06 00 A2 F6 ED 8A 82 0C 32 99 42 02 7B 3D 6D 7F [07:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6F 14 47 00 15 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C2 00 00 F4 03 04 00 C8 4E C1 66 B6 04 01 00 00 DC 05 88 02 9D F6 6A 00 [07:32:25]CommunicateWithHost err = 0 [07:32:25]CheckOFDResponse [07:32:25]1017 (14) - 77093643461234 [07:32:25]1041 (16) - 0000000000871800 [07:32:25]1040 (4) - 49758 [07:32:25]1012 (4) - 18.08.2024 01:30 [07:32:25]1206 (1) - 0 [07:32:25]OFD Sender: Remove packet 49758 [07:32:25]ProducePacketName [07:32:25]name=ofd_packets/00049758 [07:32:25]NVStorageDeleteData [07:32:25]Write to MH i2c: 01 00 00 97 44 DB [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 07 00 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 07 00 97 44 00 00 00 00 00 A8 0C 96 [07:32:25]RasterBufferAndPrint [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]written 0, free lines is 3249 [07:32:25]MH_Cut [07:32:25]Write to MH i2c: D1 01 00 9E 44 01 B4 [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 01 00 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 01 00 9E 44 00 B3 [07:32:25]Write to MH i2c: 01 00 00 9F 44 E3 [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]OFD Sender: No OFD packet to send [07:32:26]*** Cut start [07:32:26]*** Purtial cut [07:32:26]*** Stage 1: CUTSNS_PIN = 1 [07:32:26]Read from MH i2c: 01 [07:32:26]MH_I2C_Read... [07:32:26]*** Stop cut motor [07:32:26]*** Cut end [07:32:26]Read from MH i2c: 01 07 00 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: 01 07 00 9F 44 00 00 00 00 00 FF 0F F8 [07:32:26]process_action close_receipt done [07:32:26]requested_data is exist [07:32:26]produce_requested_data [07:32:26]requested_item fm.sn is exist - process it [07:32:26]wFMCommunicate request_size=4 [07:32:26]MH_SAM_APDU [07:32:26]CAPDU: 80 11 00 00 [07:32:26]Write to MH i2c: E2 08 00 A0 44 80 11 00 00 00 00 00 00 5E [07:32:26]Write i2c OK [07:32:26]MH_I2C_Read... [07:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:26]Read from MH i2c: E2 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 17 00 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 17 00 A0 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [07:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:32:26]wFMCommunicate OK [07:32:26]requested_item fd.num is exist - process it [07:32:26]SAM_PROTO_GetFieldsCounters [07:32:26]wFMCommunicate request_size=4 [07:32:26]MH_SAM_APDU [07:32:26]CAPDU: 80 13 00 00 [07:32:26]Write to MH i2c: E2 08 00 A1 44 80 13 00 00 00 00 00 00 61 [07:32:26]Write i2c OK [07:32:26]MH_I2C_Read... [07:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:26]Read from MH i2c: E2 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 62 00 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 62 00 A1 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [07:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:26]wFMCommunicate OK [07:32:26]SAM_PROTO_GetFieldsCounters done [07:32:26]requested_item shift.num is exist - process it [07:32:26]requested_item shift.opened is exist - process it [07:32:26]req_shift_opened [07:32:26]FM_GetShiftState [07:32:26]SAM_PROTO_GetShiftState [07:32:26]wFMCommunicate request_size=4 [07:32:26]MH_SAM_APDU [07:32:26]CAPDU: 80 13 01 00 [07:32:26]Write to MH i2c: E2 08 00 A2 44 80 13 01 00 00 00 00 00 63 [07:32:26]Write i2c OK [07:32:26]MH_I2C_Read... [07:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:26]Read from MH i2c: E2 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 0E 00 [07:32:26]MH_I2C_Read... [07:32:26]Read from MH i2c: E2 0E 00 A2 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 80 [07:32:26]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:32:26]wFMCommunicate OK [07:32:26]SAM_PROTO_GetShiftState done [07:32:26]FM_GetShiftState done [07:32:26]req_shift_opened done [07:32:26]requested_item shift.open_date is exist - process it [07:32:26]req_shift_open_date [07:32:26]req_shift_open_date done [07:32:26]produce_requested_data done [07:32:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49758,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [07:32:26]process_action_free close_receipt [07:32:26]json_value_free [07:32:26]json_value_free done [07:32:26]process_json_proto returns [07:32:26]Send response to host [07:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49758,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [07:32:26]free response buf [07:32:26]execute_script done [07:32:26]execute_script returns [07:32:26]free content buf [07:32:26]Sock 9.Close socket [07:32:26]Sock 9.Thread stoped [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:11]accept exits with 7 [07:35:11]New connection [07:35:11]New thread 3066801508 created [07:35:11]Thread 3066944868 joined [07:35:11]Waiting for new connection... [07:35:11] Sock 7.Parse request [07:35:11]Sock 7.Check first char [07:35:11]Sock 7.First char is OK [07:35:11]request: POST /json_proto HTTP/1.0 [07:35:11]Method: POST [07:35:11]URL: /json_proto [07:35:11]Method is POST - this is cgi request [07:35:11]url: /json_proto [07:35:11]query_string will be loaded in cgi processing [07:35:11]execute_cgi json_proto POST (null) [07:35:11]execute_cgi path=json_proto method=POST [07:35:11]POST find Content-Length [07:35:11]Host: 172.17.46.196:8080 [07:35:11]Content-Length: 1009 [07:35:11]Content-Type: application/json [07:35:11] [07:35:11]POST finish read [07:35:11]Found Content-Length = 1009 [07:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189938", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:11]execute_script... [07:35:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189938", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:11]POST & json_proto [07:35:11]process_json_proto [07:35:11]json parsed OK: [07:35:11]protocol is kg_v1.0 [07:35:11]action value=close_receipt [07:35:11]process_action close_receipt [07:35:11]cmd_close_receipt [07:35:11]MH_GetDate [07:35:11]Write to MH i2c: F0 00 00 A3 44 D6 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: F0 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: F0 09 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: F0 09 00 A3 44 00 36 A4 C1 66 07 E8 5D 66 92 [07:35:11]GetLastDocTimeStamp 1723966350 [07:35:11]current date 1723966518 [07:35:11]FM_GetShiftState [07:35:11]SAM_PROTO_GetShiftState [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 13 01 00 [07:35:11]Write to MH i2c: E2 08 00 A4 44 80 13 01 00 00 00 00 00 65 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 0E 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 0E 00 A4 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 82 [07:35:11]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:35:11]wFMCommunicate OK [07:35:11]SAM_PROTO_GetShiftState done [07:35:11]FM_GetShiftState done [07:35:11]opened in 1723939759 [07:35:11]opened+sec_in_day 1724026159 [07:35:11]quantity*price = 13000 [07:35:11]sum+1 = 13001 [07:35:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 25 18.08.2024 07:35 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49759 ФПД: 116862987206855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T073518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49759&fm=116862987206855&tin=02508201610067®Number=0000000000092546&sum=26000 0 [07:35:12]StoreToDocumentArchive [07:35:12]shift 466 fd 49759 [07:35:12]save to /storage/0466/doc_00049759 [07:35:12]save last doc name /storage/0466/doc_00049759 to /storage/kkm_last_doc_name [07:35:12]save OK [07:35:12]Clear old archive folders... [07:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=425 [07:35:12]tlvbuf is 0190CFF0 [07:35:12]SAM_PROTO_ClearQueue [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 09 00 00 [07:35:12]Write to MH i2c: E2 08 00 B1 44 80 09 00 00 00 00 00 00 67 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 B1 44 00 90 00 69 [07:35:12]RAPDU: 90 00 [07:35:12]wFMCommunicate OK [07:35:12]SAM_PROTO_ClearQueue done [07:35:12]KKMCreateOFDPacket [07:35:12]OFDProtocolAddRootSTLVToBuf [07:35:12]FM_MakeSignedData [07:35:12]FM_MakeSignedData [07:35:12]SAM_PROTO_SignData [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 0D 01 02 [07:35:12]Write to MH i2c: E2 08 00 B2 44 80 0D 01 02 00 00 00 00 6F [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 B2 44 00 90 00 6A [07:35:12]RAPDU: 90 00 [07:35:12]wFMCommunicate OK [07:35:12]wFMCommunicate request_size=255 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 [07:35:12]Write to MH i2c: E2 02 01 B3 44 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 00 00 46 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 B3 44 00 90 00 6B [07:35:12]RAPDU: 90 00 [07:35:12]wFMCommunicate OK [07:35:12]wFMCommunicate request_size=184 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 36 A4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C2 00 00 35 04 06 00 6A 49 48 D7 00 C7 [07:35:12]Write to MH i2c: E2 BB 00 B4 44 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 36 A4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C2 00 00 35 04 06 00 6A 49 48 D7 00 C7 00 00 1E [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 03 00 B4 44 00 90 00 6C [07:35:12]RAPDU: 90 00 [07:35:12]wFMCommunicate OK [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 0D 03 02 [07:35:12]Write to MH i2c: E2 08 00 B5 44 80 0D 03 02 00 00 00 00 74 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0B 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0B 00 B5 44 00 94 91 C7 A9 EF F9 67 7C 90 00 D5 [07:35:12]RAPDU: 94 91 C7 A9 EF F9 67 7C 90 00 [07:35:12]wFMCommunicate OK [07:35:12]SAM_PROTO_SignData done [07:35:12]FM_MakeSignedData done [07:35:12]CreateOFDProtocolMessage [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 11 00 00 [07:35:12]Write to MH i2c: E2 08 00 B6 44 80 11 00 00 00 00 00 00 74 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 17 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 17 00 B6 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BF [07:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:35:13]wFMCommunicate OK [07:35:13]CreateOFDProtocolMessage done [07:35:13]OFDSenderStorePacket 49759 [07:35:13]StoreOFDPacket docnum=49759 [07:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BD 01 00 00 77 42 B5 01 B7 EE 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 36 A4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C2 00 00 35 04 06 00 6A 49 48 D7 00 C7 94 91 C7 A9 EF F9 67 7C [07:35:13]CheckFolder [07:35:13]dirname=/storage/ofd_packets [07:35:13]CheckFolder done [07:35:13]ProducePacketName [07:35:13]name=ofd_packets/00049759 [07:35:13]NVStorageSaveData ofd_packets/00049759 [07:35:13]File name is /storage/ofd_packets/00049759 [07:35:13]Write 475 bytes [07:35:13]NVStorageSaveData done [07:35:13]OFDSenderStorePacket done [07:35:13]KKMCreateOFDPacket done [07:35:13]NVStorageSaveData kkm_last_timestamp [07:35:13]File name is /storage/kkm_last_timestamp [07:35:13]Write 4 bytes [07:35:13]NVStorageSaveData done [07:35:13]ExternCall_PrintAddStr [07:35:13]wPrintStart [07:35:13]Write to MH i2c: 01 00 00 B7 44 FB [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]OFD Sender: Processing packet 49759 [packets to send 21, broken 20] [07:35:13]ProducePacketName [07:35:13]name=ofd_packets/00049759 [07:35:13]OFD Sender: To server: pG, [07:35:13]CommunicateWithHost lk.salyk.kg:30040 [07:35:13]ConnectInit lk.salyk.kg [07:35:13]Read from MH i2c: 01 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: 01 07 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: 01 07 00 B7 44 00 00 00 00 00 FF 0F 10 [07:35:13]RasterBufferAndPrint [07:35:13]line Счет N : (3)189938 [07:35:13]line ИНН: 02508201610067 [07:35:13]line Контрольно-Кассовый Чек [07:35:13]line ПРОДАЖА [07:35:13]line Товар: 5449000189349 [07:35:13]line Холодный чай Fuse манго ананас 0,5л [07:35:13]line 2.000 * 65.00 [07:35:13]line = 130.00 [07:35:13]line НДС 12% НСП 1% [07:35:13]line > о реализуемом товаре [07:35:13]line Товар: 5449000027450 [07:35:13]line Напиток FuzeTea чай манго,ром 0,5л [07:35:13]line 2.000 * 65.00 [07:35:13]line = 130.00 [07:35:13]line НДС 12% НСП 1% [07:35:13]line > о реализуемом товаре [07:35:13]line ИТОГО: 260.00 [07:35:13]line НСП 1% : 2.30 [07:35:13]line НДС 12% : 27.60 [07:35:13]line Наличными: 260.00 [07:35:13]line Безнал.: 0.00 [07:35:13]line Место: АЗС № 95 "Партнер Нефть" [07:35:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:35:13]line СНО: Общий режим [07:35:13]line Чек 25 18.08.2024 07:35 [07:35:13]line Смена: 466 ФФД: 1.0 [07:35:13]line ЗНМ: 0300000078 [07:35:13]line РНМ: 0000000000092546 [07:35:13]line Версия ККМ: 001 [07:35:13]line ФМ: 0000000000871800 [07:35:13]line ФД: 49759 [07:35:13]line ФПД: 116862987206855 [07:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T073518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49759&fm=116862987206855&tin=02508201610067®Number=0000000000092546&sum=26000 [07:35:13]line 0 [07:35:13]written 0, free lines is 4095 [07:35:13]Connected sock=10 [07:35:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BD 01 00 00 77 42 B5 01 B7 EE 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 36 A4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C2 00 00 35 04 06 00 6A 49 48 D7 00 C7 94 91 C7 A9 EF F9 67 7C [07:35:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A3 FF 47 00 E1 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C2 00 00 F4 03 04 00 70 4F C1 66 B6 04 01 00 00 B6 B4 6D 77 E4 81 DE BE [07:35:13]CommunicateWithHost err = 0 [07:35:13]CheckOFDResponse [07:35:13]1017 (14) - 77093643461234 [07:35:13]1041 (16) - 0000000000871800 [07:35:13]1040 (4) - 49759 [07:35:13]1012 (4) - 18.08.2024 01:33 [07:35:13]1206 (1) - 0 [07:35:13]OFD Sender: Remove packet 49759 [07:35:13]ProducePacketName [07:35:13]name=ofd_packets/00049759 [07:35:13]NVStorageDeleteData [07:35:13]Write to MH i2c: 01 00 00 E7 44 2B [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: 01 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: 01 07 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: 01 07 00 E7 44 00 00 00 00 00 71 0C AF [07:35:13]RasterBufferAndPrint [07:35:13]line [07:35:13]line [07:35:13]line [07:35:13]line [07:35:13]line [07:35:13]written 0, free lines is 3194 [07:35:13]MH_Cut [07:35:13]Write to MH i2c: D1 01 00 EE 44 01 04 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: D1 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: D1 01 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: D1 01 00 EE 44 00 03 [07:35:13]Write to MH i2c: 01 00 00 EF 44 33 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:14]OFD Sender: No OFD packet to send [07:35:14]*** Cut start [07:35:14]*** Purtial cut [07:35:14]*** CUTSNS_PIN = 0 [07:35:14]*** Stage 1: CUTSNS_PIN = 1 [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]*** Stop cut motor [07:35:16]*** Cut end [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 EF 44 00 00 00 00 00 FF 0F 48 [07:35:16]process_action close_receipt done [07:35:16]requested_data is exist [07:35:16]produce_requested_data [07:35:16]requested_item fm.sn is exist - process it [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 F0 44 80 11 00 00 00 00 00 00 AE [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 F0 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F9 [07:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:35:16]wFMCommunicate OK [07:35:16]requested_item fd.num is exist - process it [07:35:16]SAM_PROTO_GetFieldsCounters [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 13 00 00 [07:35:16]Write to MH i2c: E2 08 00 F1 44 80 13 00 00 00 00 00 00 B1 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 62 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 62 00 F1 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [07:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_GetFieldsCounters done [07:35:16]requested_item shift.num is exist - process it [07:35:16]requested_item shift.opened is exist - process it [07:35:16]req_shift_opened [07:35:16]FM_GetShiftState [07:35:16]SAM_PROTO_GetShiftState [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 13 01 00 [07:35:16]Write to MH i2c: E2 08 00 F2 44 80 13 01 00 00 00 00 00 B3 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:17]Read from MH i2c: E2 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 0E 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 0E 00 F2 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D0 [07:35:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:35:17]wFMCommunicate OK [07:35:17]SAM_PROTO_GetShiftState done [07:35:17]FM_GetShiftState done [07:35:17]req_shift_opened done [07:35:17]requested_item shift.open_date is exist - process it [07:35:17]req_shift_open_date [07:35:17]req_shift_open_date done [07:35:17]produce_requested_data done [07:35:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49759,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [07:35:17]process_action_free close_receipt [07:35:17]json_value_free [07:35:17]json_value_free done [07:35:17]process_json_proto returns [07:35:17]Send response to host [07:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49759,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [07:35:17]free response buf [07:35:17]execute_script done [07:35:17]execute_script returns [07:35:17]free content buf [07:35:17]Sock 7.Close socket [07:35:17]Sock 7.Thread stoped [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36: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:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:31]accept exits with 9 [07:50:31]New connection [07:50:31]New thread 3066944868 created [07:50:31]Thread 3066801508 joined [07:50:31]Waiting for new connection... [07:50:31] Sock 9.Parse request [07:50:31]Sock 9.Check first char [07:50:31]Sock 9.First char is OK [07:50:31]request: POST /json_proto HTTP/1.0 [07:50:31]Method: POST [07:50:31]URL: /json_proto [07:50:31]Method is POST - this is cgi request [07:50:31]url: /json_proto [07:50:31]query_string will be loaded in cgi processing [07:50:31]execute_cgi json_proto POST (null) [07:50:31]execute_cgi path=json_proto method=POST [07:50:31]POST find Content-Length [07:50:31]Host: 172.17.46.196:8080 [07:50:31]Content-Length: 667 [07:50:31]Content-Type: application/json [07:50:31] [07:50:31]POST finish read [07:50:31]Found Content-Length = 667 [07:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189939", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:31]execute_script... [07:50: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 : (3)189939", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:31]POST & json_proto [07:50:31]process_json_proto [07:50:31]json parsed OK: [07:50:31]protocol is kg_v1.0 [07:50:31]action value=close_receipt [07:50:31]process_action close_receipt [07:50:31]cmd_close_receipt [07:50:31]MH_GetDate [07:50:31]Write to MH i2c: F0 00 00 F3 44 26 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 09 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 09 00 F3 44 00 CF A7 C1 66 07 E8 5D 66 7E [07:50:31]GetLastDocTimeStamp 1723966518 [07:50:31]current date 1723967439 [07:50:31]FM_GetShiftState [07:50:31]SAM_PROTO_GetShiftState [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 13 01 00 [07:50:31]Write to MH i2c: E2 08 00 F4 44 80 13 01 00 00 00 00 00 B5 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 0E 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 0E 00 F4 44 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D2 [07:50:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:50:31]wFMCommunicate OK [07:50:31]SAM_PROTO_GetShiftState done [07:50:31]FM_GetShiftState done [07:50:31]opened in 1723939759 [07:50:31]opened+sec_in_day 1724026159 [07:50:31]quantity*price = 20000 [07:50:31]sum+1 = 20001 [07:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 26 18.08.2024 07:50 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49760 ФПД: 185136307585008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075039&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49760&fm=185136307585008&tin=02508201610067®Number=0000000000092546&sum=20000 0 [07:50:33]StoreToDocumentArchive [07:50:33]shift 466 fd 49760 [07:50:33]save to /storage/0466/doc_00049760 [07:50:33]save last doc name /storage/0466/doc_00049760 to /storage/kkm_last_doc_name [07:50:33]save OK [07:50:33]Clear old archive folders... [07:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=283 [07:50:33]tlvbuf is 019844C0 [07:50:33]SAM_PROTO_ClearQueue [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 09 00 00 [07:50:33]Write to MH i2c: E2 08 00 01 45 80 09 00 00 00 00 00 00 B8 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 01 45 00 90 00 BA [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_ClearQueue done [07:50:33]KKMCreateOFDPacket [07:50:33]OFDProtocolAddRootSTLVToBuf [07:50:33]FM_MakeSignedData [07:50:33]FM_MakeSignedData [07:50:33]SAM_PROTO_SignData [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 01 02 [07:50:33]Write to MH i2c: E2 08 00 02 45 80 0D 01 02 00 00 00 00 C0 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 02 45 00 90 00 BB [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=255 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 1A 00 00 00 F4 03 04 00 CF A7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 [07:50:33]Write to MH i2c: E2 02 01 03 45 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 1A 00 00 00 F4 03 04 00 CF A7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 00 00 B9 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 03 45 00 90 00 BC [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=42 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C2 00 00 35 04 06 00 A8 61 67 D9 3F F0 [07:50:33]Write to MH i2c: E2 2D 00 04 45 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C2 00 00 35 04 06 00 A8 61 67 D9 3F F0 00 00 2A [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 04 45 00 90 00 BD [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 03 02 [07:50:33]Write to MH i2c: E2 08 00 05 45 80 0D 03 02 00 00 00 00 C5 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 05 45 00 39 96 23 67 2A 0E 29 D4 90 00 54 [07:50:33]RAPDU: 39 96 23 67 2A 0E 29 D4 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_SignData done [07:50:33]FM_MakeSignedData done [07:50:33]CreateOFDProtocolMessage [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 11 00 00 [07:50:33]Write to MH i2c: E2 08 00 06 45 80 11 00 00 00 00 00 00 C5 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 06 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 10 [07:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:50:33]wFMCommunicate OK [07:50:33]CreateOFDProtocolMessage done [07:50:33]OFDSenderStorePacket 49760 [07:50:33]StoreOFDPacket docnum=49760 [07:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 75 12 27 01 CB 9B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 1A 00 00 00 F4 03 04 00 CF A7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C2 00 00 35 04 06 00 A8 61 67 D9 3F F0 39 96 23 67 2A 0E 29 D4 [07:50:33]CheckFolder [07:50:33]dirname=/storage/ofd_packets [07:50:33]CheckFolder done [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00049760 [07:50:33]NVStorageSaveData ofd_packets/00049760 [07:50:33]File name is /storage/ofd_packets/00049760 [07:50:33]Write 333 bytes [07:50:33]NVStorageSaveData done [07:50:33]OFDSenderStorePacket done [07:50:33]KKMCreateOFDPacket done [07:50:33]NVStorageSaveData kkm_last_timestamp [07:50:33]File name is /storage/kkm_last_timestamp [07:50:33]Write 4 bytes [07:50:33]NVStorageSaveData done [07:50:33]ExternCall_PrintAddStr [07:50:33]wPrintStart [07:50:33]Write to MH i2c: 01 00 00 07 45 4C [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 07 45 00 00 00 00 00 FF 0F 61 [07:50:33]RasterBufferAndPrint [07:50:33]line Счет N : (3)189939 [07:50:33]line ИНН: 02508201610067 [07:50:33]line Контрольно-Кассовый Чек [07:50:33]line ПРОДАЖА [07:50:33]line Товар: 4700002085444 [07:50:33]line Водка Белое золото 0,24л [07:50:33]line 1.000 * 200.00 [07:50:33]line = 200.00 [07:50:33]line НДС 12% НСП 1% [07:50:33]line > о реализуемом товаре [07:50:33]line ИТОГО: 200.00 [07:50:33]line НСП 1% : 1.77 [07:50:33]line НДС 12% : 21.24 [07:50:33]line Наличными: 200.00 [07:50:33]line Безнал.: 0.00 [07:50:33]line Место: АЗС № 95 "Партнер Нефть" [07:50:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:50:33]line СНО: Общий режим [07:50:33]line Чек 26 18.08.2024 07:50 [07:50:33]line Смена: 466 ФФД: 1.0 [07:50:33]line ЗНМ: 0300000078 [07:50:33]line РНМ: 0000000000092546 [07:50:33]line Версия ККМ: 001 [07:50:33]line ФМ: 0000000000871800 [07:50:33]line ФД: 49760 [07:50:33]line ФПД: 185136307585008 [07:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075039&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49760&fm=185136307585008&tin=02508201610067®Number=0000000000092546&sum=20000 [07:50:33]OFD Sender: Processing packet 49760 [packets to send 21, broken 20] [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00049760 [07:50:33]OFD Sender: To server: pG, [07:50:33]CommunicateWithHost lk.salyk.kg:30040 [07:50:33]ConnectInit lk.salyk.kg [07:50:33]line 0 [07:50:33]written 0, free lines is 4095 [07:50:34]Connected sock=10 [07:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 75 12 27 01 CB 9B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 1A 00 00 00 F4 03 04 00 CF A7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C2 00 00 35 04 06 00 A8 61 67 D9 3F F0 39 96 23 67 2A 0E 29 D4 [07:50:34]Write to MH i2c: 01 00 00 2F 45 74 [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 2F 45 00 00 00 00 00 E9 0C 70 [07:50:34]RasterBufferAndPrint [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]written 0, free lines is 3312 [07:50:34]MH_Cut [07:50:34]Write to MH i2c: D1 01 00 36 45 01 4D [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 36 45 00 4C [07:50:34]Write to MH i2c: 01 00 00 37 45 7C [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0A 33 47 00 D2 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C2 00 00 F4 03 04 00 09 53 C1 66 B6 04 01 00 00 B0 24 EA CB 7D ED A3 34 [07:50:34]CommunicateWithHost err = 0 [07:50:34]CheckOFDResponse [07:50:34]1017 (14) - 77093643461234 [07:50:34]1041 (16) - 0000000000871800 [07:50:34]1040 (4) - 49760 [07:50:34]1012 (4) - 18.08.2024 01:48 [07:50:34]1206 (1) - 0 [07:50:34]OFD Sender: Remove packet 49760 [07:50:34]ProducePacketName [07:50:34]name=ofd_packets/00049760 [07:50:34]NVStorageDeleteData [07:50:34]OFD Sender: No OFD packet to send [07:50:35]*** Cut start [07:50:35]*** Purtial cut [07:50:35]*** Stage 1: CUTSNS_PIN = 1 [07:50:35]Read from MH i2c: 01 [07:50:35]MH_I2C_Read... [07:50:35]*** Stop cut motor [07:50:35]*** Cut end [07:50:35]Read from MH i2c: 01 07 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: 01 07 00 37 45 00 00 00 00 00 FF 0F 91 [07:50:35]process_action close_receipt done [07:50:35]requested_data is exist [07:50:35]produce_requested_data [07:50:35]requested_item fm.sn is exist - process it [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 11 00 00 [07:50:35]Write to MH i2c: E2 08 00 38 45 80 11 00 00 00 00 00 00 F7 [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 38 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 42 [07:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:50:35]wFMCommunicate OK [07:50:35]requested_item fd.num is exist - process it [07:50:35]SAM_PROTO_GetFieldsCounters [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 00 00 [07:50:35]Write to MH i2c: E2 08 00 39 45 80 13 00 00 00 00 00 00 FA [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 39 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [07:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetFieldsCounters done [07:50:35]requested_item shift.num is exist - process it [07:50:35]requested_item shift.opened is exist - process it [07:50:35]req_shift_opened [07:50:35]FM_GetShiftState [07:50:35]SAM_PROTO_GetShiftState [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 01 00 [07:50:35]Write to MH i2c: E2 08 00 3A 45 80 13 01 00 00 00 00 00 FC [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 3A 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 19 [07:50:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetShiftState done [07:50:35]FM_GetShiftState done [07:50:35]req_shift_opened done [07:50:35]requested_item shift.open_date is exist - process it [07:50:35]req_shift_open_date [07:50:35]req_shift_open_date done [07:50:35]produce_requested_data done [07:50:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49760,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [07:50:35]process_action_free close_receipt [07:50:35]json_value_free [07:50:35]json_value_free done [07:50:35]process_json_proto returns [07:50:35]Send response to host [07:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49760,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [07:50:35]free response buf [07:50:35]execute_script done [07:50:35]execute_script returns [07:50:35]free content buf [07:50:35]Sock 9.Close socket [07:50:35]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]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:36]accept exits with 7 [08:12:36]New connection [08:12:36]New thread 3066801508 created [08:12:36]Thread 3066944868 joined [08:12:36]Waiting for new connection... [08:12:36] Sock 7.Parse request [08:12:36]Sock 7.Check first char [08:12:36]Sock 7.First char is OK [08:12:36]request: POST /json_proto HTTP/1.0 [08:12:36]Method: POST [08:12:36]URL: /json_proto [08:12:36]Method is POST - this is cgi request [08:12:36]url: /json_proto [08:12:36]query_string will be loaded in cgi processing [08:12:36]execute_cgi json_proto POST (null) [08:12:36]execute_cgi path=json_proto method=POST [08:12:36]POST find Content-Length [08:12:36]Host: 172.17.46.196:8080 [08:12:36]Content-Length: 670 [08:12:36]Content-Type: application/json [08:12:36] [08:12:36]POST finish read [08:12:36]Found Content-Length = 670 [08:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189940", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:36]execute_script... [08:12:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189940", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:36]POST & json_proto [08:12:36]process_json_proto [08:12:36]json parsed OK: [08:12:36]protocol is kg_v1.0 [08:12:36]action value=close_receipt [08:12:36]process_action close_receipt [08:12:36]cmd_close_receipt [08:12:36]MH_GetDate [08:12:36]Write to MH i2c: F0 00 00 3B 45 6F [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 09 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: F0 09 00 3B 45 00 FC AC C1 66 07 E8 5D 66 F9 [08:12:36]GetLastDocTimeStamp 1723967439 [08:12:36]current date 1723968764 [08:12:36]FM_GetShiftState [08:12:36]SAM_PROTO_GetShiftState [08:12:36]wFMCommunicate request_size=4 [08:12:36]MH_SAM_APDU [08:12:36]CAPDU: 80 13 01 00 [08:12:36]Write to MH i2c: E2 08 00 3C 45 80 13 01 00 00 00 00 00 FE [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:36]Read from MH i2c: E2 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 3C 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 1B [08:12:36]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:12:36]wFMCommunicate OK [08:12:36]SAM_PROTO_GetShiftState done [08:12:36]FM_GetShiftState done [08:12:36]opened in 1723939759 [08:12:36]opened+sec_in_day 1724026159 [08:12:36]quantity*price = 9300 [08:12:36]sum+1 = 9301 [08:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 93.00 НСП 1% : 0.82 НДС 12% : 9.88 Наличными: 93.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 27 18.08.2024 08:12 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49761 ФПД: 68461496978717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49761&fm=68461496978717&tin=02508201610067®Number=0000000000092546&sum=9300 0 [08:12:38]StoreToDocumentArchive [08:12:38]shift 466 fd 49761 [08:12:38]save to /storage/0466/doc_00049761 [08:12:38]save last doc name /storage/0466/doc_00049761 to /storage/kkm_last_doc_name [08:12:38]save OK [08:12:38]Clear old archive folders... [08:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=289 [08:12:38]tlvbuf is 0184D9C0 [08:12:38]SAM_PROTO_ClearQueue [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 09 00 00 [08:12:38]Write to MH i2c: E2 08 00 49 45 80 09 00 00 00 00 00 00 00 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 49 45 00 90 00 02 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]SAM_PROTO_ClearQueue done [08:12:38]KKMCreateOFDPacket [08:12:38]OFDProtocolAddRootSTLVToBuf [08:12:38]FM_MakeSignedData [08:12:38]FM_MakeSignedData [08:12:38]SAM_PROTO_SignData [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 01 02 [08:12:38]Write to MH i2c: E2 08 00 4A 45 80 0D 01 02 00 00 00 00 08 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 4A 45 00 90 00 03 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=255 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 FC AC C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [08:12:38]Write to MH i2c: E2 02 01 4B 45 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 FC AC C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 98 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 4B 45 00 90 00 04 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=48 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 02 02 2B 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C2 00 00 35 04 06 00 3E 43 EF 35 4D 1D [08:12:38]Write to MH i2c: E2 33 00 4C 45 80 0D 02 02 2B 00 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C2 00 00 35 04 06 00 3E 43 EF 35 4D 1D 00 00 31 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 03 00 4C 45 00 90 00 05 [08:12:38]RAPDU: 90 00 [08:12:38]wFMCommunicate OK [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 0D 03 02 [08:12:38]Write to MH i2c: E2 08 00 4D 45 80 0D 03 02 00 00 00 00 0D [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0B 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 0B 00 4D 45 00 4B AA B7 DA EA 25 F4 E4 90 00 7B [08:12:38]RAPDU: 4B AA B7 DA EA 25 F4 E4 90 00 [08:12:38]wFMCommunicate OK [08:12:38]SAM_PROTO_SignData done [08:12:38]FM_MakeSignedData done [08:12:38]CreateOFDProtocolMessage [08:12:38]wFMCommunicate request_size=4 [08:12:38]MH_SAM_APDU [08:12:38]CAPDU: 80 11 00 00 [08:12:38]Write to MH i2c: E2 08 00 4E 45 80 11 00 00 00 00 00 00 0D [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:38]Read from MH i2c: E2 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: E2 17 00 4E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [08:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:12:38]wFMCommunicate OK [08:12:38]CreateOFDProtocolMessage done [08:12:38]OFDSenderStorePacket 49761 [08:12:38]StoreOFDPacket docnum=49761 [08:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 01 00 00 49 D9 2D 01 BE 11 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 FC AC C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C2 00 00 35 04 06 00 3E 43 EF 35 4D 1D 4B AA B7 DA EA 25 F4 E4 [08:12:38]CheckFolder [08:12:38]dirname=/storage/ofd_packets [08:12:38]CheckFolder done [08:12:38]ProducePacketName [08:12:38]name=ofd_packets/00049761 [08:12:38]NVStorageSaveData ofd_packets/00049761 [08:12:38]File name is /storage/ofd_packets/00049761 [08:12:38]Write 339 bytes [08:12:38]NVStorageSaveData done [08:12:38]OFDSenderStorePacket done [08:12:38]KKMCreateOFDPacket done [08:12:38]NVStorageSaveData kkm_last_timestamp [08:12:38]File name is /storage/kkm_last_timestamp [08:12:38]Write 4 bytes [08:12:38]NVStorageSaveData done [08:12:38]ExternCall_PrintAddStr [08:12:38]wPrintStart [08:12:38]Write to MH i2c: 01 00 00 4F 45 94 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 4F 45 00 00 00 00 00 FF 0F A9 [08:12:38]RasterBufferAndPrint [08:12:38]line Счет N : (3)189940 [08:12:38]line ИНН: 02508201610067 [08:12:38]line Контрольно-Кассовый Чек [08:12:38]line ПРОДАЖА [08:12:38]line Товар: 4603290004862 [08:12:38]line Печ.сах.FORSITE Сэнд.шок-ор.вк [08:12:38]line 1.000 * 93.00 [08:12:38]line = 93.00 [08:12:38]line НДС 12% НСП 1% [08:12:38]line > о реализуемом товаре [08:12:38]line ИТОГО: 93.00 [08:12:38]line НСП 1% : 0.82 [08:12:38]line НДС 12% : 9.88 [08:12:38]line Наличными: 93.00 [08:12:38]line Безнал.: 0.00 [08:12:38]line Место: АЗС № 95 "Партнер Нефть" [08:12:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:12:38]line СНО: Общий режим [08:12:38]line Чек 27 18.08.2024 08:12 [08:12:38]line Смена: 466 ФФД: 1.0 [08:12:38]line ЗНМ: 0300000078 [08:12:38]line РНМ: 0000000000092546 [08:12:38]line Версия ККМ: 001 [08:12:38]line ФМ: 0000000000871800 [08:12:38]line ФД: 49761 [08:12:38]line ФПД: 68461496978717 [08:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081244&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49761&fm=68461496978717&tin=02508201610067®Number=0000000000092546&sum=9300 [08:12:38]line 0 [08:12:38]written 0, free lines is 4095 [08:12:38]OFD Sender: Processing packet 49761 [packets to send 21, broken 20] [08:12:38]ProducePacketName [08:12:38]name=ofd_packets/00049761 [08:12:38]OFD Sender: To server: pG, [08:12:38]CommunicateWithHost lk.salyk.kg:30040 [08:12:38]ConnectInit lk.salyk.kg [08:12:39]Connected sock=10 [08:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 01 00 00 49 D9 2D 01 BE 11 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 FC AC C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C2 00 00 35 04 06 00 3E 43 EF 35 4D 1D 4B AA B7 DA EA 25 F4 E4 [08:12:39]Write to MH i2c: 01 00 00 78 45 BD [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 07 00 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: 01 07 00 78 45 00 00 00 00 00 C8 0C 98 [08:12:39]RasterBufferAndPrint [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]line [08:12:39]written 0, free lines is 3278 [08:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 49 31 47 00 C5 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 38 30 30 10 04 04 00 61 C2 00 00 F4 03 04 00 36 58 C1 66 B6 04 01 00 00 20 B0 BC 76 68 27 80 22 [08:12:39]CommunicateWithHost err = 0 [08:12:39]CheckOFDResponse [08:12:39]1017 (14) - 77093643461234 [08:12:39]1041 (16) - 0000000000871800 [08:12:39]1040 (4) - 49761 [08:12:39]1012 (4) - 18.08.2024 02:11 [08:12:39]1206 (1) - 0 [08:12:39]OFD Sender: Remove packet 49761 [08:12:39]ProducePacketName [08:12:39]name=ofd_packets/00049761 [08:12:39]NVStorageDeleteData [08:12:39]MH_Cut [08:12:39]Write to MH i2c: D1 01 00 7F 45 01 96 [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 01 00 [08:12:39]MH_I2C_Read... [08:12:39]Read from MH i2c: D1 01 00 7F 45 00 95 [08:12:39]Write to MH i2c: 01 00 00 80 45 C5 [08:12:39]Write i2c OK [08:12:39]MH_I2C_Read... [08:12:39]OFD Sender: No OFD packet to send [08:12:40]*** Cut start [08:12:40]*** Purtial cut [08:12:40]*** CUTSNS_PIN = 0 [08:12:40]*** Stage 1: CUTSNS_PIN = 1 [08:12:42]Read from MH i2c: 01 [08:12:42]MH_I2C_Read... [08:12:42]*** Stop cut motor [08:12:42]*** Cut end [08:12:42]Read from MH i2c: 01 07 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: 01 07 00 80 45 00 00 00 00 00 FF 0F DA [08:12:42]process_action close_receipt done [08:12:42]requested_data is exist [08:12:42]produce_requested_data [08:12:42]requested_item fm.sn is exist - process it [08:12:42]wFMCommunicate request_size=4 [08:12:42]MH_SAM_APDU [08:12:42]CAPDU: 80 11 00 00 [08:12:42]Write to MH i2c: E2 08 00 81 45 80 11 00 00 00 00 00 00 40 [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:42]Read from MH i2c: E2 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 17 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 17 00 81 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [08:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:12:42]wFMCommunicate OK [08:12:42]requested_item fd.num is exist - process it [08:12:42]SAM_PROTO_GetFieldsCounters [08:12:42]wFMCommunicate request_size=4 [08:12:42]MH_SAM_APDU [08:12:42]CAPDU: 80 13 00 00 [08:12:42]Write to MH i2c: E2 08 00 82 45 80 13 00 00 00 00 00 00 43 [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:42]Read from MH i2c: E2 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 62 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 62 00 82 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [08:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:42]wFMCommunicate OK [08:12:42]SAM_PROTO_GetFieldsCounters done [08:12:42]requested_item shift.num is exist - process it [08:12:42]requested_item shift.opened is exist - process it [08:12:42]req_shift_opened [08:12:42]FM_GetShiftState [08:12:42]SAM_PROTO_GetShiftState [08:12:42]wFMCommunicate request_size=4 [08:12:42]MH_SAM_APDU [08:12:42]CAPDU: 80 13 01 00 [08:12:42]Write to MH i2c: E2 08 00 83 45 80 13 01 00 00 00 00 00 45 [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:42]Read from MH i2c: E2 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 83 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 62 [08:12:42]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:12:42]wFMCommunicate OK [08:12:42]SAM_PROTO_GetShiftState done [08:12:42]FM_GetShiftState done [08:12:42]req_shift_opened done [08:12:42]requested_item shift.open_date is exist - process it [08:12:42]req_shift_open_date [08:12:42]req_shift_open_date done [08:12:42]produce_requested_data done [08:12:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49761,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:12:42]process_action_free close_receipt [08:12:42]json_value_free [08:12:42]json_value_free done [08:12:42]process_json_proto returns [08:12:42]Send response to host [08:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49761,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:12:42]free response buf [08:12:42]execute_script done [08:12:42]execute_script returns [08:12:42]free content buf [08:12:42]Sock 7.Close socket [08:12:42]Sock 7.Thread stoped [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:07]accept exits with 9 [08:29:07]New connection [08:29:07]New thread 3066944868 created [08:29:07]Thread 3066801508 joined [08:29:07]Waiting for new connection... [08:29:07] Sock 9.Parse request [08:29:07]Sock 9.Check first char [08:29:07]Sock 9.First char is OK [08:29:07]request: POST /json_proto HTTP/1.0 [08:29:07]Method: POST [08:29:07]URL: /json_proto [08:29:07]Method is POST - this is cgi request [08:29:07]url: /json_proto [08:29:07]query_string will be loaded in cgi processing [08:29:07]execute_cgi json_proto POST (null) [08:29:07]execute_cgi path=json_proto method=POST [08:29:07]POST find Content-Length [08:29:07]Host: 172.17.46.196:8080 [08:29:07]Content-Length: 796 [08:29:07]Content-Type: application/json [08:29:07] [08:29:07]POST finish read [08:29:07]Found Content-Length = 796 [08:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189941", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:07]execute_script... [08:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189941", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:07]POST & json_proto [08:29:07]process_json_proto [08:29:07]json parsed OK: [08:29:07]protocol is kg_v1.0 [08:29:07]action value=close_receipt [08:29:07]process_action close_receipt [08:29:07]cmd_close_receipt [08:29:07]MH_GetDate [08:29:07]Write to MH i2c: F0 00 00 84 45 B8 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 09 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: F0 09 00 84 45 00 DB B0 C1 66 07 E8 5D 66 25 [08:29:07]GetLastDocTimeStamp 1723968764 [08:29:07]current date 1723969755 [08:29:07]FM_GetShiftState [08:29:07]SAM_PROTO_GetShiftState [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 13 01 00 [08:29:07]Write to MH i2c: E2 08 00 85 45 80 13 01 00 00 00 00 00 47 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 85 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 64 [08:29:07]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_GetShiftState done [08:29:07]FM_GetShiftState done [08:29:07]opened in 1723939759 [08:29:07]opened+sec_in_day 1724026159 [08:29:07]quantity*price = 14000 [08:29:07]sum+1 = 14001 [08:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 28 18.08.2024 08:29 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49762 ФПД: 92953020194894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082915&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49762&fm=92953020194894&tin=02508201610067®Number=0000000000092546&sum=14000 0 [08:29:08]StoreToDocumentArchive [08:29:08]shift 466 fd 49762 [08:29:08]save to /storage/0466/doc_00049762 [08:29:08]save last doc name /storage/0466/doc_00049762 to /storage/kkm_last_doc_name [08:29:08]save OK [08:29:08]Clear old archive folders... [08:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:29:08]tlvbuf is 0184D5D0 [08:29:08]SAM_PROTO_ClearQueue [08:29:08]wFMCommunicate request_size=4 [08:29:08]MH_SAM_APDU [08:29:08]CAPDU: 80 09 00 00 [08:29:08]Write to MH i2c: E2 08 00 92 45 80 09 00 00 00 00 00 00 49 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:08]Read from MH i2c: E2 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 03 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 03 00 92 45 00 90 00 4B [08:29:08]RAPDU: 90 00 [08:29:08]wFMCommunicate OK [08:29:08]SAM_PROTO_ClearQueue done [08:29:08]KKMCreateOFDPacket [08:29:08]OFDProtocolAddRootSTLVToBuf [08:29:08]FM_MakeSignedData [08:29:08]FM_MakeSignedData [08:29:08]SAM_PROTO_SignData [08:29:08]wFMCommunicate request_size=4 [08:29:08]MH_SAM_APDU [08:29:08]CAPDU: 80 0D 01 02 [08:29:08]Write to MH i2c: E2 08 00 93 45 80 0D 01 02 00 00 00 00 51 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 93 45 00 90 00 4C [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=255 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DB B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:29:09]Write to MH i2c: E2 02 01 94 45 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DB B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 77 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 94 45 00 90 00 4D [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=30 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 62 C2 00 00 35 04 06 00 54 8A 4F BF E0 4E [08:29:09]Write to MH i2c: E2 21 00 95 45 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 62 C2 00 00 35 04 06 00 54 8A 4F BF E0 4E 00 00 83 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 03 00 95 45 00 90 00 4E [08:29:09]RAPDU: 90 00 [08:29:09]wFMCommunicate OK [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 0D 03 02 [08:29:09]Write to MH i2c: E2 08 00 96 45 80 0D 03 02 00 00 00 00 56 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0B 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0B 00 96 45 00 71 43 ED 41 29 85 22 07 90 00 10 [08:29:09]RAPDU: 71 43 ED 41 29 85 22 07 90 00 [08:29:09]wFMCommunicate OK [08:29:09]SAM_PROTO_SignData done [08:29:09]FM_MakeSignedData done [08:29:09]CreateOFDProtocolMessage [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 11 00 00 [08:29:09]Write to MH i2c: E2 08 00 97 45 80 11 00 00 00 00 00 00 56 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 17 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 17 00 97 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [08:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:09]wFMCommunicate OK [08:29:09]CreateOFDProtocolMessage done [08:29:09]OFDSenderStorePacket 49762 [08:29:09]StoreOFDPacket docnum=49762 [08:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 A6 97 1B 01 88 9B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DB B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C2 00 00 35 04 06 00 54 8A 4F BF E0 4E 71 43 ED 41 29 85 22 07 [08:29:09]CheckFolder [08:29:09]dirname=/storage/ofd_packets [08:29:09]CheckFolder done [08:29:09]ProducePacketName [08:29:09]name=ofd_packets/00049762 [08:29:09]NVStorageSaveData ofd_packets/00049762 [08:29:09]File name is /storage/ofd_packets/00049762 [08:29:09]Write 321 bytes [08:29:09]NVStorageSaveData done [08:29:09]OFDSenderStorePacket done [08:29:09]KKMCreateOFDPacket done [08:29:09]NVStorageSaveData kkm_last_timestamp [08:29:09]File name is /storage/kkm_last_timestamp [08:29:09]Write 4 bytes [08:29:09]NVStorageSaveData done [08:29:09]ExternCall_PrintAddStr [08:29:09]wPrintStart [08:29:09]Write to MH i2c: 01 00 00 98 45 DD [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 07 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 07 00 98 45 00 00 00 00 00 FF 0F F2 [08:29:09]RasterBufferAndPrint [08:29:09]line Счет N : (3)189941 [08:29:09]line ИНН: 02508201610067 [08:29:09]line Контрольно-Кассовый Чек [08:29:09]line ПРОДАЖА [08:29:09]line Товар: 47802995 [08:29:09]line Сигареты Winston XS Silver [08:29:09]line 1.000 * 140.00 [08:29:09]line = 140.00 [08:29:09]line НДС 12% НСП 1% [08:29:09]line > о реализуемом товаре [08:29:09]line ИТОГО: 140.00 [08:29:09]line НСП 1% : 1.24 [08:29:09]line НДС 12% : 14.87 [08:29:09]line Наличными: 0.00 [08:29:09]line Безнал.: 140.00 [08:29:09]line Место: АЗС № 95 "Партнер Нефть" [08:29:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:29:09]line СНО: Общий режим [08:29:09]line Чек 28 18.08.2024 08:29 [08:29:09]line Смена: 466 ФФД: 1.0 [08:29:09]line ЗНМ: 0300000078 [08:29:09]line РНМ: 0000000000092546 [08:29:09]line Версия ККМ: 001 [08:29:09]line Платежная система: Бакай Банк [08:29:09]line ФМ: 0000000000871800 [08:29:09]line ФД: 49762 [08:29:09]line ФПД: 92953020194894 [08:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082915&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49762&fm=92953020194894&tin=02508201610067®Number=0000000000092546&sum=14000 [08:29:09]OFD Sender: Processing packet 49762 [packets to send 21, broken 20] [08:29:09]ProducePacketName [08:29:09]name=ofd_packets/00049762 [08:29:09]OFD Sender: To server: pG, [08:29:09]CommunicateWithHost lk.salyk.kg:30040 [08:29:09]ConnectInit lk.salyk.kg [08:29:09]line 0 [08:29:09]written 0, free lines is 4095 [08:29:10]Connected sock=10 [08:29:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 A6 97 1B 01 88 9B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DB B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C2 00 00 35 04 06 00 54 8A 4F BF E0 4E 71 43 ED 41 29 85 22 07 [08:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5E 64 47 00 B1 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C2 00 00 F4 03 04 00 15 5C C1 66 B6 04 01 00 00 64 2F F4 A5 87 FF B7 D4 [08:29:10]CommunicateWithHost err = 0 [08:29:10]CheckOFDResponse [08:29:10]1017 (14) - 77093643461234 [08:29:10]1041 (16) - 0000000000871800 [08:29:10]1040 (4) - 49762 [08:29:10]1012 (4) - 18.08.2024 02:27 [08:29:10]1206 (1) - 0 [08:29:10]OFD Sender: Remove packet 49762 [08:29:10]ProducePacketName [08:29:10]name=ofd_packets/00049762 [08:29:10]NVStorageDeleteData [08:29:10]Write to MH i2c: 01 00 00 C2 45 07 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 07 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: 01 07 00 C2 45 00 00 00 00 00 EC 0C 06 [08:29:10]RasterBufferAndPrint [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]line [08:29:10]written 0, free lines is 3315 [08:29:10]MH_Cut [08:29:10]Write to MH i2c: D1 01 00 C9 45 01 E0 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 01 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: D1 01 00 C9 45 00 DF [08:29:10]Write to MH i2c: 01 00 00 CA 45 0F [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]OFD Sender: No OFD packet to send [08:29:11]*** Cut start [08:29:11]*** Purtial cut [08:29:11]*** Stage 1: CUTSNS_PIN = 1 [08:29:11]Read from MH i2c: 01 [08:29:11]MH_I2C_Read... [08:29:11]*** Stop cut motor [08:29:11]*** Cut end [08:29:11]Read from MH i2c: 01 07 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: 01 07 00 CA 45 00 00 00 00 00 FF 0F 24 [08:29:11]process_action close_receipt done [08:29:11]requested_data is exist [08:29:11]produce_requested_data [08:29:11]requested_item fm.sn is exist - process it [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 11 00 00 [08:29:11]Write to MH i2c: E2 08 00 CB 45 80 11 00 00 00 00 00 00 8A [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 17 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 17 00 CB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [08:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:11]wFMCommunicate OK [08:29:11]requested_item fd.num is exist - process it [08:29:11]SAM_PROTO_GetFieldsCounters [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 13 00 00 [08:29:11]Write to MH i2c: E2 08 00 CC 45 80 13 00 00 00 00 00 00 8D [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 62 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 62 00 CC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [08: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:11]wFMCommunicate OK [08:29:11]SAM_PROTO_GetFieldsCounters done [08:29:11]requested_item shift.num is exist - process it [08:29:11]requested_item shift.opened is exist - process it [08:29:11]req_shift_opened [08:29:11]FM_GetShiftState [08:29:11]SAM_PROTO_GetShiftState [08:29:11]wFMCommunicate request_size=4 [08:29:11]MH_SAM_APDU [08:29:11]CAPDU: 80 13 01 00 [08:29:11]Write to MH i2c: E2 08 00 CD 45 80 13 01 00 00 00 00 00 8F [08:29:11]Write i2c OK [08:29:11]MH_I2C_Read... [08:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:11]Read from MH i2c: E2 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 0E 00 [08:29:11]MH_I2C_Read... [08:29:11]Read from MH i2c: E2 0E 00 CD 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AC [08:29:11]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:29:11]wFMCommunicate OK [08:29:11]SAM_PROTO_GetShiftState done [08:29:11]FM_GetShiftState done [08:29:11]req_shift_opened done [08:29:11]requested_item shift.open_date is exist - process it [08:29:11]req_shift_open_date [08:29:11]req_shift_open_date done [08:29:11]produce_requested_data done [08:29:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49762,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:29:11]process_action_free close_receipt [08:29:11]json_value_free [08:29:11]json_value_free done [08:29:11]process_json_proto returns [08:29:11]Send response to host [08:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49762,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:29:11]free response buf [08:29:11]execute_script done [08:29:11]execute_script returns [08:29:11]free content buf [08:29:11]Sock 9.Close socket [08:29:11]Sock 9.Thread stoped [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]accept exits with 7 [08:29:35]New connection [08:29:35]New thread 3066801508 created [08:29:35]Thread 3066944868 joined [08:29:35]Waiting for new connection... [08:29:35] Sock 7.Parse request [08:29:35]Sock 7.Check first char [08:29:35]Sock 7.First char is OK [08:29:35]request: POST /json_proto HTTP/1.0 [08:29:35]Method: POST [08:29:35]URL: /json_proto [08:29:35]Method is POST - this is cgi request [08:29:35]url: /json_proto [08:29:35]query_string will be loaded in cgi processing [08:29:35]execute_cgi json_proto POST (null) [08:29:35]execute_cgi path=json_proto method=POST [08:29:35]POST find Content-Length [08:29:35]Host: 172.17.46.196:8080 [08:29:35]Content-Length: 700 [08:29:35]Content-Type: application/json [08:29:35] [08:29:35]POST finish read [08:29:35]Found Content-Length = 700 [08:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189942", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:35]execute_script... [08:29:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189942", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:35]POST & json_proto [08:29:35]process_json_proto [08:29:35]json parsed OK: [08:29:35]protocol is kg_v1.0 [08:29:35]action value=close_receipt [08:29:35]process_action close_receipt [08:29:35]cmd_close_receipt [08:29:35]MH_GetDate [08:29:35]Write to MH i2c: F0 00 00 CE 45 02 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: F0 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: F0 09 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: F0 09 00 CE 45 00 F7 B0 C1 66 07 E8 5D 66 8B [08:29:35]GetLastDocTimeStamp 1723969755 [08:29:35]current date 1723969783 [08:29:35]FM_GetShiftState [08:29:35]SAM_PROTO_GetShiftState [08:29:35]wFMCommunicate request_size=4 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 13 01 00 [08:29:35]Write to MH i2c: E2 08 00 CF 45 80 13 01 00 00 00 00 00 91 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0E 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0E 00 CF 45 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AE [08:29:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:29:35]wFMCommunicate OK [08:29:35]SAM_PROTO_GetShiftState done [08:29:35]FM_GetShiftState done [08:29:35]opened in 1723939759 [08:29:35]opened+sec_in_day 1724026159 [08:29:35]quantity*price = 8500 [08:29:35]sum+1 = 8501 [08:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 29 18.08.2024 08:29 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49763 ФПД: 166315525876506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082943&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49763&fm=166315525876506&tin=02508201610067®Number=0000000000092546&sum=8500 0 [08:29:36]StoreToDocumentArchive [08:29:36]shift 466 fd 49763 [08:29:36]save to /storage/0466/doc_00049763 [08:29:36]save last doc name /storage/0466/doc_00049763 to /storage/kkm_last_doc_name [08:29:36]save OK [08:29:36]Clear old archive folders... [08:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=303 [08:29:36]tlvbuf is 01862670 [08:29:36]SAM_PROTO_ClearQueue [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 09 00 00 [08:29:36]Write to MH i2c: E2 08 00 DC 45 80 09 00 00 00 00 00 00 93 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 03 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 03 00 DC 45 00 90 00 95 [08:29:36]RAPDU: 90 00 [08:29:36]wFMCommunicate OK [08:29:36]SAM_PROTO_ClearQueue done [08:29:36]KKMCreateOFDPacket [08:29:36]OFDProtocolAddRootSTLVToBuf [08:29:36]FM_MakeSignedData [08:29:36]FM_MakeSignedData [08:29:36]SAM_PROTO_SignData [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 0D 01 02 [08:29:36]Write to MH i2c: E2 08 00 DD 45 80 0D 01 02 00 00 00 00 9B [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 DD 45 00 90 00 96 [08:29:37]RAPDU: 90 00 [08:29:37]wFMCommunicate OK [08:29:37]wFMCommunicate request_size=255 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F7 B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D [08:29:37]Write to MH i2c: E2 02 01 DE 45 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F7 B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 00 00 AC [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 DE 45 00 90 00 97 [08:29:37]RAPDU: 90 00 [08:29:37]wFMCommunicate OK [08:29:37]wFMCommunicate request_size=62 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C2 00 00 35 04 06 00 97 43 59 D7 2B 1A [08:29:37]Write to MH i2c: E2 41 00 DF 45 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C2 00 00 35 04 06 00 97 43 59 D7 2B 1A 00 00 46 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 03 00 DF 45 00 90 00 98 [08:29:37]RAPDU: 90 00 [08:29:37]wFMCommunicate OK [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 0D 03 02 [08:29:37]Write to MH i2c: E2 08 00 E0 45 80 0D 03 02 00 00 00 00 A0 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 0B 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 0B 00 E0 45 00 B6 60 86 F0 54 BA B6 C1 90 00 B2 [08:29:37]RAPDU: B6 60 86 F0 54 BA B6 C1 90 00 [08:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_SignData done [08:29:37]FM_MakeSignedData done [08:29:37]CreateOFDProtocolMessage [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 11 00 00 [08:29:37]Write to MH i2c: E2 08 00 E1 45 80 11 00 00 00 00 00 00 A0 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 E1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EB [08:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:37]wFMCommunicate OK [08:29:37]CreateOFDProtocolMessage done [08:29:37]OFDSenderStorePacket 49763 [08:29:37]StoreOFDPacket docnum=49763 [08:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 43 01 00 00 A9 3E 3B 01 57 DA 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F7 B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C2 00 00 35 04 06 00 97 43 59 D7 2B 1A B6 60 86 F0 54 BA B6 C1 [08:29:37]CheckFolder [08:29:37]dirname=/storage/ofd_packets [08:29:37]CheckFolder done [08:29:37]ProducePacketName [08:29:37]name=ofd_packets/00049763 [08:29:37]NVStorageSaveData ofd_packets/00049763 [08:29:37]File name is /storage/ofd_packets/00049763 [08:29:37]Write 353 bytes [08:29:37]NVStorageSaveData done [08:29:37]OFDSenderStorePacket done [08:29:37]KKMCreateOFDPacket done [08:29:37]NVStorageSaveData kkm_last_timestamp [08:29:37]File name is /storage/kkm_last_timestamp [08:29:37]Write 4 bytes [08:29:37]NVStorageSaveData done [08:29:37]ExternCall_PrintAddStr [08:29:37]wPrintStart [08:29:37]Write to MH i2c: 01 00 00 E2 45 27 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: 01 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: 01 07 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: 01 07 00 E2 45 00 00 00 00 00 FF 0F 3C [08:29:37]RasterBufferAndPrint [08:29:37]line Счет N : (3)189942 [08:29:37]line ИНН: 02508201610067 [08:29:37]line Контрольно-Кассовый Чек [08:29:37]line ПРОДАЖА [08:29:37]line Товар: 4600682035466 [08:29:37]line Напиток безалк. Flash Up Экзотик 0,45 ж/ [08:29:37]line 1.000 * 85.00 [08:29:37]line = 85.00 [08:29:37]line НДС 12% НСП 1% [08:29:37]line > о реализуемом товаре [08:29:37]line ИТОГО: 85.00 [08:29:37]line НСП 1% : 0.75 [08:29:37]line НДС 12% : 9.03 [08:29:37]line Наличными: 85.00 [08:29:37]line Безнал.: 0.00 [08:29:37]line Место: АЗС № 95 "Партнер Нефть" [08:29:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:29:37]line СНО: Общий режим [08:29:37]line Чек 29 18.08.2024 08:29 [08:29:37]line Смена: 466 ФФД: 1.0 [08:29:37]line ЗНМ: 0300000078 [08:29:37]line РНМ: 0000000000092546 [08:29:37]line Версия ККМ: 001 [08:29:37]line ФМ: 0000000000871800 [08:29:37]line ФД: 49763 [08:29:37]line ФПД: 166315525876506 [08:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082943&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49763&fm=166315525876506&tin=02508201610067®Number=0000000000092546&sum=8500 [08:29:37]line 0 [08:29:37]OFD Sender: Processing packet 49763 [packets to send 21, broken 20] [08:29:37]ProducePacketName [08:29:37]name=ofd_packets/00049763 [08:29:37]OFD Sender: To server: pG, [08:29:37]CommunicateWithHost lk.salyk.kg:30040 [08:29:37]ConnectInit lk.salyk.kg [08:29:37]written 0, free lines is 4095 [08:29:37]Connected sock=9 [08:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 43 01 00 00 A9 3E 3B 01 57 DA 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F7 B0 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C2 00 00 35 04 06 00 97 43 59 D7 2B 1A B6 60 86 F0 54 BA B6 C1 [08:29:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 46 20 47 00 E2 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 38 30 30 10 04 04 00 63 C2 00 00 F4 03 04 00 31 5C C1 66 B6 04 01 00 00 E5 63 B7 8A 40 15 7E 6F [08:29:38]CommunicateWithHost err = 0 [08:29:38]CheckOFDResponse [08:29:38]1017 (14) - 77093643461234 [08:29:38]1041 (16) - 0000000000871800 [08:29:38]1040 (4) - 49763 [08:29:38]1012 (4) - 18.08.2024 02:28 [08:29:38]1206 (1) - 0 [08:29:38]OFD Sender: Remove packet 49763 [08:29:38]ProducePacketName [08:29:38]name=ofd_packets/00049763 [08:29:38]NVStorageDeleteData [08:29:38]Write to MH i2c: 01 00 00 0B 46 51 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 07 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: 01 07 00 0B 46 00 00 00 00 00 E5 0C 49 [08:29:38]RasterBufferAndPrint [08:29:38]line [08:29:38]line [08:29:38]line [08:29:38]line [08:29:38]line [08:29:38]written 0, free lines is 3309 [08:29:38]MH_Cut [08:29:38]Write to MH i2c: D1 01 00 12 46 01 2A [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: D1 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: D1 01 00 [08:29:38]MH_I2C_Read... [08:29:38]Read from MH i2c: D1 01 00 12 46 00 29 [08:29:38]Write to MH i2c: 01 00 00 13 46 59 [08:29:38]Write i2c OK [08:29:38]MH_I2C_Read... [08:29:38]OFD Sender: No OFD packet to send [08:29:39]*** Cut start [08:29:39]*** Purtial cut [08:29:39]*** CUTSNS_PIN = 0 [08:29:39]*** Stage 1: CUTSNS_PIN = 1 [08:29:41]Read from MH i2c: 01 [08:29:41]MH_I2C_Read... [08:29:41]*** Stop cut motor [08:29:41]*** Cut end [08:29:41]Read from MH i2c: 01 07 00 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: 01 07 00 13 46 00 00 00 00 00 FF 0F 6E [08:29:41]process_action close_receipt done [08:29:41]requested_data is exist [08:29:41]produce_requested_data [08:29:41]requested_item fm.sn is exist - process it [08:29:41]wFMCommunicate request_size=4 [08:29:41]MH_SAM_APDU [08:29:41]CAPDU: 80 11 00 00 [08:29:41]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [08:29:41]Write i2c OK [08:29:41]MH_I2C_Read... [08:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:41]Read from MH i2c: E2 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 17 00 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [08:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:41]wFMCommunicate OK [08:29:41]requested_item fd.num is exist - process it [08:29:41]SAM_PROTO_GetFieldsCounters [08:29:41]wFMCommunicate request_size=4 [08:29:41]MH_SAM_APDU [08:29:41]CAPDU: 80 13 00 00 [08:29:41]Write to MH i2c: E2 08 00 15 46 80 13 00 00 00 00 00 00 D7 [08:29:41]Write i2c OK [08:29:41]MH_I2C_Read... [08:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:41]Read from MH i2c: E2 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 62 00 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 62 00 15 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [08:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:41]wFMCommunicate OK [08:29:41]SAM_PROTO_GetFieldsCounters done [08:29:41]requested_item shift.num is exist - process it [08:29:41]requested_item shift.opened is exist - process it [08:29:41]req_shift_opened [08:29:41]FM_GetShiftState [08:29:41]SAM_PROTO_GetShiftState [08:29:41]wFMCommunicate request_size=4 [08:29:41]MH_SAM_APDU [08:29:41]CAPDU: 80 13 01 00 [08:29:41]Write to MH i2c: E2 08 00 16 46 80 13 01 00 00 00 00 00 D9 [08:29:41]Write i2c OK [08:29:41]MH_I2C_Read... [08:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:41]Read from MH i2c: E2 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 0E 00 [08:29:41]MH_I2C_Read... [08:29:41]Read from MH i2c: E2 0E 00 16 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F6 [08:29:41]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:29:41]wFMCommunicate OK [08:29:41]SAM_PROTO_GetShiftState done [08:29:41]FM_GetShiftState done [08:29:41]req_shift_opened done [08:29:41]requested_item shift.open_date is exist - process it [08:29:41]req_shift_open_date [08:29:41]req_shift_open_date done [08:29:41]produce_requested_data done [08:29:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49763,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:29:41]process_action_free close_receipt [08:29:41]json_value_free [08:29:41]json_value_free done [08:29:41]process_json_proto returns [08:29:41]Send response to host [08:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49763,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:29:41]free response buf [08:29:41]execute_script done [08:29:41]execute_script returns [08:29:41]free content buf [08:29:41]Sock 7.Close socket [08:29:41]Sock 7.Thread stoped [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:02]accept exits with 10 [08:32:02]New connection [08:32:02]New thread 3066944868 created [08:32:02]Thread 3066801508 joined [08:32:02]Waiting for new connection... [08:32:02] Sock 10.Parse request [08:32:02]Sock 10.Check first char [08:32:02]Sock 10.First char is OK [08:32:02]request: POST /json_proto HTTP/1.0 [08:32:02]Method: POST [08:32:02]URL: /json_proto [08:32:02]Method is POST - this is cgi request [08:32:02]url: /json_proto [08:32:02]query_string will be loaded in cgi processing [08:32:02]execute_cgi json_proto POST (null) [08:32:02]execute_cgi path=json_proto method=POST [08:32:02]POST find Content-Length [08:32:02]Host: 172.17.46.196:8080 [08:32:02]Content-Length: 914 [08:32:02]Content-Type: application/json [08:32:02] [08:32:02]POST finish read [08:32:02]Found Content-Length = 914 [08:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189943", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:02]execute_script... [08: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 : (3)189943", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:02]POST & json_proto [08:32:02]process_json_proto [08:32:02]json parsed OK: [08:32:02]protocol is kg_v1.0 [08:32:02]action value=close_receipt [08:32:02]process_action close_receipt [08:32:02]cmd_close_receipt [08:32:02]MH_GetDate [08:32:02]Write to MH i2c: F0 00 00 17 46 4C [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 09 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 09 00 17 46 00 8A B1 C1 66 07 E8 5D 66 69 [08:32:02]GetLastDocTimeStamp 1723969783 [08:32:02]current date 1723969930 [08:32:02]FM_GetShiftState [08:32:02]SAM_PROTO_GetShiftState [08:32:02]wFMCommunicate request_size=4 [08:32:02]MH_SAM_APDU [08:32:02]CAPDU: 80 13 01 00 [08:32:02]Write to MH i2c: E2 08 00 18 46 80 13 01 00 00 00 00 00 DB [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:02]Read from MH i2c: E2 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 18 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F8 [08:32:02]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:32:02]wFMCommunicate OK [08:32:02]SAM_PROTO_GetShiftState done [08:32:02]FM_GetShiftState done [08:32:02]opened in 1723939759 [08:32:02]opened+sec_in_day 1724026159 [08:32:02]quantity*price = 25000 [08:32:02]sum+1 = 25001 [08:32:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 30 18.08.2024 08:32 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49764 ФПД: 68750549576737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083210&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49764&fm=68750549576737&tin=02508201610067®Number=0000000000092546&sum=51000 0 [08:32:03]StoreToDocumentArchive [08:32:03]shift 466 fd 49764 [08:32:03]save to /storage/0466/doc_00049764 [08:32:03]save last doc name /storage/0466/doc_00049764 to /storage/kkm_last_doc_name [08:32:03]save OK [08:32:03]Clear old archive folders... [08:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=396 [08:32:03]tlvbuf is 018982D0 [08:32:03]SAM_PROTO_ClearQueue [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 09 00 00 [08:32:03]Write to MH i2c: E2 08 00 25 46 80 09 00 00 00 00 00 00 DD [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 25 46 00 90 00 DF [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]SAM_PROTO_ClearQueue done [08:32:03]KKMCreateOFDPacket [08:32:03]OFDProtocolAddRootSTLVToBuf [08:32:03]FM_MakeSignedData [08:32:03]FM_MakeSignedData [08:32:03]SAM_PROTO_SignData [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 01 02 [08:32:03]Write to MH i2c: E2 08 00 26 46 80 0D 01 02 00 00 00 00 E5 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 26 46 00 90 00 E0 [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=255 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF [08:32:03]Write to MH i2c: E2 02 01 27 46 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 00 00 D0 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 27 46 00 90 00 E1 [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=155 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8A B1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C2 00 00 35 04 06 00 3E 87 3C 15 EC 21 [08:32:03]Write to MH i2c: E2 9E 00 28 46 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8A B1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C2 00 00 35 04 06 00 3E 87 3C 15 EC 21 00 00 E3 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 28 46 00 90 00 E2 [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 03 02 [08:32:03]Write to MH i2c: E2 08 00 29 46 80 0D 03 02 00 00 00 00 EA [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]OFD Sender: No OFD packet to send [08:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0B 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0B 00 29 46 00 64 86 22 D1 DD F5 4B 76 90 00 5B [08:32:03]RAPDU: 64 86 22 D1 DD F5 4B 76 90 00 [08:32:03]wFMCommunicate OK [08:32:03]SAM_PROTO_SignData done [08:32:03]FM_MakeSignedData done [08:32:03]CreateOFDProtocolMessage [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 11 00 00 [08:32:03]Write to MH i2c: E2 08 00 2A 46 80 11 00 00 00 00 00 00 EA [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 17 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 17 00 2A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [08:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:32:03]wFMCommunicate OK [08:32:03]CreateOFDProtocolMessage done [08:32:03]OFDSenderStorePacket 49764 [08:32:03]StoreOFDPacket docnum=49764 [08:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 1B A9 98 01 64 B8 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8A B1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C2 00 00 35 04 06 00 3E 87 3C 15 EC 21 64 86 22 D1 DD F5 4B 76 [08:32:03]CheckFolder [08:32:03]dirname=/storage/ofd_packets [08:32:03]CheckFolder done [08:32:03]ProducePacketName [08:32:03]name=ofd_packets/00049764 [08:32:03]NVStorageSaveData ofd_packets/00049764 [08:32:03]File name is /storage/ofd_packets/00049764 [08:32:03]Write 446 bytes [08:32:03]NVStorageSaveData done [08:32:03]OFDSenderStorePacket done [08:32:03]KKMCreateOFDPacket done [08:32:03]NVStorageSaveData kkm_last_timestamp [08:32:03]File name is /storage/kkm_last_timestamp [08:32:03]Write 4 bytes [08:32:03]NVStorageSaveData done [08:32:03]ExternCall_PrintAddStr [08:32:03]wPrintStart [08:32:03]Write to MH i2c: 01 00 00 2B 46 71 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 07 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 07 00 2B 46 00 00 00 00 00 FF 0F 86 [08:32:03]RasterBufferAndPrint [08:32:03]line Счет N : (3)189943 [08:32:03]line ИНН: 02508201610067 [08:32:03]line Контрольно-Кассовый Чек [08:32:03]line ПРОДАЖА [08:32:03]line Товар: 2000036190018 [08:32:03]line Кофе Американо XL(GABB TRADE) [08:32:03]line 2.000 * 125.00 [08:32:03]line = 250.00 [08:32:03]line НДС 12% НСП 1% [08:32:03]line > о реализуемом товаре [08:32:03]line Товар: 2000036220012 [08:32:04]line Кофе Капучино XL(GABB TRADE) [08:32:04]line 2.000 * 130.00 [08:32:04]line = 260.00 [08:32:04]line НДС 12% НСП 1% [08:32:04]line > о реализуемом товаре [08:32:04]line ИТОГО: 510.00 [08:32:04]line НСП 1% : 4.51 [08:32:04]line НДС 12% : 54.16 [08:32:04]line Наличными: 510.00 [08:32:04]line Безнал.: 0.00 [08:32:04]line Место: АЗС № 95 "Партнер Нефть" [08:32:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:32:04]line СНО: Общий режим [08:32:04]line Чек 30 18.08.2024 08:32 [08:32:04]line Смена: 466 ФФД: 1.0 [08:32:04]line ЗНМ: 0300000078 [08:32:04]line РНМ: 0000000000092546 [08:32:04]line Версия ККМ: 001 [08:32:04]line ФМ: 0000000000871800 [08:32:04]line ФД: 49764 [08:32:04]line ФПД: 68750549576737 [08:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083210&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49764&fm=68750549576737&tin=02508201610067®Number=0000000000092546&sum=51000 [08:32:04]line 0 [08:32:04]OFD Sender: Processing packet 49764 [packets to send 21, broken 20] [08:32:04]ProducePacketName [08:32:04]name=ofd_packets/00049764 [08:32:04]OFD Sender: To server: pG, [08:32:04]CommunicateWithHost lk.salyk.kg:30040 [08:32:04]ConnectInit lk.salyk.kg [08:32:04]written 0, free lines is 4095 [08:32:04]Connected sock=9 [08: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 38 30 30 A0 01 00 00 1B A9 98 01 64 B8 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8A B1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C2 00 00 35 04 06 00 3E 87 3C 15 EC 21 64 86 22 D1 DD F5 4B 76 [08: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 38 30 30 4F 00 00 00 85 68 47 00 DA 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C2 00 00 F4 03 04 00 C3 5C C1 66 B6 04 01 00 00 88 B3 56 A2 9F 89 AA 31 [08:32:04]CommunicateWithHost err = 0 [08:32:04]CheckOFDResponse [08:32:04]1017 (14) - 77093643461234 [08:32:04]1041 (16) - 0000000000871800 [08:32:04]1040 (4) - 49764 [08:32:04]1012 (4) - 18.08.2024 02:30 [08:32:04]1206 (1) - 0 [08:32:04]OFD Sender: Remove packet 49764 [08:32:04]ProducePacketName [08:32:04]name=ofd_packets/00049764 [08:32:04]NVStorageDeleteData [08:32:04]Write to MH i2c: 01 00 00 5B 46 A1 [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 5B 46 00 00 00 00 00 96 0C 4A [08:32:04]RasterBufferAndPrint [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]written 0, free lines is 3229 [08:32:04]MH_Cut [08:32:04]Write to MH i2c: D1 01 00 62 46 01 7A [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 01 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 01 00 62 46 00 79 [08:32:04]Write to MH i2c: 01 00 00 63 46 A9 [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:05]OFD Sender: No OFD packet to send [08:32:05]*** Cut start [08:32:05]*** Purtial cut [08:32:05]*** Stage 1: CUTSNS_PIN = 1 [08:32:05]Read from MH i2c: 01 [08:32:05]MH_I2C_Read... [08:32:05]*** Stop cut motor [08:32:05]*** Cut end [08:32:05]Read from MH i2c: 01 07 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 63 46 00 00 00 00 00 FF 0F BE [08:32:05]process_action close_receipt done [08:32:05]requested_data is exist [08:32:05]produce_requested_data [08:32:05]requested_item fm.sn is exist - process it [08:32:05]wFMCommunicate request_size=4 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 11 00 00 [08:32:05]Write to MH i2c: E2 08 00 64 46 80 11 00 00 00 00 00 00 24 [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:05]Read from MH i2c: E2 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 17 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: E2 17 00 64 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [08:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:32:05]wFMCommunicate OK [08:32:05]requested_item fd.num is exist - process it [08:32:05]SAM_PROTO_GetFieldsCounters [08:32:05]wFMCommunicate request_size=4 [08:32:05]MH_SAM_APDU [08:32:05]CAPDU: 80 13 00 00 [08:32:05]Write to MH i2c: E2 08 00 65 46 80 13 00 00 00 00 00 00 27 [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 65 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [08: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetFieldsCounters done [08:32:06]requested_item shift.num is exist - process it [08:32:06]requested_item shift.opened is exist - process it [08:32:06]req_shift_opened [08:32:06]FM_GetShiftState [08:32:06]SAM_PROTO_GetShiftState [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 13 01 00 [08:32:06]Write to MH i2c: E2 08 00 66 46 80 13 01 00 00 00 00 00 29 [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 66 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 46 [08:32:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetShiftState done [08:32:06]FM_GetShiftState done [08:32:06]req_shift_opened done [08:32:06]requested_item shift.open_date is exist - process it [08:32:06]req_shift_open_date [08:32:06]req_shift_open_date done [08:32:06]produce_requested_data done [08:32:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49764,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:32:06]process_action_free close_receipt [08:32:06]json_value_free [08:32:06]json_value_free done [08:32:06]process_json_proto returns [08:32:06]Send response to host [08:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49764,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:32:06]free response buf [08:32:06]execute_script done [08:32:06]execute_script returns [08:32:06]free content buf [08:32:06]Sock 10.Close socket [08:32:06]Sock 10.Thread stoped [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:52]int [08:32:52]Write to MH i2c: 01 00 00 67 46 AD [08:32:52]*** FLAG_PRN_KEY set [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 67 46 00 08 00 00 00 FF 0F CA [08:32:52]state=0 [08:32:52]Key pressed [08:32:52]Feed [08:32:52]Write to MH i2c: D8 00 00 68 46 85 [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D8 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D8 01 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D8 01 00 68 46 00 86 [08:32:52]int [08:32:52]Write to MH i2c: 01 00 00 69 46 AF [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 69 46 00 48 00 00 00 3C 00 3A [08:32:52]state=2 [08:32:52]Key pressed [08:32:52]int [08:32:52]Write to MH i2c: 01 00 00 6A 46 B0 [08:32:52]*** FLAG_PRN_KEY reset [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 6A 46 00 00 00 00 00 F6 0F BC [08:32:52]state=2 [08:32:52]Stop feed [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:35:57]accept exits with 7 [08:35:57]New connection [08:35:57]New thread 3066801508 created [08:35:57]Thread 3066944868 joined [08:35:57]Waiting for new connection... [08:35:57] Sock 7.Parse request [08:35:57]Sock 7.Check first char [08:35:57]Sock 7.First char is OK [08:35:57]request: POST /json_proto HTTP/1.0 [08:35:57]Method: POST [08:35:57]URL: /json_proto [08:35:57]Method is POST - this is cgi request [08:35:57]url: /json_proto [08:35:57]query_string will be loaded in cgi processing [08:35:57]execute_cgi json_proto POST (null) [08:35:57]execute_cgi path=json_proto method=POST [08:35:57]POST find Content-Length [08:35:57]Host: 172.17.46.196:8080 [08:35:57]Content-Length: 646 [08:35:57]Content-Type: application/json [08:35:57] [08:35:57]POST finish read [08:35:57]Found Content-Length = 646 [08:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189944", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:57]execute_script... [08: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 : (3)189944", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:57]POST & json_proto [08:35:57]process_json_proto [08:35:57]json parsed OK: [08:35:57]protocol is kg_v1.0 [08:35:57]action value=close_receipt [08:35:57]process_action close_receipt [08:35:57]cmd_close_receipt [08:35:57]MH_GetDate [08:35:57]Write to MH i2c: F0 00 00 6B 46 A0 [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: F0 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: F0 09 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: F0 09 00 6B 46 00 75 B2 C1 66 07 E8 5D 66 A9 [08:35:57]GetLastDocTimeStamp 1723969930 [08:35:57]current date 1723970165 [08:35:57]FM_GetShiftState [08:35:57]SAM_PROTO_GetShiftState [08:35:57]wFMCommunicate request_size=4 [08:35:57]MH_SAM_APDU [08:35:57]CAPDU: 80 13 01 00 [08:35:57]Write to MH i2c: E2 08 00 6C 46 80 13 01 00 00 00 00 00 2F [08:35:57]Write i2c OK [08:35:57]MH_I2C_Read... [08:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:57]Read from MH i2c: E2 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 0E 00 [08:35:57]MH_I2C_Read... [08:35:57]Read from MH i2c: E2 0E 00 6C 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 4C [08:35:57]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:35:57]wFMCommunicate OK [08:35:57]SAM_PROTO_GetShiftState done [08:35:57]FM_GetShiftState done [08:35:57]opened in 1723939759 [08:35:57]opened+sec_in_day 1724026159 [08:35:57]quantity*price = 13000 [08:35:57]sum+1 = 13001 [08:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 31 18.08.2024 08:36 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49765 ФПД: 109943876752996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083605&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49765&fm=109943876752996&tin=02508201610067®Number=0000000000092546&sum=13000 0 [08:35:58]StoreToDocumentArchive [08:35:58]shift 466 fd 49765 [08:35:58]save to /storage/0466/doc_00049765 [08:35:58]save last doc name /storage/0466/doc_00049765 to /storage/kkm_last_doc_name [08:35:58]save OK [08:35:58]Clear old archive folders... [08:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:35:58]tlvbuf is 0183AAF0 [08:35:58]SAM_PROTO_ClearQueue [08:35:58]wFMCommunicate request_size=4 [08:35:58]MH_SAM_APDU [08:35:58]CAPDU: 80 09 00 00 [08:35:58]Write to MH i2c: E2 08 00 79 46 80 09 00 00 00 00 00 00 31 [08:35:58]Write i2c OK [08:35:58]MH_I2C_Read... [08:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:58]Read from MH i2c: E2 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 03 00 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 03 00 79 46 00 90 00 33 [08:35:58]RAPDU: 90 00 [08:35:58]wFMCommunicate OK [08:35:58]SAM_PROTO_ClearQueue done [08:35:58]KKMCreateOFDPacket [08:35:58]OFDProtocolAddRootSTLVToBuf [08:35:58]FM_MakeSignedData [08:35:58]FM_MakeSignedData [08:35:58]SAM_PROTO_SignData [08:35:58]wFMCommunicate request_size=4 [08:35:58]MH_SAM_APDU [08:35:58]CAPDU: 80 0D 01 02 [08:35:58]Write to MH i2c: E2 08 00 7A 46 80 0D 01 02 00 00 00 00 39 [08:35:58]Write i2c OK [08:35:58]MH_I2C_Read... [08:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:58]Read from MH i2c: E2 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 03 00 [08:35:58]MH_I2C_Read... [08:35:58]Read from MH i2c: E2 03 00 7A 46 00 90 00 34 [08:35:58]RAPDU: 90 00 [08:35:58]wFMCommunicate OK [08:35:58]wFMCommunicate request_size=255 [08:35:58]MH_SAM_APDU [08:35:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 B2 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [08:35:58]Write to MH i2c: E2 02 01 7B 46 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 B2 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 89 [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 03 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 03 00 7B 46 00 90 00 35 [08:35:59]RAPDU: 90 00 [08:35:59]wFMCommunicate OK [08:35:59]wFMCommunicate request_size=41 [08:35:59]MH_SAM_APDU [08:35:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C2 00 00 35 04 06 00 63 FE 4D B8 16 64 [08:35:59]Write to MH i2c: E2 2C 00 7C 46 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C2 00 00 35 04 06 00 63 FE 4D B8 16 64 00 00 0A [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 03 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 03 00 7C 46 00 90 00 36 [08:35:59]RAPDU: 90 00 [08:35:59]wFMCommunicate OK [08:35:59]wFMCommunicate request_size=4 [08:35:59]MH_SAM_APDU [08:35:59]CAPDU: 80 0D 03 02 [08:35:59]Write to MH i2c: E2 08 00 7D 46 80 0D 03 02 00 00 00 00 3E [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 0B 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 0B 00 7D 46 00 66 47 47 E1 B1 B5 BB 8A 90 00 BF [08:35:59]RAPDU: 66 47 47 E1 B1 B5 BB 8A 90 00 [08:35:59]wFMCommunicate OK [08:35:59]SAM_PROTO_SignData done [08:35:59]FM_MakeSignedData done [08:35:59]CreateOFDProtocolMessage [08:35:59]wFMCommunicate request_size=4 [08:35:59]MH_SAM_APDU [08:35:59]CAPDU: 80 11 00 00 [08:35:59]Write to MH i2c: E2 08 00 7E 46 80 11 00 00 00 00 00 00 3E [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:59]Read from MH i2c: E2 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 17 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: E2 17 00 7E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [08:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:35:59]wFMCommunicate OK [08:35:59]CreateOFDProtocolMessage done [08:35:59]OFDSenderStorePacket 49765 [08:35:59]StoreOFDPacket docnum=49765 [08:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 1C 7F 26 01 4B A0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 B2 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C2 00 00 35 04 06 00 63 FE 4D B8 16 64 66 47 47 E1 B1 B5 BB 8A [08:35:59]CheckFolder [08:35:59]dirname=/storage/ofd_packets [08:35:59]CheckFolder done [08:35:59]ProducePacketName [08:35:59]name=ofd_packets/00049765 [08:35:59]NVStorageSaveData ofd_packets/00049765 [08:35:59]File name is /storage/ofd_packets/00049765 [08:35:59]Write 332 bytes [08:35:59]NVStorageSaveData done [08:35:59]OFDSenderStorePacket done [08:35:59]KKMCreateOFDPacket done [08:35:59]NVStorageSaveData kkm_last_timestamp [08:35:59]File name is /storage/kkm_last_timestamp [08:35:59]Write 4 bytes [08:35:59]NVStorageSaveData done [08:35:59]ExternCall_PrintAddStr [08:35:59]wPrintStart [08:35:59]Write to MH i2c: 01 00 00 7F 46 C5 [08:35:59]Write i2c OK [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: 01 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: 01 07 00 [08:35:59]MH_I2C_Read... [08:35:59]Read from MH i2c: 01 07 00 7F 46 00 00 00 00 00 FF 0F DA [08:35:59]RasterBufferAndPrint [08:35:59]line Счет N : (3)189944 [08:35:59]line ИНН: 02508201610067 [08:35:59]line Контрольно-Кассовый Чек [08:35:59]line ПРОДАЖА [08:35:59]line Товар: 2000036220012 [08:35:59]line Кофе Капучино XL(GABB TRADE) [08:35:59]line 1.000 * 130.00 [08:35:59]line = 130.00 [08:35:59]line НДС 12% НСП 1% [08:35:59]line > о реализуемом товаре [08:35:59]line ИТОГО: 130.00 [08:35:59]line НСП 1% : 1.15 [08:35:59]line НДС 12% : 13.80 [08:35:59]line Наличными: 130.00 [08:35:59]line Безнал.: 0.00 [08:35:59]line Место: АЗС № 95 "Партнер Нефть" [08:35:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:35:59]line СНО: Общий режим [08:35:59]line Чек 31 18.08.2024 08:36 [08:35:59]line Смена: 466 ФФД: 1.0 [08:35:59]line ЗНМ: 0300000078 [08:35:59]line РНМ: 0000000000092546 [08:35:59]line Версия ККМ: 001 [08:35:59]line ФМ: 0000000000871800 [08:35:59]line ФД: 49765 [08:35:59]line ФПД: 109943876752996 [08:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083605&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49765&fm=109943876752996&tin=02508201610067®Number=0000000000092546&sum=13000 [08:35:59]line 0 [08:35:59]OFD Sender: Processing packet 49765 [packets to send 21, broken 20] [08:35:59]ProducePacketName [08:35:59]name=ofd_packets/00049765 [08:35:59]OFD Sender: To server: pG, [08:35:59]CommunicateWithHost lk.salyk.kg:30040 [08:35:59]ConnectInit lk.salyk.kg [08:35:59]written 0, free lines is 4095 [08:35:59]Connected sock=10 [08: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 38 30 30 2E 01 00 00 1C 7F 26 01 4B A0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 B2 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C2 00 00 35 04 06 00 63 FE 4D B8 16 64 66 47 47 E1 B1 B5 BB 8A [08:36:00]Write to MH i2c: 01 00 00 A8 46 EE [08:36:00]Write i2c OK [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: 01 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: 01 07 00 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: 01 07 00 A8 46 00 00 00 00 00 EB 0C EC [08:36:00]RasterBufferAndPrint [08:36:00]line [08:36:00]line [08:36:00]line [08:36:00]line [08:36:00]line [08:36:00]written 0, free lines is 3316 [08:36:00]MH_Cut [08:36:00]Write to MH i2c: D1 01 00 AF 46 01 C7 [08:36:00]Write i2c OK [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: D1 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: D1 01 00 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: D1 01 00 AF 46 00 C6 [08:36:00]Write to MH i2c: 01 00 00 B0 46 F6 [08:36:00]Write i2c OK [08:36:00]MH_I2C_Read... [08:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 27 CA 47 00 52 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C2 00 00 F4 03 04 00 AF 5D C1 66 B6 04 01 00 00 EB CD 11 A3 8B 2A 91 8D [08:36:00]CommunicateWithHost err = 0 [08:36:00]CheckOFDResponse [08:36:00]1017 (14) - 77093643461234 [08:36:00]1041 (16) - 0000000000871800 [08:36:00]1040 (4) - 49765 [08:36:00]1012 (4) - 18.08.2024 02:34 [08:36:00]1206 (1) - 0 [08:36:00]OFD Sender: Remove packet 49765 [08:36:00]ProducePacketName [08:36:00]name=ofd_packets/00049765 [08:36:00]NVStorageDeleteData [08:36:00]OFD Sender: No OFD packet to send [08:36:01]*** Cut start [08:36:01]*** Purtial cut [08:36:01]*** CUTSNS_PIN = 0 [08:36:01]*** Stage 1: CUTSNS_PIN = 1 [08:36:03]Read from MH i2c: 01 [08:36:03]MH_I2C_Read... [08:36:03]*** Stop cut motor [08:36:03]*** Cut end [08:36:03]Read from MH i2c: 01 07 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: 01 07 00 B0 46 00 00 00 00 00 FF 0F 0B [08:36:03]process_action close_receipt done [08:36:03]requested_data is exist [08:36:03]produce_requested_data [08:36:03]requested_item fm.sn is exist - process it [08:36:03]wFMCommunicate request_size=4 [08:36:03]MH_SAM_APDU [08:36:03]CAPDU: 80 11 00 00 [08:36:03]Write to MH i2c: E2 08 00 B1 46 80 11 00 00 00 00 00 00 71 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:03]Read from MH i2c: E2 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 17 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 17 00 B1 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BC [08:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:36:03]wFMCommunicate OK [08:36:03]requested_item fd.num is exist - process it [08:36:03]SAM_PROTO_GetFieldsCounters [08:36:03]wFMCommunicate request_size=4 [08:36:03]MH_SAM_APDU [08:36:03]CAPDU: 80 13 00 00 [08:36:03]Write to MH i2c: E2 08 00 B2 46 80 13 00 00 00 00 00 00 74 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:03]Read from MH i2c: E2 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 62 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 62 00 B2 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [08:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:03]wFMCommunicate OK [08:36:03]SAM_PROTO_GetFieldsCounters done [08:36:03]requested_item shift.num is exist - process it [08:36:03]requested_item shift.opened is exist - process it [08:36:03]req_shift_opened [08:36:03]FM_GetShiftState [08:36:03]SAM_PROTO_GetShiftState [08:36:03]wFMCommunicate request_size=4 [08:36:03]MH_SAM_APDU [08:36:03]CAPDU: 80 13 01 00 [08:36:03]Write to MH i2c: E2 08 00 B3 46 80 13 01 00 00 00 00 00 76 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:03]Read from MH i2c: E2 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 0E 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: E2 0E 00 B3 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 93 [08:36:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:36:03]wFMCommunicate OK [08:36:03]SAM_PROTO_GetShiftState done [08:36:03]FM_GetShiftState done [08:36:03]req_shift_opened done [08:36:03]requested_item shift.open_date is exist - process it [08:36:03]req_shift_open_date [08:36:03]req_shift_open_date done [08:36:03]produce_requested_data done [08:36:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49765,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:36:03]process_action_free close_receipt [08:36:03]json_value_free [08:36:03]json_value_free done [08:36:03]process_json_proto returns [08:36:03]Send response to host [08:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49765,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:36:03]free response buf [08:36:03]execute_script done [08:36:03]execute_script returns [08:36:03]free content buf [08:36:03]Sock 7.Close socket [08:36:03]Sock 7.Thread stoped [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:35]accept exits with 9 [08:45:35]New connection [08:45:35]New thread 3066944868 created [08:45:35]Thread 3066801508 joined [08:45:35]Waiting for new connection... [08:45:35] Sock 9.Parse request [08:45:35]Sock 9.Check first char [08:45:35]Sock 9.First char is OK [08:45:35]request: POST /json_proto HTTP/1.0 [08:45:35]Method: POST [08:45:35]URL: /json_proto [08:45:35]Method is POST - this is cgi request [08:45:35]url: /json_proto [08:45:35]query_string will be loaded in cgi processing [08:45:35]execute_cgi json_proto POST (null) [08:45:35]execute_cgi path=json_proto method=POST [08:45:35]POST find Content-Length [08:45:35]Host: 172.17.46.196:8080 [08:45:35]Content-Length: 675 [08:45:35]Content-Type: application/json [08:45:35] [08:45:35]POST finish read [08:45:35]Found Content-Length = 675 [08:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189945", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:35]execute_script... [08: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 : (3)189945", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:35]POST & json_proto [08:45:35]process_json_proto [08:45:35]json parsed OK: [08:45:35]protocol is kg_v1.0 [08:45:35]action value=close_receipt [08:45:35]process_action close_receipt [08:45:35]cmd_close_receipt [08:45:35]MH_GetDate [08:45:35]Write to MH i2c: F0 00 00 B4 46 E9 [08:45:35]Write i2c OK [08:45:35]MH_I2C_Read... [08:45:35]Read from MH i2c: F0 [08:45:35]MH_I2C_Read... [08:45:35]Read from MH i2c: F0 09 00 [08:45:35]MH_I2C_Read... [08:45:35]Read from MH i2c: F0 09 00 B4 46 00 B7 B4 C1 66 07 E8 5D 66 36 [08:45:35]GetLastDocTimeStamp 1723970165 [08:45:35]current date 1723970743 [08:45:35]FM_GetShiftState [08:45:35]SAM_PROTO_GetShiftState [08:45:35]wFMCommunicate request_size=4 [08:45:35]MH_SAM_APDU [08:45:35]CAPDU: 80 13 01 00 [08:45:35]Write to MH i2c: E2 08 00 B5 46 80 13 01 00 00 00 00 00 78 [08:45:35]Write i2c OK [08:45:35]MH_I2C_Read... [08:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:35]Read from MH i2c: E2 [08:45:35]MH_I2C_Read... [08:45:35]Read from MH i2c: E2 0E 00 [08:45:35]MH_I2C_Read... [08:45:35]Read from MH i2c: E2 0E 00 B5 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 95 [08:45:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:45:35]wFMCommunicate OK [08:45:35]SAM_PROTO_GetShiftState done [08:45:35]FM_GetShiftState done [08:45:35]opened in 1723939759 [08:45:35]opened+sec_in_day 1724026159 [08:45:35]quantity*price = 6500 [08:45:35]sum+1 = 6501 [08:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 32 18.08.2024 08:45 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49766 ФПД: 151639470849346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49766&fm=151639470849346&tin=02508201610067®Number=0000000000092546&sum=6500 0 [08:45:37]StoreToDocumentArchive [08:45:37]shift 466 fd 49766 [08:45:37]save to /storage/0466/doc_00049766 [08:45:37]save last doc name /storage/0466/doc_00049766 to /storage/kkm_last_doc_name [08:45:37]save OK [08:45:37]Clear old archive folders... [08:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=286 [08:45:37]tlvbuf is 01895F90 [08:45:37]SAM_PROTO_ClearQueue [08:45:37]wFMCommunicate request_size=4 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 09 00 00 [08:45:37]Write to MH i2c: E2 08 00 C2 46 80 09 00 00 00 00 00 00 7A [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 C2 46 00 90 00 7C [08:45:37]RAPDU: 90 00 [08:45:37]wFMCommunicate OK [08:45:37]SAM_PROTO_ClearQueue done [08:45:37]KKMCreateOFDPacket [08:45:37]OFDProtocolAddRootSTLVToBuf [08:45:37]FM_MakeSignedData [08:45:37]FM_MakeSignedData [08:45:37]SAM_PROTO_SignData [08:45:37]wFMCommunicate request_size=4 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 0D 01 02 [08:45:37]Write to MH i2c: E2 08 00 C3 46 80 0D 01 02 00 00 00 00 82 [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 C3 46 00 90 00 7D [08:45:37]RAPDU: 90 00 [08:45:37]wFMCommunicate OK [08:45:37]wFMCommunicate request_size=255 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 B7 B4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [08:45:37]Write to MH i2c: E2 02 01 C4 46 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 B7 B4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 CE [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 C4 46 00 90 00 7E [08:45:37]RAPDU: 90 00 [08:45:37]wFMCommunicate OK [08:45:37]wFMCommunicate request_size=45 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C2 00 00 35 04 06 00 89 EA 50 CB 3D 42 [08:45:37]Write to MH i2c: E2 30 00 C5 46 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C2 00 00 35 04 06 00 89 EA 50 CB 3D 42 00 00 08 [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 03 00 C5 46 00 90 00 7F [08:45:37]RAPDU: 90 00 [08:45:37]wFMCommunicate OK [08:45:37]wFMCommunicate request_size=4 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 0D 03 02 [08:45:37]Write to MH i2c: E2 08 00 C6 46 80 0D 03 02 00 00 00 00 87 [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 0B 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 0B 00 C6 46 00 47 5F 5A 51 1D 2D AD 41 90 00 11 [08:45:37]RAPDU: 47 5F 5A 51 1D 2D AD 41 90 00 [08:45:37]wFMCommunicate OK [08:45:37]SAM_PROTO_SignData done [08:45:37]FM_MakeSignedData done [08:45:37]CreateOFDProtocolMessage [08:45:37]wFMCommunicate request_size=4 [08:45:37]MH_SAM_APDU [08:45:37]CAPDU: 80 11 00 00 [08:45:37]Write to MH i2c: E2 08 00 C7 46 80 11 00 00 00 00 00 00 87 [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:37]Read from MH i2c: E2 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 17 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: E2 17 00 C7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D2 [08:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:45:37]wFMCommunicate OK [08:45:37]CreateOFDProtocolMessage done [08:45:37]OFDSenderStorePacket 49766 [08:45:37]StoreOFDPacket docnum=49766 [08:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 35 58 2A 01 37 A0 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 B7 B4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C2 00 00 35 04 06 00 89 EA 50 CB 3D 42 47 5F 5A 51 1D 2D AD 41 [08:45:37]CheckFolder [08:45:37]dirname=/storage/ofd_packets [08:45:37]CheckFolder done [08:45:37]ProducePacketName [08:45:37]name=ofd_packets/00049766 [08:45:37]NVStorageSaveData ofd_packets/00049766 [08:45:37]File name is /storage/ofd_packets/00049766 [08:45:37]Write 336 bytes [08:45:37]NVStorageSaveData done [08:45:37]OFDSenderStorePacket done [08:45:37]KKMCreateOFDPacket done [08:45:37]NVStorageSaveData kkm_last_timestamp [08:45:37]File name is /storage/kkm_last_timestamp [08:45:37]Write 4 bytes [08:45:37]NVStorageSaveData done [08:45:37]ExternCall_PrintAddStr [08:45:37]wPrintStart [08:45:37]Write to MH i2c: 01 00 00 C8 46 0E [08:45:37]Write i2c OK [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: 01 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: 01 07 00 [08:45:37]MH_I2C_Read... [08:45:37]Read from MH i2c: 01 07 00 C8 46 00 00 00 00 00 FF 0F 23 [08:45:37]RasterBufferAndPrint [08:45:37]line Счет N : (3)189945 [08:45:37]line ИНН: 02508201610067 [08:45:37]line Контрольно-Кассовый Чек [08:45:37]line ПРОДАЖА [08:45:37]line Товар: 4700040114120 [08:45:37]line Султан чай 1л. чер персик [08:45:37]line 1.000 * 65.00 [08:45:37]line = 65.00 [08:45:37]line НДС 12% НСП 1% [08:45:37]line > о реализуемом товаре [08:45:37]line ИТОГО: 65.00 [08:45:37]line НСП 1% : 0.57 [08:45:37]line НДС 12% : 6.90 [08:45:37]line Наличными: 65.00 [08:45:37]line Безнал.: 0.00 [08:45:37]line Место: АЗС № 95 "Партнер Нефть" [08:45:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:45:37]line СНО: Общий режим [08:45:37]line Чек 32 18.08.2024 08:45 [08:45:37]line Смена: 466 ФФД: 1.0 [08:45:37]line ЗНМ: 0300000078 [08:45:37]line РНМ: 0000000000092546 [08:45:37]line Версия ККМ: 001 [08:45:37]line ФМ: 0000000000871800 [08:45:37]line ФД: 49766 [08:45:37]line ФПД: 151639470849346 [08:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49766&fm=151639470849346&tin=02508201610067®Number=0000000000092546&sum=6500 [08:45:37]line 0 [08:45:37]OFD Sender: Processing packet 49766 [packets to send 21, broken 20] [08:45:37]ProducePacketName [08:45:37]name=ofd_packets/00049766 [08:45:37]OFD Sender: To server: pG, [08:45:37]CommunicateWithHost lk.salyk.kg:30040 [08:45:37]ConnectInit lk.salyk.kg [08:45:37]written 0, free lines is 4095 [08:45:38]Connected sock=10 [08:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 35 58 2A 01 37 A0 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 B7 B4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C2 00 00 35 04 06 00 89 EA 50 CB 3D 42 47 5F 5A 51 1D 2D AD 41 [08:45:38]Write to MH i2c: 01 00 00 F0 46 36 [08:45:38]Write i2c OK [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 07 00 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 07 00 F0 46 00 00 00 00 00 F7 0C 40 [08:45:38]RasterBufferAndPrint [08:45:38]line [08:45:38]line [08:45:38]line [08:45:38]line [08:45:38]line [08:45:38]written 0, free lines is 3328 [08:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BE 3F 47 00 12 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C2 00 00 F4 03 04 00 F1 5F C1 66 B6 04 01 00 00 A6 3A 04 32 5C 0D E6 2B [08:45:38]CommunicateWithHost err = 0 [08:45:38]CheckOFDResponse [08:45:38]1017 (14) - 77093643461234 [08:45:38]1041 (16) - 0000000000871800 [08:45:38]1040 (4) - 49766 [08:45:38]1012 (4) - 18.08.2024 02:44 [08:45:38]1206 (1) - 0 [08:45:38]OFD Sender: Remove packet 49766 [08:45:38]ProducePacketName [08:45:38]name=ofd_packets/00049766 [08:45:38]NVStorageDeleteData [08:45:38]MH_Cut [08:45:38]Write to MH i2c: D1 01 00 F7 46 01 0F [08:45:38]Write i2c OK [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: D1 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: D1 01 00 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: D1 01 00 F7 46 00 0E [08:45:38]Write to MH i2c: 01 00 00 F8 46 3E [08:45:38]Write i2c OK [08:45:38]MH_I2C_Read... [08:45:38]OFD Sender: No OFD packet to send [08:45:39]*** Cut start [08:45:39]*** Purtial cut [08:45:39]*** Stage 1: CUTSNS_PIN = 1 [08:45:39]Read from MH i2c: 01 [08:45:39]MH_I2C_Read... [08:45:39]*** Stop cut motor [08:45:39]*** Cut end [08:45:39]Read from MH i2c: 01 07 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: 01 07 00 F8 46 00 00 00 00 00 FF 0F 53 [08:45:39]process_action close_receipt done [08:45:39]requested_data is exist [08:45:39]produce_requested_data [08:45:39]requested_item fm.sn is exist - process it [08:45:39]wFMCommunicate request_size=4 [08:45:39]MH_SAM_APDU [08:45:39]CAPDU: 80 11 00 00 [08:45:39]Write to MH i2c: E2 08 00 F9 46 80 11 00 00 00 00 00 00 B9 [08:45:39]Write i2c OK [08:45:39]MH_I2C_Read... [08:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:39]Read from MH i2c: E2 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 17 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 17 00 F9 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 04 [08:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:45:39]wFMCommunicate OK [08:45:39]requested_item fd.num is exist - process it [08:45:39]SAM_PROTO_GetFieldsCounters [08:45:39]wFMCommunicate request_size=4 [08:45:39]MH_SAM_APDU [08:45:39]CAPDU: 80 13 00 00 [08:45:39]Write to MH i2c: E2 08 00 FA 46 80 13 00 00 00 00 00 00 BC [08:45:39]Write i2c OK [08:45:39]MH_I2C_Read... [08:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:39]Read from MH i2c: E2 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 62 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 62 00 FA 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 66 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [08: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 66 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:39]wFMCommunicate OK [08:45:39]SAM_PROTO_GetFieldsCounters done [08:45:39]requested_item shift.num is exist - process it [08:45:39]requested_item shift.opened is exist - process it [08:45:39]req_shift_opened [08:45:39]FM_GetShiftState [08:45:39]SAM_PROTO_GetShiftState [08:45:39]wFMCommunicate request_size=4 [08:45:39]MH_SAM_APDU [08:45:39]CAPDU: 80 13 01 00 [08:45:39]Write to MH i2c: E2 08 00 FB 46 80 13 01 00 00 00 00 00 BE [08:45:39]Write i2c OK [08:45:39]MH_I2C_Read... [08:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:39]Read from MH i2c: E2 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 0E 00 [08:45:39]MH_I2C_Read... [08:45:39]Read from MH i2c: E2 0E 00 FB 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DB [08:45:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:45:39]wFMCommunicate OK [08:45:39]SAM_PROTO_GetShiftState done [08:45:39]FM_GetShiftState done [08:45:39]req_shift_opened done [08:45:39]requested_item shift.open_date is exist - process it [08:45:39]req_shift_open_date [08:45:39]req_shift_open_date done [08:45:39]produce_requested_data done [08:45:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49766,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:45:39]process_action_free close_receipt [08:45:39]json_value_free [08:45:39]json_value_free done [08:45:39]process_json_proto returns [08:45:39]Send response to host [08:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49766,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:45:39]free response buf [08:45:39]execute_script done [08:45:39]execute_script returns [08:45:39]free content buf [08:45:39]Sock 9.Close socket [08:45:39]Sock 9.Thread stoped [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:17]accept exits with 7 [08:47:17]New connection [08:47:17]New thread 3066801508 created [08:47:17]Thread 3066944868 joined [08:47:17]Waiting for new connection... [08:47:17] Sock 7.Parse request [08:47:17]Sock 7.Check first char [08:47:17]Sock 7.First char is OK [08:47:17]request: POST /json_proto HTTP/1.0 [08:47:17]Method: POST [08:47:17]URL: /json_proto [08:47:17]Method is POST - this is cgi request [08:47:17]url: /json_proto [08:47:17]query_string will be loaded in cgi processing [08:47:17]execute_cgi json_proto POST (null) [08:47:17]execute_cgi path=json_proto method=POST [08:47:17]POST find Content-Length [08:47:17]Host: 172.17.46.196:8080 [08:47:17]Content-Length: 646 [08:47:17]Content-Type: application/json [08:47:17] [08:47:17]POST finish read [08:47:17]Found Content-Length = 646 [08:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189946", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]execute_script... [08:47: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 : (3)189946", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]POST & json_proto [08:47:17]process_json_proto [08:47:17]json parsed OK: [08:47:17]protocol is kg_v1.0 [08:47:17]action value=close_receipt [08:47:17]process_action close_receipt [08:47:17]cmd_close_receipt [08:47:17]MH_GetDate [08:47:17]Write to MH i2c: F0 00 00 FC 46 31 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 FC 46 00 1D B5 C1 66 07 E8 5D 66 E5 [08:47:17]GetLastDocTimeStamp 1723970743 [08:47:17]current date 1723970845 [08:47:17]FM_GetShiftState [08:47:17]SAM_PROTO_GetShiftState [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 01 00 [08:47:17]Write to MH i2c: E2 08 00 FD 46 80 13 01 00 00 00 00 00 C0 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 FD 46 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DD [08:47:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:47:17]wFMCommunicate OK [08:47:17]SAM_PROTO_GetShiftState done [08:47:17]FM_GetShiftState done [08:47:17]opened in 1723939759 [08:47:17]opened+sec_in_day 1724026159 [08:47:17]quantity*price = 13000 [08:47:17]sum+1 = 13001 [08:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 33 18.08.2024 08:47 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49767 ФПД: 240890157071085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084725&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49767&fm=240890157071085&tin=02508201610067®Number=0000000000092546&sum=13000 0 [08:47:18]StoreToDocumentArchive [08:47:18]shift 466 fd 49767 [08:47:18]save to /storage/0466/doc_00049767 [08:47:18]save last doc name /storage/0466/doc_00049767 to /storage/kkm_last_doc_name [08:47:18]save OK [08:47:18]Clear old archive folders... [08:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:47:18]tlvbuf is 018FB270 [08:47:18]SAM_PROTO_ClearQueue [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 09 00 00 [08:47:18]Write to MH i2c: E2 08 00 0A 47 80 09 00 00 00 00 00 00 C3 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 0A 47 00 90 00 C5 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_ClearQueue done [08:47:18]KKMCreateOFDPacket [08:47:18]OFDProtocolAddRootSTLVToBuf [08:47:18]FM_MakeSignedData [08:47:18]FM_MakeSignedData [08:47:18]SAM_PROTO_SignData [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 01 02 [08:47:18]Write to MH i2c: E2 08 00 0B 47 80 0D 01 02 00 00 00 00 CB [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 0B 47 00 90 00 C6 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=255 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1D B5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [08:47:18]Write to MH i2c: E2 02 01 0C 47 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1D B5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 C8 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]OFD Sender: No OFD packet to send [08:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 03 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 03 00 0C 47 00 90 00 C7 [08:47:19]RAPDU: 90 00 [08:47:19]wFMCommunicate OK [08:47:19]wFMCommunicate request_size=41 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C2 00 00 35 04 06 00 DB 16 9C 3D FA ED [08:47:19]Write to MH i2c: E2 2C 00 0D 47 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C2 00 00 35 04 06 00 DB 16 9C 3D FA ED 00 00 6F [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 03 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 03 00 0D 47 00 90 00 C8 [08:47:19]RAPDU: 90 00 [08:47:19]wFMCommunicate OK [08:47:19]wFMCommunicate request_size=4 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 0D 03 02 [08:47:19]Write to MH i2c: E2 08 00 0E 47 80 0D 03 02 00 00 00 00 D0 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 0E 47 00 AB 15 37 D4 2D D8 CF 70 90 00 E0 [08:47:19]RAPDU: AB 15 37 D4 2D D8 CF 70 90 00 [08:47:19]wFMCommunicate OK [08:47:19]SAM_PROTO_SignData done [08:47:19]FM_MakeSignedData done [08:47:19]CreateOFDProtocolMessage [08:47:19]wFMCommunicate request_size=4 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 11 00 00 [08:47:19]Write to MH i2c: E2 08 00 0F 47 80 11 00 00 00 00 00 00 D0 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 0F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1B [08:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:19]wFMCommunicate OK [08:47:19]CreateOFDProtocolMessage done [08:47:19]OFDSenderStorePacket 49767 [08:47:19]StoreOFDPacket docnum=49767 [08:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 14 C3 26 01 77 F7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1D B5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C2 00 00 35 04 06 00 DB 16 9C 3D FA ED AB 15 37 D4 2D D8 CF 70 [08:47:19]CheckFolder [08:47:19]dirname=/storage/ofd_packets [08:47:19]CheckFolder done [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00049767 [08:47:19]NVStorageSaveData ofd_packets/00049767 [08:47:19]File name is /storage/ofd_packets/00049767 [08:47:19]Write 332 bytes [08:47:19]NVStorageSaveData done [08:47:19]OFDSenderStorePacket done [08:47:19]KKMCreateOFDPacket done [08:47:19]NVStorageSaveData kkm_last_timestamp [08:47:19]File name is /storage/kkm_last_timestamp [08:47:19]Write 4 bytes [08:47:19]NVStorageSaveData done [08:47:19]ExternCall_PrintAddStr [08:47:19]wPrintStart [08:47:19]Write to MH i2c: 01 00 00 10 47 57 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 10 47 00 00 00 00 00 FF 0F 6C [08:47:19]RasterBufferAndPrint [08:47:19]line Счет N : (3)189946 [08:47:19]line ИНН: 02508201610067 [08:47:19]line Контрольно-Кассовый Чек [08:47:19]line ПРОДАЖА [08:47:19]line Товар: 2000036220012 [08:47:19]line Кофе Капучино XL(GABB TRADE) [08:47:19]line 1.000 * 130.00 [08:47:19]line = 130.00 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line ИТОГО: 130.00 [08:47:19]line НСП 1% : 1.15 [08:47:19]line НДС 12% : 13.80 [08:47:19]line Наличными: 130.00 [08:47:19]line Безнал.: 0.00 [08:47:19]line Место: АЗС № 95 "Партнер Нефть" [08:47:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:47:19]line СНО: Общий режим [08:47:19]line Чек 33 18.08.2024 08:47 [08:47:19]line Смена: 466 ФФД: 1.0 [08:47:19]line ЗНМ: 0300000078 [08:47:19]line РНМ: 0000000000092546 [08:47:19]line Версия ККМ: 001 [08:47:19]line ФМ: 0000000000871800 [08:47:19]line ФД: 49767 [08:47:19]line ФПД: 240890157071085 [08:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084725&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49767&fm=240890157071085&tin=02508201610067®Number=0000000000092546&sum=13000 [08:47:19]line 0 [08:47:19]OFD Sender: Processing packet 49767 [packets to send 21, broken 20] [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00049767 [08:47:19]OFD Sender: To server: pG, [08:47:19]CommunicateWithHost lk.salyk.kg:30040 [08:47:19]ConnectInit lk.salyk.kg [08:47:19]written 0, free lines is 4095 [08:47:20]Connected sock=10 [08:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 14 C3 26 01 77 F7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1D B5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C2 00 00 35 04 06 00 DB 16 9C 3D FA ED AB 15 37 D4 2D D8 CF 70 [08:47:20]Write to MH i2c: 01 00 00 39 47 80 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: 01 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: 01 07 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: 01 07 00 39 47 00 00 00 00 00 E5 0C 78 [08:47:20]RasterBufferAndPrint [08:47:20]line [08:47:20]line [08:47:20]line [08:47:20]line [08:47:20]line [08:47:20]written 0, free lines is 3306 [08:47:20]MH_Cut [08:47:20]Write to MH i2c: D1 01 00 40 47 01 59 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: D1 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: D1 01 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: D1 01 00 40 47 00 58 [08:47:20]Write to MH i2c: 01 00 00 41 47 88 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DE 4D 47 00 F4 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 38 30 30 10 04 04 00 67 C2 00 00 F4 03 04 00 57 60 C1 66 B6 04 01 00 00 91 72 ED B9 2B BE D6 6D [08:47:20]CommunicateWithHost err = 0 [08:47:20]CheckOFDResponse [08:47:20]1017 (14) - 77093643461234 [08:47:20]1041 (16) - 0000000000871800 [08:47:20]1040 (4) - 49767 [08:47:20]1012 (4) - 18.08.2024 02:45 [08:47:20]1206 (1) - 0 [08:47:20]OFD Sender: Remove packet 49767 [08:47:20]ProducePacketName [08:47:20]name=ofd_packets/00049767 [08:47:20]NVStorageDeleteData [08:47:20]OFD Sender: No OFD packet to send [08:47:21]*** Cut start [08:47:21]*** Purtial cut [08:47:21]*** CUTSNS_PIN = 0 [08:47:21]*** Stage 1: CUTSNS_PIN = 1 [08:47:23]Read from MH i2c: 01 [08:47:23]MH_I2C_Read... [08:47:23]*** Stop cut motor [08:47:23]*** Cut end [08:47:23]Read from MH i2c: 01 07 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: 01 07 00 41 47 00 00 00 00 00 FF 0F 9D [08:47:23]process_action close_receipt done [08:47:23]requested_data is exist [08:47:23]produce_requested_data [08:47:23]requested_item fm.sn is exist - process it [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 11 00 00 [08:47:23]Write to MH i2c: E2 08 00 42 47 80 11 00 00 00 00 00 00 03 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 17 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 17 00 42 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [08:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:23]wFMCommunicate OK [08:47:23]requested_item fd.num is exist - process it [08:47:23]SAM_PROTO_GetFieldsCounters [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 13 00 00 [08:47:23]Write to MH i2c: E2 08 00 43 47 80 13 00 00 00 00 00 00 06 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 62 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 62 00 43 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 67 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [08:47:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 67 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_GetFieldsCounters done [08:47:23]requested_item shift.num is exist - process it [08:47:23]requested_item shift.opened is exist - process it [08:47:23]req_shift_opened [08:47:23]FM_GetShiftState [08:47:23]SAM_PROTO_GetShiftState [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 13 01 00 [08:47:23]Write to MH i2c: E2 08 00 44 47 80 13 01 00 00 00 00 00 08 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0E 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0E 00 44 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 25 [08:47:23]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_GetShiftState done [08:47:23]FM_GetShiftState done [08:47:23]req_shift_opened done [08:47:23]requested_item shift.open_date is exist - process it [08:47:23]req_shift_open_date [08:47:23]req_shift_open_date done [08:47:23]produce_requested_data done [08:47:23]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49767,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:47:23]process_action_free close_receipt [08:47:23]json_value_free [08:47:23]json_value_free done [08:47:23]process_json_proto returns [08:47:23]Send response to host [08:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49767,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:47:23]free response buf [08:47:23]execute_script done [08:47:23]execute_script returns [08:47:23]free content buf [08:47:23]Sock 7.Close socket [08:47:23]Sock 7.Thread stoped [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:06]accept exits with 9 [08:53:06]New connection [08:53:06]New thread 3066944868 created [08:53:06]Thread 3066801508 joined [08:53:06]Waiting for new connection... [08:53:06] Sock 9.Parse request [08:53:06]Sock 9.Check first char [08:53:06]Sock 9.First char is OK [08:53:06]request: POST /json_proto HTTP/1.0 [08:53:06]Method: POST [08:53:06]URL: /json_proto [08:53:06]Method is POST - this is cgi request [08:53:06]url: /json_proto [08:53:06]query_string will be loaded in cgi processing [08:53:06]execute_cgi json_proto POST (null) [08:53:06]execute_cgi path=json_proto method=POST [08:53:06]POST find Content-Length [08:53:06]Host: 172.17.46.196:8080 [08:53:06]Content-Length: 879 [08:53:06]Content-Type: application/json [08:53:06] [08:53:06]POST finish read [08:53:06]Found Content-Length = 879 [08:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189947", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:06]execute_script... [08: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 : (3)189947", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:06]POST & json_proto [08:53:06]process_json_proto [08:53:06]json parsed OK: [08:53:06]protocol is kg_v1.0 [08:53:06]action value=close_receipt [08:53:06]process_action close_receipt [08:53:06]cmd_close_receipt [08:53:06]MH_GetDate [08:53:06]Write to MH i2c: F0 00 00 45 47 7B [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 09 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: F0 09 00 45 47 00 7A B6 C1 66 07 E8 5D 66 8D [08:53:06]GetLastDocTimeStamp 1723970845 [08:53:06]current date 1723971194 [08:53:06]FM_GetShiftState [08:53:06]SAM_PROTO_GetShiftState [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 01 00 [08:53:06]Write to MH i2c: E2 08 00 46 47 80 13 01 00 00 00 00 00 0A [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 46 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 27 [08:53:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetShiftState done [08:53:06]FM_GetShiftState done [08:53:06]opened in 1723939759 [08:53:06]opened+sec_in_day 1724026159 [08:53:06]quantity*price = 28000 [08:53:06]sum+1 = 28001 [08:53:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 410.00 НСП 1% : 3.63 НДС 12% : 43.53 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 34 18.08.2024 08:53 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49768 ФПД: 140118177044924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085315&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49768&fm=140118177044924&tin=02508201610067®Number=0000000000092546&sum=41000 0 [08:53:08]StoreToDocumentArchive [08:53:08]shift 466 fd 49768 [08:53:08]save to /storage/0466/doc_00049768 [08:53:08]save last doc name /storage/0466/doc_00049768 to /storage/kkm_last_doc_name [08:53:08]save OK [08:53:08]Clear old archive folders... [08:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=381 [08:53:08]tlvbuf is 018FAEE0 [08:53:08]SAM_PROTO_ClearQueue [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 09 00 00 [08:53:08]Write to MH i2c: E2 08 00 53 47 80 09 00 00 00 00 00 00 0C [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 53 47 00 90 00 0E [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]SAM_PROTO_ClearQueue done [08:53:08]KKMCreateOFDPacket [08:53:08]OFDProtocolAddRootSTLVToBuf [08:53:08]FM_MakeSignedData [08:53:08]FM_MakeSignedData [08:53:08]SAM_PROTO_SignData [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 01 02 [08:53:08]Write to MH i2c: E2 08 00 54 47 80 0D 01 02 00 00 00 00 14 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 54 47 00 90 00 0F [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]wFMCommunicate request_size=255 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 [08:53:08]Write to MH i2c: E2 02 01 55 47 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 D7 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 55 47 00 90 00 10 [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]wFMCommunicate request_size=140 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7B B6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C2 00 00 35 04 06 00 7F 6F CE 2B 59 BC [08:53:08]Write to MH i2c: E2 8F 00 56 47 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7B B6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C2 00 00 35 04 06 00 7F 6F CE 2B 59 BC 00 00 98 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 03 00 56 47 00 90 00 11 [08:53:08]RAPDU: 90 00 [08:53:08]wFMCommunicate OK [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 0D 03 02 [08:53:08]Write to MH i2c: E2 08 00 57 47 80 0D 03 02 00 00 00 00 19 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 0B 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 0B 00 57 47 00 8A E0 04 8A 6F 35 73 94 90 00 BD [08:53:08]RAPDU: 8A E0 04 8A 6F 35 73 94 90 00 [08:53:08]wFMCommunicate OK [08:53:08]SAM_PROTO_SignData done [08:53:08]FM_MakeSignedData done [08:53:08]CreateOFDProtocolMessage [08:53:08]wFMCommunicate request_size=4 [08:53:08]MH_SAM_APDU [08:53:08]CAPDU: 80 11 00 00 [08:53:08]Write to MH i2c: E2 08 00 58 47 80 11 00 00 00 00 00 00 19 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:08]Read from MH i2c: E2 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 17 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: E2 17 00 58 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 64 [08:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:53:08]wFMCommunicate OK [08:53:08]CreateOFDProtocolMessage done [08:53:08]OFDSenderStorePacket 49768 [08:53:08]StoreOFDPacket docnum=49768 [08:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 38 24 89 01 62 16 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7B B6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C2 00 00 35 04 06 00 7F 6F CE 2B 59 BC 8A E0 04 8A 6F 35 73 94 [08:53:08]CheckFolder [08:53:08]dirname=/storage/ofd_packets [08:53:08]CheckFolder done [08:53:08]ProducePacketName [08:53:08]name=ofd_packets/00049768 [08:53:08]NVStorageSaveData ofd_packets/00049768 [08:53:08]File name is /storage/ofd_packets/00049768 [08:53:08]Write 431 bytes [08:53:08]NVStorageSaveData done [08:53:08]OFDSenderStorePacket done [08:53:08]KKMCreateOFDPacket done [08:53:08]NVStorageSaveData kkm_last_timestamp [08:53:08]File name is /storage/kkm_last_timestamp [08:53:08]Write 4 bytes [08:53:08]NVStorageSaveData done [08:53:08]ExternCall_PrintAddStr [08:53:08]wPrintStart [08:53:08]Write to MH i2c: 01 00 00 59 47 A0 [08:53:08]Write i2c OK [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 [08:53:08]MH_I2C_Read... [08:53:08]Read from MH i2c: 01 07 00 59 47 00 00 00 00 00 FF 0F B5 [08:53:08]RasterBufferAndPrint [08:53:08]line Счет N : (3)189947 [08:53:08]line ИНН: 02508201610067 [08:53:08]line Контрольно-Кассовый Чек [08:53:08]line ПРОДАЖА [08:53:08]line Товар: 47803008 [08:53:08]line Сигареты Winston XS Blue [08:53:08]line 2.000 * 140.00 [08:53:08]line = 280.00 [08:53:08]line НДС 12% НСП 1% [08:53:08]line > о реализуемом товаре [08:53:08]line Товар: 2000036220012 [08:53:09]line Кофе Капучино XL(GABB TRADE) [08:53:09]line 1.000 * 130.00 [08:53:09]line = 130.00 [08:53:09]line НДС 12% НСП 1% [08:53:09]line > о реализуемом товаре [08:53:09]line ИТОГО: 410.00 [08:53:09]line НСП 1% : 3.63 [08:53:09]line НДС 12% : 43.53 [08:53:09]line Наличными: 410.00 [08:53:09]line Безнал.: 0.00 [08:53:09]line Место: АЗС № 95 "Партнер Нефть" [08:53:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:53:09]line СНО: Общий режим [08:53:09]line Чек 34 18.08.2024 08:53 [08:53:09]line Смена: 466 ФФД: 1.0 [08:53:09]line ЗНМ: 0300000078 [08:53:09]line РНМ: 0000000000092546 [08:53:09]line Версия ККМ: 001 [08:53:09]line ФМ: 0000000000871800 [08:53:09]line ФД: 49768 [08:53:09]line ФПД: 140118177044924 [08:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085315&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49768&fm=140118177044924&tin=02508201610067®Number=0000000000092546&sum=41000 [08:53:09]line 0 [08:53:09]OFD Sender: Processing packet 49768 [packets to send 21, broken 20] [08:53:09]ProducePacketName [08:53:09]name=ofd_packets/00049768 [08:53:09]OFD Sender: To server: pG, [08:53:09]CommunicateWithHost lk.salyk.kg:30040 [08:53:09]ConnectInit lk.salyk.kg [08:53:09]written 0, free lines is 4095 [08:53:09]Connected sock=10 [08:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 38 24 89 01 62 16 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7B B6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C2 00 00 35 04 06 00 7F 6F CE 2B 59 BC 8A E0 04 8A 6F 35 73 94 [08:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 41 53 47 00 A4 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 38 30 30 10 04 04 00 68 C2 00 00 F4 03 04 00 B4 61 C1 66 B6 04 01 00 00 AC 49 1A 47 5B 81 97 3E [08:53:09]CommunicateWithHost err = 0 [08:53:09]CheckOFDResponse [08:53:09]1017 (14) - 77093643461234 [08:53:09]1041 (16) - 0000000000871800 [08:53:09]1040 (4) - 49768 [08:53:09]1012 (4) - 18.08.2024 02:51 [08:53:09]1206 (1) - 0 [08:53:09]OFD Sender: Remove packet 49768 [08:53:09]ProducePacketName [08:53:09]name=ofd_packets/00049768 [08:53:09]NVStorageDeleteData [08:53:09]Write to MH i2c: 01 00 00 88 47 CF [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 07 00 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: 01 07 00 88 47 00 00 00 00 00 80 0C 62 [08:53:09]RasterBufferAndPrint [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]line [08:53:09]written 0, free lines is 3209 [08:53:09]MH_Cut [08:53:09]Write to MH i2c: D1 01 00 8F 47 01 A8 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 01 00 [08:53:09]MH_I2C_Read... [08:53:09]Read from MH i2c: D1 01 00 8F 47 00 A7 [08:53:09]Write to MH i2c: 01 00 00 90 47 D7 [08:53:09]Write i2c OK [08:53:09]MH_I2C_Read... [08:53:10]OFD Sender: No OFD packet to send [08:53:10]*** Cut start [08:53:10]*** Purtial cut [08:53:10]*** Stage 1: CUTSNS_PIN = 1 [08:53:10]Read from MH i2c: 01 [08:53:10]MH_I2C_Read... [08:53:10]*** Stop cut motor [08:53:10]*** Cut end [08:53:10]Read from MH i2c: 01 07 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: 01 07 00 90 47 00 00 00 00 00 FF 0F EC [08:53:10]process_action close_receipt done [08:53:10]requested_data is exist [08:53:10]produce_requested_data [08:53:10]requested_item fm.sn is exist - process it [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 11 00 00 [08:53:10]Write to MH i2c: E2 08 00 91 47 80 11 00 00 00 00 00 00 52 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 17 00 91 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [08:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:53:10]wFMCommunicate OK [08:53:10]requested_item fd.num is exist - process it [08:53:10]SAM_PROTO_GetFieldsCounters [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 00 00 [08:53:10]Write to MH i2c: E2 08 00 92 47 80 13 00 00 00 00 00 00 55 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:10]Read from MH i2c: E2 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 [08:53:10]MH_I2C_Read... [08:53:10]Read from MH i2c: E2 62 00 92 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 68 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [08: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 68 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:10]wFMCommunicate OK [08:53:10]SAM_PROTO_GetFieldsCounters done [08:53:10]requested_item shift.num is exist - process it [08:53:10]requested_item shift.opened is exist - process it [08:53:10]req_shift_opened [08:53:10]FM_GetShiftState [08:53:10]SAM_PROTO_GetShiftState [08:53:10]wFMCommunicate request_size=4 [08:53:10]MH_SAM_APDU [08:53:10]CAPDU: 80 13 01 00 [08:53:10]Write to MH i2c: E2 08 00 93 47 80 13 01 00 00 00 00 00 57 [08:53:10]Write i2c OK [08:53:10]MH_I2C_Read... [08:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:11]Read from MH i2c: E2 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 0E 00 [08:53:11]MH_I2C_Read... [08:53:11]Read from MH i2c: E2 0E 00 93 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 74 [08:53:11]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:53:11]wFMCommunicate OK [08:53:11]SAM_PROTO_GetShiftState done [08:53:11]FM_GetShiftState done [08:53:11]req_shift_opened done [08:53:11]requested_item shift.open_date is exist - process it [08:53:11]req_shift_open_date [08:53:11]req_shift_open_date done [08:53:11]produce_requested_data done [08:53:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49768,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:53:11]process_action_free close_receipt [08:53:11]json_value_free [08:53:11]json_value_free done [08:53:11]process_json_proto returns [08:53:11]Send response to host [08:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49768,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:53:11]free response buf [08:53:11]execute_script done [08:53:11]execute_script returns [08:53:11]free content buf [08:53:11]Sock 9.Close socket [08:53:11]Sock 9.Thread stoped [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:54:59]int [08:54:59]Write to MH i2c: 01 00 00 94 47 DB [08:54:59]*** FLAG_PRN_KEY set [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 94 47 00 08 00 00 00 FF 0F F8 [08:54:59]state=0 [08:54:59]Key pressed [08:54:59]Feed [08:54:59]Write to MH i2c: D8 00 00 95 47 B3 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D8 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D8 01 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D8 01 00 95 47 00 B4 [08:54:59]int [08:54:59]Write to MH i2c: 01 00 00 96 47 DD [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 96 47 00 48 00 00 00 3C 00 68 [08:54:59]state=2 [08:54:59]Key pressed [08:54:59]int [08:54:59]Write to MH i2c: 01 00 00 97 47 DE [08:54:59]*** FLAG_PRN_KEY reset [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 97 47 00 00 00 00 00 FA 0F EE [08:54:59]state=2 [08:54:59]Stop feed [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:32]accept exits with 7 [08:57:32]New connection [08:57:32]New thread 3066801508 created [08:57:32]Thread 3066944868 joined [08:57:32]Waiting for new connection... [08:57:32] Sock 7.Parse request [08:57:32]Sock 7.Check first char [08:57:32]Sock 7.First char is OK [08:57:32]request: POST /json_proto HTTP/1.0 [08:57:32]Method: POST [08:57:32]URL: /json_proto [08:57:32]Method is POST - this is cgi request [08:57:32]url: /json_proto [08:57:32]query_string will be loaded in cgi processing [08:57:32]execute_cgi json_proto POST (null) [08:57:32]execute_cgi path=json_proto method=POST [08:57:32]POST find Content-Length [08:57:32]Host: 172.17.46.196:8080 [08:57:32]Content-Length: 621 [08:57:32]Content-Type: application/json [08:57:32] [08:57:32]POST finish read [08:57:32]Found Content-Length = 621 [08:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189948", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:32]execute_script... [08:57: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 : (3)189948", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:32]POST & json_proto [08:57:32]process_json_proto [08:57:32]json parsed OK: [08:57:32]protocol is kg_v1.0 [08:57:32]action value=close_receipt [08:57:32]process_action close_receipt [08:57:32]cmd_close_receipt [08:57:32]MH_GetDate [08:57:32]Write to MH i2c: F0 00 00 98 47 CE [08:57:32]Write i2c OK [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: F0 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: F0 09 00 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: F0 09 00 98 47 00 84 B7 C1 66 07 E8 5D 66 EB [08:57:32]GetLastDocTimeStamp 1723971195 [08:57:32]current date 1723971460 [08:57:32]FM_GetShiftState [08:57:32]SAM_PROTO_GetShiftState [08:57:32]wFMCommunicate request_size=4 [08:57:32]MH_SAM_APDU [08:57:32]CAPDU: 80 13 01 00 [08:57:32]Write to MH i2c: E2 08 00 99 47 80 13 01 00 00 00 00 00 5D [08:57:32]Write i2c OK [08:57:32]MH_I2C_Read... [08:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:32]Read from MH i2c: E2 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: E2 0E 00 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: E2 0E 00 99 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 7A [08:57:32]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:57:32]wFMCommunicate OK [08:57:32]SAM_PROTO_GetShiftState done [08:57:32]FM_GetShiftState done [08:57:32]opened in 1723939759 [08:57:32]opened+sec_in_day 1724026159 [08:57:32]quantity*price = 14000 [08:57:32]sum+1 = 14001 [08:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 35 18.08.2024 08:57 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49769 ФПД: 80032896764696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085740&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49769&fm=80032896764696&tin=02508201610067®Number=0000000000092546&sum=14000 0 [08:57:33]StoreToDocumentArchive [08:57:33]shift 466 fd 49769 [08:57:33]save to /storage/0466/doc_00049769 [08:57:33]save last doc name /storage/0466/doc_00049769 to /storage/kkm_last_doc_name [08:57:33]save OK [08:57:33]Clear old archive folders... [08:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:57:33]tlvbuf is 01977AF0 [08:57:33]SAM_PROTO_ClearQueue [08:57:33]wFMCommunicate request_size=4 [08:57:33]MH_SAM_APDU [08:57:33]CAPDU: 80 09 00 00 [08:57:33]Write to MH i2c: E2 08 00 A6 47 80 09 00 00 00 00 00 00 5F [08:57:33]Write i2c OK [08:57:33]MH_I2C_Read... [08:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:33]Read from MH i2c: E2 [08:57:33]MH_I2C_Read... [08:57:33]Read from MH i2c: E2 03 00 [08:57:33]MH_I2C_Read... [08:57:33]Read from MH i2c: E2 03 00 A6 47 00 90 00 61 [08:57:33]RAPDU: 90 00 [08:57:33]wFMCommunicate OK [08:57:33]SAM_PROTO_ClearQueue done [08:57:33]KKMCreateOFDPacket [08:57:33]OFDProtocolAddRootSTLVToBuf [08:57:33]FM_MakeSignedData [08:57:33]FM_MakeSignedData [08:57:33]SAM_PROTO_SignData [08:57:33]wFMCommunicate request_size=4 [08:57:33]MH_SAM_APDU [08:57:33]CAPDU: 80 0D 01 02 [08:57:33]Write to MH i2c: E2 08 00 A7 47 80 0D 01 02 00 00 00 00 67 [08:57:33]Write i2c OK [08:57:33]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 A7 47 00 90 00 62 [08:57:34]RAPDU: 90 00 [08:57:34]wFMCommunicate OK [08:57:34]wFMCommunicate request_size=255 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 B7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [08:57:34]Write to MH i2c: E2 02 01 A8 47 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 B7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 B5 [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 A8 47 00 90 00 63 [08:57:34]RAPDU: 90 00 [08:57:34]wFMCommunicate OK [08:57:34]wFMCommunicate request_size=32 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C2 00 00 35 04 06 00 48 CA 1C 61 CB 18 [08:57:34]Write to MH i2c: E2 23 00 A9 47 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C2 00 00 35 04 06 00 48 CA 1C 61 CB 18 00 00 5C [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 03 00 A9 47 00 90 00 64 [08:57:34]RAPDU: 90 00 [08:57:34]wFMCommunicate OK [08:57:34]wFMCommunicate request_size=4 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 0D 03 02 [08:57:34]Write to MH i2c: E2 08 00 AA 47 80 0D 03 02 00 00 00 00 6C [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0B 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0B 00 AA 47 00 D3 C7 DB 70 D5 A7 E2 53 90 00 03 [08:57:34]RAPDU: D3 C7 DB 70 D5 A7 E2 53 90 00 [08:57:34]wFMCommunicate OK [08:57:34]SAM_PROTO_SignData done [08:57:34]FM_MakeSignedData done [08:57:34]CreateOFDProtocolMessage [08:57:34]wFMCommunicate request_size=4 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 11 00 00 [08:57:34]Write to MH i2c: E2 08 00 AB 47 80 11 00 00 00 00 00 00 6C [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 17 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 17 00 AB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B7 [08:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:57:34]wFMCommunicate OK [08:57:34]CreateOFDProtocolMessage done [08:57:34]OFDSenderStorePacket 49769 [08:57:34]StoreOFDPacket docnum=49769 [08:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8C 6C 1D 01 A5 67 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 B7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C2 00 00 35 04 06 00 48 CA 1C 61 CB 18 D3 C7 DB 70 D5 A7 E2 53 [08:57:34]CheckFolder [08:57:34]dirname=/storage/ofd_packets [08:57:34]CheckFolder done [08:57:34]ProducePacketName [08:57:34]name=ofd_packets/00049769 [08:57:34]NVStorageSaveData ofd_packets/00049769 [08:57:34]File name is /storage/ofd_packets/00049769 [08:57:34]Write 323 bytes [08:57:34]NVStorageSaveData done [08:57:34]OFDSenderStorePacket done [08:57:34]KKMCreateOFDPacket done [08:57:34]NVStorageSaveData kkm_last_timestamp [08:57:34]File name is /storage/kkm_last_timestamp [08:57:34]Write 4 bytes [08:57:34]NVStorageSaveData done [08:57:34]ExternCall_PrintAddStr [08:57:34]wPrintStart [08:57:34]Write to MH i2c: 01 00 00 AC 47 F3 [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: 01 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: 01 07 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: 01 07 00 AC 47 00 00 00 00 00 FF 0F 08 [08:57:34]RasterBufferAndPrint [08:57:34]line Счет N : (3)189948 [08:57:34]line ИНН: 02508201610067 [08:57:34]line Контрольно-Кассовый Чек [08:57:34]line ПРОДАЖА [08:57:34]line Товар: 48743570 [08:57:34]line Сигареты Winston XStyle Blue [08:57:34]line 1.000 * 140.00 [08:57:34]line = 140.00 [08:57:34]line НДС 12% НСП 1% [08:57:34]line > о реализуемом товаре [08:57:34]line ИТОГО: 140.00 [08:57:34]line НСП 1% : 1.24 [08:57:34]line НДС 12% : 14.87 [08:57:34]line Наличными: 140.00 [08:57:34]line Безнал.: 0.00 [08:57:34]line Место: АЗС № 95 "Партнер Нефть" [08:57:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:57:34]line СНО: Общий режим [08:57:34]line Чек 35 18.08.2024 08:57 [08:57:34]line Смена: 466 ФФД: 1.0 [08:57:34]line ЗНМ: 0300000078 [08:57:34]line РНМ: 0000000000092546 [08:57:34]line Версия ККМ: 001 [08:57:34]line ФМ: 0000000000871800 [08:57:34]line ФД: 49769 [08:57:34]line ФПД: 80032896764696 [08:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085740&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49769&fm=80032896764696&tin=02508201610067®Number=0000000000092546&sum=14000 [08:57:34]OFD Sender: Processing packet 49769 [packets to send 21, broken 20] [08:57:34]ProducePacketName [08:57:34]name=ofd_packets/00049769 [08:57:34]OFD Sender: To server: pG, [08:57:34]CommunicateWithHost lk.salyk.kg:30040 [08:57:34]ConnectInit lk.salyk.kg [08:57:34]line 0 [08:57:34]written 0, free lines is 4095 [08:57:35]Connected sock=10 [08:57:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8C 6C 1D 01 A5 67 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 84 B7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C2 00 00 35 04 06 00 48 CA 1C 61 CB 18 D3 C7 DB 70 D5 A7 E2 53 [08:57:35]Write to MH i2c: 01 00 00 D4 47 1B [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 07 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 07 00 D4 47 00 00 00 00 00 E5 0C 13 [08:57:35]RasterBufferAndPrint [08:57:35]line [08:57:35]line [08:57:35]line [08:57:35]line [08:57:35]line [08:57:35]written 0, free lines is 3309 [08:57:35]MH_Cut [08:57:35]Write to MH i2c: D1 01 00 DB 47 01 F4 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: D1 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: D1 01 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: D1 01 00 DB 47 00 F3 [08:57:35]Write to MH i2c: 01 00 00 DC 47 23 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0C CF 47 00 1B E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C2 00 00 F4 03 04 00 BE 62 C1 66 B6 04 01 00 00 67 3C 58 08 F7 04 E6 77 [08:57:35]CommunicateWithHost err = 0 [08:57:35]CheckOFDResponse [08:57:35]1017 (14) - 77093643461234 [08:57:35]1041 (16) - 0000000000871800 [08:57:35]1040 (4) - 49769 [08:57:35]1012 (4) - 18.08.2024 02:55 [08:57:35]1206 (1) - 0 [08:57:35]OFD Sender: Remove packet 49769 [08:57:35]ProducePacketName [08:57:35]name=ofd_packets/00049769 [08:57:35]NVStorageDeleteData [08:57:35]OFD Sender: No OFD packet to send [08:57:36]*** Cut start [08:57:36]*** Purtial cut [08:57:36]*** CUTSNS_PIN = 0 [08:57:36]*** Stage 1: CUTSNS_PIN = 1 [08:57:38]Read from MH i2c: 01 [08:57:38]MH_I2C_Read... [08:57:38]*** Stop cut motor [08:57:38]*** Cut end [08:57:38]Read from MH i2c: 01 07 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 DC 47 00 00 00 00 00 FF 0F 38 [08:57:38]process_action close_receipt done [08:57:38]requested_data is exist [08:57:38]produce_requested_data [08:57:38]requested_item fm.sn is exist - process it [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 11 00 00 [08:57:38]Write to MH i2c: E2 08 00 DD 47 80 11 00 00 00 00 00 00 9E [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 17 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 17 00 DD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E9 [08:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:57:38]wFMCommunicate OK [08:57:38]requested_item fd.num is exist - process it [08:57:38]SAM_PROTO_GetFieldsCounters [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 13 00 00 [08:57:38]Write to MH i2c: E2 08 00 DE 47 80 13 00 00 00 00 00 00 A1 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 62 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 62 00 DE 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 69 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [08:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 69 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_GetFieldsCounters done [08:57:38]requested_item shift.num is exist - process it [08:57:38]requested_item shift.opened is exist - process it [08:57:38]req_shift_opened [08:57:38]FM_GetShiftState [08:57:38]SAM_PROTO_GetShiftState [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 13 01 00 [08:57:38]Write to MH i2c: E2 08 00 DF 47 80 13 01 00 00 00 00 00 A3 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0E 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0E 00 DF 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 C0 [08:57:38]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_GetShiftState done [08:57:38]FM_GetShiftState done [08:57:38]req_shift_opened done [08:57:38]requested_item shift.open_date is exist - process it [08:57:38]req_shift_open_date [08:57:38]req_shift_open_date done [08:57:38]produce_requested_data done [08:57:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49769,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [08:57:38]process_action_free close_receipt [08:57:38]json_value_free [08:57:38]json_value_free done [08:57:38]process_json_proto returns [08:57:38]Send response to host [08:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49769,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [08:57:38]free response buf [08:57:38]execute_script done [08:57:38]execute_script returns [08:57:38]free content buf [08:57:38]Sock 7.Close socket [08:57:38]Sock 7.Thread stoped [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:06]int [08:59:06]Write to MH i2c: 01 00 00 E0 47 27 [08:59:06]*** FLAG_PRN_KEY set [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 E0 47 00 08 00 00 00 FF 0F 44 [08:59:06]state=0 [08:59:06]Key pressed [08:59:06]Feed [08:59:06]Write to MH i2c: D8 00 00 E1 47 FF [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D8 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D8 01 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D8 01 00 E1 47 00 00 [08:59:06]int [08:59:06]Write to MH i2c: 01 00 00 E2 47 29 [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 E2 47 00 48 00 00 00 3C 00 B4 [08:59:06]state=2 [08:59:06]Key pressed [08:59:06]int [08:59:06]Write to MH i2c: 01 00 00 E3 47 2A [08:59:06]*** FLAG_PRN_KEY reset [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 E3 47 00 00 00 00 00 FF 0F 3F [08:59:06]state=2 [08:59:06]Stop feed [08:59:07]int [08:59:07]Write to MH i2c: 01 00 00 E4 47 2B [08:59:07]*** FLAG_PRN_PAP1 set [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 E4 47 00 01 00 00 00 FF 0F 41 [08:59:07]state=0 [08:59:07]No paper [08:59:07]int [08:59:07]Write to MH i2c: 01 00 00 E5 47 2C [08:59:07]*** FLAG_PRN_PAP2 set [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 E5 47 00 03 00 00 00 FF 0F 44 [08:59:07]state=0 [08:59:07]No paper [08:59:07]Cover opened [08:59:10]OFD Sender: No OFD packet to send [08:59:12]Write to MH i2c: 01 00 00 E6 47 2D [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: 01 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: 01 07 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: 01 07 00 E6 47 00 03 00 00 00 FF 0F 45 [08:59:12]state=3 [08:59:12]No paper [08:59:12]Cover opened [08:59:13]int [08:59:13]Write to MH i2c: 01 00 00 E7 47 2E [08:59:13]*** FLAG_PRN_PAP1 reset [08:59:13]*** FLAG_PRN_PAP2 reset [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 E7 47 00 00 00 00 00 FF 0F 43 [08:59:13]state=3 [08:59:13]Cover closed [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]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:30]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:07:58]accept exits with 9 [09:07:58]New connection [09:07:58]New thread 3066944868 created [09:07:58]Thread 3066801508 joined [09:07:58]Waiting for new connection... [09:07:58] Sock 9.Parse request [09:07:58]Sock 9.Check first char [09:07:58]Sock 9.First char is OK [09:07:58]request: POST /json_proto HTTP/1.0 [09:07:58]Method: POST [09:07:58]URL: /json_proto [09:07:58]Method is POST - this is cgi request [09:07:58]url: /json_proto [09:07:58]query_string will be loaded in cgi processing [09:07:58]execute_cgi json_proto POST (null) [09:07:58]execute_cgi path=json_proto method=POST [09:07:58]POST find Content-Length [09:07:58]Host: 172.17.46.196:8080 [09:07:58]Content-Length: 644 [09:07:58]Content-Type: application/json [09:07:58] [09:07:58]POST finish read [09:07:58]Found Content-Length = 644 [09:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189949", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:58]execute_script... [09:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189949", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:58]POST & json_proto [09:07:58]process_json_proto [09:07:58]json parsed OK: [09:07:58]protocol is kg_v1.0 [09:07:58]action value=close_receipt [09:07:58]process_action close_receipt [09:07:58]cmd_close_receipt [09:07:58]MH_GetDate [09:07:58]Write to MH i2c: F0 00 00 E8 47 1E [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 09 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 09 00 E8 47 00 F6 B9 C1 66 07 E8 5D 66 AF [09:07:58]GetLastDocTimeStamp 1723971460 [09:07:58]current date 1723972086 [09:07:58]FM_GetShiftState [09:07:58]SAM_PROTO_GetShiftState [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 13 01 00 [09:07:58]Write to MH i2c: E2 08 00 E9 47 80 13 01 00 00 00 00 00 AD [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 E9 47 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CA [09:07:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetShiftState done [09:07:58]FM_GetShiftState done [09:07:58]opened in 1723939759 [09:07:58]opened+sec_in_day 1724026159 [09:07:58]quantity*price = 11500 [09:07:58]sum+1 = 11501 [09:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 36 18.08.2024 09:08 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49770 ФПД: 58235715493721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090806&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49770&fm=58235715493721&tin=02508201610067®Number=0000000000092546&sum=11500 0 [09:07:59]StoreToDocumentArchive [09:07:59]shift 466 fd 49770 [09:07:59]save to /storage/0466/doc_00049770 [09:07:59]save last doc name /storage/0466/doc_00049770 to /storage/kkm_last_doc_name [09:07:59]save OK [09:07:59]Clear old archive folders... [09:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:07:59]tlvbuf is 018D9770 [09:07:59]SAM_PROTO_ClearQueue [09:07:59]wFMCommunicate request_size=4 [09:07:59]MH_SAM_APDU [09:07:59]CAPDU: 80 09 00 00 [09:07:59]Write to MH i2c: E2 08 00 F6 47 80 09 00 00 00 00 00 00 AF [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:59]Read from MH i2c: E2 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 03 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 03 00 F6 47 00 90 00 B1 [09:07:59]RAPDU: 90 00 [09:07:59]wFMCommunicate OK [09:07:59]SAM_PROTO_ClearQueue done [09:07:59]KKMCreateOFDPacket [09:07:59]OFDProtocolAddRootSTLVToBuf [09:07:59]FM_MakeSignedData [09:07:59]FM_MakeSignedData [09:07:59]SAM_PROTO_SignData [09:07:59]wFMCommunicate request_size=4 [09:07:59]MH_SAM_APDU [09:07:59]CAPDU: 80 0D 01 02 [09:07:59]Write to MH i2c: E2 08 00 F7 47 80 0D 01 02 00 00 00 00 B7 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 F7 47 00 90 00 B2 [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=255 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F6 B9 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [09:08:00]Write to MH i2c: E2 02 01 F8 47 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F6 B9 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 C5 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 F8 47 00 90 00 B3 [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=39 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C2 00 00 35 04 06 00 34 F7 0F 22 9F 59 [09:08:00]Write to MH i2c: E2 2A 00 F9 47 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C2 00 00 35 04 06 00 34 F7 0F 22 9F 59 00 00 ED [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 F9 47 00 90 00 B4 [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 03 02 [09:08:00]Write to MH i2c: E2 08 00 FA 47 80 0D 03 02 00 00 00 00 BC [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0B 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0B 00 FA 47 00 63 A6 C9 D3 78 B9 0C 60 90 00 FF [09:08:00]RAPDU: 63 A6 C9 D3 78 B9 0C 60 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_SignData done [09:08:00]FM_MakeSignedData done [09:08:00]CreateOFDProtocolMessage [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 11 00 00 [09:08:00]Write to MH i2c: E2 08 00 FB 47 80 11 00 00 00 00 00 00 BC [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 FB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 07 [09:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:08:00]wFMCommunicate OK [09:08:00]CreateOFDProtocolMessage done [09:08:00]OFDSenderStorePacket 49770 [09:08:00]StoreOFDPacket docnum=49770 [09:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 0B 53 24 01 47 C7 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F6 B9 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C2 00 00 35 04 06 00 34 F7 0F 22 9F 59 63 A6 C9 D3 78 B9 0C 60 [09:08:00]CheckFolder [09:08:00]dirname=/storage/ofd_packets [09:08:00]CheckFolder done [09:08:00]ProducePacketName [09:08:00]name=ofd_packets/00049770 [09:08:00]NVStorageSaveData ofd_packets/00049770 [09:08:00]File name is /storage/ofd_packets/00049770 [09:08:00]Write 330 bytes [09:08:00]NVStorageSaveData done [09:08:00]OFDSenderStorePacket done [09:08:00]KKMCreateOFDPacket done [09:08:00]NVStorageSaveData kkm_last_timestamp [09:08:00]File name is /storage/kkm_last_timestamp [09:08:00]Write 4 bytes [09:08:00]NVStorageSaveData done [09:08:00]ExternCall_PrintAddStr [09:08:00]wPrintStart [09:08:00]Write to MH i2c: 01 00 00 FC 47 43 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 FC 47 00 00 00 00 00 FF 0F 58 [09:08:00]RasterBufferAndPrint [09:08:00]line Счет N : (3)189949 [09:08:00]line ИНН: 02508201610067 [09:08:00]line Контрольно-Кассовый Чек [09:08:00]line ПРОДАЖА [09:08:00]line Товар: 2000036210013 [09:08:00]line Кофе Капучино (GABB TRADE) [09:08:00]line 1.000 * 115.00 [09:08:00]line = 115.00 [09:08:00]line НДС 12% НСП 1% [09:08:00]line > о реализуемом товаре [09:08:00]line ИТОГО: 115.00 [09:08:00]line НСП 1% : 1.02 [09:08:00]line НДС 12% : 12.21 [09:08:00]line Наличными: 115.00 [09:08:00]line Безнал.: 0.00 [09:08:00]line Место: АЗС № 95 "Партнер Нефть" [09:08:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:08:00]line СНО: Общий режим [09:08:00]line Чек 36 18.08.2024 09:08 [09:08:00]line Смена: 466 ФФД: 1.0 [09:08:00]line ЗНМ: 0300000078 [09:08:00]line РНМ: 0000000000092546 [09:08:00]line Версия ККМ: 001 [09:08:00]line ФМ: 0000000000871800 [09:08:00]line ФД: 49770 [09:08:00]line ФПД: 58235715493721 [09:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090806&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49770&fm=58235715493721&tin=02508201610067®Number=0000000000092546&sum=11500 [09:08:00]line 0 [09:08:00]OFD Sender: Processing packet 49770 [packets to send 21, broken 20] [09:08:00]ProducePacketName [09:08:00]name=ofd_packets/00049770 [09:08:00]OFD Sender: To server: pG, [09:08:00]CommunicateWithHost lk.salyk.kg:30040 [09:08:00]ConnectInit lk.salyk.kg [09:08:00]written 0, free lines is 4095 [09:08:00]Connected sock=10 [09:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 0B 53 24 01 47 C7 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F6 B9 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C2 00 00 35 04 06 00 34 F7 0F 22 9F 59 63 A6 C9 D3 78 B9 0C 60 [09:08:01]Write to MH i2c: 01 00 00 24 48 6C [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 24 48 00 00 00 00 00 01 0D 81 [09:08:01]RasterBufferAndPrint [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D5 5B 47 00 E7 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C2 00 00 F4 03 04 00 30 65 C1 66 B6 04 01 00 00 0F 8F FB D8 F3 1B C0 06 [09:08:01]CommunicateWithHost err = 0 [09:08:01]CheckOFDResponse [09:08:01]1017 (14) - 77093643461234 [09:08:01]1041 (16) - 0000000000871800 [09:08:01]1040 (4) - 49770 [09:08:01]1012 (4) - 18.08.2024 03:06 [09:08:01]1206 (1) - 0 [09:08:01]OFD Sender: Remove packet 49770 [09:08:01]ProducePacketName [09:08:01]name=ofd_packets/00049770 [09:08:01]NVStorageDeleteData [09:08:01]written 0, free lines is 3338 [09:08:01]MH_Cut [09:08:01]Write to MH i2c: D1 01 00 2B 48 01 45 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 01 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 01 00 2B 48 00 44 [09:08:01]Write to MH i2c: 01 00 00 2C 48 74 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]OFD Sender: No OFD packet to send [09:08:02]*** Cut start [09:08:02]*** Purtial cut [09:08:02]*** Stage 1: CUTSNS_PIN = 1 [09:08:02]Read from MH i2c: 01 [09:08:02]MH_I2C_Read... [09:08:02]*** Stop cut motor [09:08:02]*** Cut end [09:08:02]Read from MH i2c: 01 07 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: 01 07 00 2C 48 00 00 00 00 00 FF 0F 89 [09:08:02]process_action close_receipt done [09:08:02]requested_data is exist [09:08:02]produce_requested_data [09:08:02]requested_item fm.sn is exist - process it [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 11 00 00 [09:08:02]Write to MH i2c: E2 08 00 2D 48 80 11 00 00 00 00 00 00 EF [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 17 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 17 00 2D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3A [09:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:08:02]wFMCommunicate OK [09:08:02]requested_item fd.num is exist - process it [09:08:02]SAM_PROTO_GetFieldsCounters [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 13 00 00 [09:08:02]Write to MH i2c: E2 08 00 2E 48 80 13 00 00 00 00 00 00 F2 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 62 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 62 00 2E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [09:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:02]wFMCommunicate OK [09:08:02]SAM_PROTO_GetFieldsCounters done [09:08:02]requested_item shift.num is exist - process it [09:08:02]requested_item shift.opened is exist - process it [09:08:02]req_shift_opened [09:08:02]FM_GetShiftState [09:08:02]SAM_PROTO_GetShiftState [09:08:02]wFMCommunicate request_size=4 [09:08:02]MH_SAM_APDU [09:08:02]CAPDU: 80 13 01 00 [09:08:02]Write to MH i2c: E2 08 00 2F 48 80 13 01 00 00 00 00 00 F4 [09:08:02]Write i2c OK [09:08:02]MH_I2C_Read... [09:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:02]Read from MH i2c: E2 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 0E 00 [09:08:02]MH_I2C_Read... [09:08:02]Read from MH i2c: E2 0E 00 2F 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 11 [09:08:02]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:08:02]wFMCommunicate OK [09:08:02]SAM_PROTO_GetShiftState done [09:08:02]FM_GetShiftState done [09:08:02]req_shift_opened done [09:08:02]requested_item shift.open_date is exist - process it [09:08:02]req_shift_open_date [09:08:02]req_shift_open_date done [09:08:02]produce_requested_data done [09:08:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49770,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:08:02]process_action_free close_receipt [09:08:02]json_value_free [09:08:02]json_value_free done [09:08:02]process_json_proto returns [09:08:02]Send response to host [09:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49770,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:08:02]free response buf [09:08:02]execute_script done [09:08:02]execute_script returns [09:08:02]free content buf [09:08:02]Sock 9.Close socket [09:08:02]Sock 9.Thread stoped [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:41]accept exits with 7 [09:22:41]New connection [09:22:41]New thread 3066801508 created [09:22:41]Thread 3066944868 joined [09:22:41]Waiting for new connection... [09:22:41] Sock 7.Parse request [09:22:41]Sock 7.Check first char [09:22:41]Sock 7.First char is OK [09:22:41]request: POST /json_proto HTTP/1.0 [09:22:41]Method: POST [09:22:41]URL: /json_proto [09:22:41]Method is POST - this is cgi request [09:22:41]url: /json_proto [09:22:41]query_string will be loaded in cgi processing [09:22:41]execute_cgi json_proto POST (null) [09:22:41]execute_cgi path=json_proto method=POST [09:22:41]POST find Content-Length [09:22:41]Host: 172.17.46.196:8080 [09:22:41]Content-Length: 897 [09:22:41]Content-Type: application/json [09:22:41] [09:22:41]POST finish read [09:22:41]Found Content-Length = 897 [09:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189950", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077641367", "name": "\u041F\u0435\u0447 \u0441 \u043E\u0440\u0435\u0445 \u043D\u0430\u0447 LOVITA SOFT CREAM COOKIES", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:41]execute_script... [09:22:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189950", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077641367", "name": "\u041F\u0435\u0447 \u0441 \u043E\u0440\u0435\u0445 \u043D\u0430\u0447 LOVITA SOFT CREAM COOKIES", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:41]POST & json_proto [09:22:41]process_json_proto [09:22:41]json parsed OK: [09:22:41]protocol is kg_v1.0 [09:22:41]action value=close_receipt [09:22:41]process_action close_receipt [09:22:41]cmd_close_receipt [09:22:41]MH_GetDate [09:22:41]Write to MH i2c: F0 00 00 30 48 67 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: F0 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: F0 09 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: F0 09 00 30 48 00 69 BD C1 66 07 E8 5D 66 6F [09:22:41]GetLastDocTimeStamp 1723972086 [09:22:41]current date 1723972969 [09:22:41]FM_GetShiftState [09:22:41]SAM_PROTO_GetShiftState [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 13 01 00 [09:22:41]Write to MH i2c: E2 08 00 31 48 80 13 01 00 00 00 00 00 F6 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 31 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 13 [09:22:41]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_GetShiftState done [09:22:41]FM_GetShiftState done [09:22:41]opened in 1723939759 [09:22:41]opened+sec_in_day 1724026159 [09:22:41]quantity*price = 13000 [09:22:41]sum+1 = 13001 [09:22:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077641367 Печ с орех нач LOVITA SOFT CREAM COOKIES 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 37 18.08.2024 09:22 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49771 ФПД: 259453182106665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092250&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49771&fm=259453182106665&tin=02508201610067®Number=0000000000092546&sum=26000 0 [09:22:43]StoreToDocumentArchive [09:22:43]shift 466 fd 49771 [09:22:43]save to /storage/0466/doc_00049771 [09:22:43]save last doc name /storage/0466/doc_00049771 to /storage/kkm_last_doc_name [09:22:43]save OK [09:22:43]Clear old archive folders... [09:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=399 [09:22:43]tlvbuf is 01879AC0 [09:22:43]SAM_PROTO_ClearQueue [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 09 00 00 [09:22:43]Write to MH i2c: E2 08 00 3E 48 80 09 00 00 00 00 00 00 F8 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 3E 48 00 90 00 FA [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]SAM_PROTO_ClearQueue done [09:22:43]KKMCreateOFDPacket [09:22:43]OFDProtocolAddRootSTLVToBuf [09:22:43]FM_MakeSignedData [09:22:43]FM_MakeSignedData [09:22:43]SAM_PROTO_SignData [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 01 02 [09:22:43]Write to MH i2c: E2 08 00 3F 48 80 0D 01 02 00 00 00 00 00 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 3F 48 00 90 00 FB [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=255 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 36 37 06 04 33 00 D0 9F D0 B5 D1 87 20 D1 81 20 D0 BE D1 80 D0 B5 D1 85 20 D0 BD D0 B0 D1 87 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 [09:22:43]Write to MH i2c: E2 02 01 40 48 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 36 37 06 04 33 00 D0 9F D0 B5 D1 87 20 D1 81 20 D0 BE D1 80 D0 B5 D1 85 20 D0 BD D0 B0 D1 87 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 00 00 5E [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 40 48 00 90 00 FC [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=158 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6A BD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C2 00 00 35 04 06 00 EB F8 A6 C1 5C 29 [09:22:43]Write to MH i2c: E2 A1 00 41 48 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6A BD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C2 00 00 35 04 06 00 EB F8 A6 C1 5C 29 00 00 6C [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 03 00 41 48 00 90 00 FD [09:22:43]RAPDU: 90 00 [09:22:43]wFMCommunicate OK [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 0D 03 02 [09:22:43]Write to MH i2c: E2 08 00 42 48 80 0D 03 02 00 00 00 00 05 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 0B 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 0B 00 42 48 00 F8 0A 8B 12 D4 E2 67 5A 90 00 1C [09:22:43]RAPDU: F8 0A 8B 12 D4 E2 67 5A 90 00 [09:22:43]wFMCommunicate OK [09:22:43]SAM_PROTO_SignData done [09:22:43]FM_MakeSignedData done [09:22:43]CreateOFDProtocolMessage [09:22:43]wFMCommunicate request_size=4 [09:22:43]MH_SAM_APDU [09:22:43]CAPDU: 80 11 00 00 [09:22:43]Write to MH i2c: E2 08 00 43 48 80 11 00 00 00 00 00 00 05 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:43]Read from MH i2c: E2 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 17 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: E2 17 00 43 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 50 [09:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:22:43]wFMCommunicate OK [09:22:43]CreateOFDProtocolMessage done [09:22:43]OFDSenderStorePacket 49771 [09:22:43]StoreOFDPacket docnum=49771 [09:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 6F 24 9B 01 AA 79 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 36 37 06 04 33 00 D0 9F D0 B5 D1 87 20 D1 81 20 D0 BE D1 80 D0 B5 D1 85 20 D0 BD D0 B0 D1 87 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6A BD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C2 00 00 35 04 06 00 EB F8 A6 C1 5C 29 F8 0A 8B 12 D4 E2 67 5A [09:22:43]CheckFolder [09:22:43]dirname=/storage/ofd_packets [09:22:43]CheckFolder done [09:22:43]ProducePacketName [09:22:43]name=ofd_packets/00049771 [09:22:43]NVStorageSaveData ofd_packets/00049771 [09:22:43]File name is /storage/ofd_packets/00049771 [09:22:43]Write 449 bytes [09:22:43]NVStorageSaveData done [09:22:43]OFDSenderStorePacket done [09:22:43]KKMCreateOFDPacket done [09:22:43]NVStorageSaveData kkm_last_timestamp [09:22:43]File name is /storage/kkm_last_timestamp [09:22:43]Write 4 bytes [09:22:43]NVStorageSaveData done [09:22:43]ExternCall_PrintAddStr [09:22:43]wPrintStart [09:22:43]Write to MH i2c: 01 00 00 44 48 8C [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 44 48 00 00 00 00 00 FF 0F A1 [09:22:43]RasterBufferAndPrint [09:22:43]line Счет N : (3)189950 [09:22:43]line ИНН: 02508201610067 [09:22:43]line Контрольно-Кассовый Чек [09:22:43]line ПРОДАЖА [09:22:43]line Товар: 2000036230011 [09:22:44]line Кофе Латте XL(GABB TRADE) [09:22:44]line 1.000 * 130.00 [09:22:44]line = 130.00 [09:22:44]line НДС 12% НСП 1% [09:22:44]line > о реализуемом товаре [09:22:44]line Товар: 4823077641367 [09:22:44]line Печ с орех нач LOVITA SOFT CREAM COOKIES [09:22:44]line 1.000 * 130.00 [09:22:44]line = 130.00 [09:22:44]line НДС 12% НСП 1% [09:22:44]line > о реализуемом товаре [09:22:44]line ИТОГО: 260.00 [09:22:44]line НСП 1% : 2.30 [09:22:44]line НДС 12% : 27.60 [09:22:44]line Наличными: 260.00 [09:22:44]line Безнал.: 0.00 [09:22:44]line Место: АЗС № 95 "Партнер Нефть" [09:22:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:22:44]line СНО: Общий режим [09:22:44]line Чек 37 18.08.2024 09:22 [09:22:44]line Смена: 466 ФФД: 1.0 [09:22:44]line ЗНМ: 0300000078 [09:22:44]line РНМ: 0000000000092546 [09:22:44]line Версия ККМ: 001 [09:22:44]line ФМ: 0000000000871800 [09:22:44]line ФД: 49771 [09:22:44]line ФПД: 259453182106665 [09:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092250&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49771&fm=259453182106665&tin=02508201610067®Number=0000000000092546&sum=26000 [09:22:44]line 0 [09:22:44]OFD Sender: Processing packet 49771 [packets to send 21, broken 20] [09:22:44]ProducePacketName [09:22:44]name=ofd_packets/00049771 [09:22:44]OFD Sender: To server: pG, [09:22:44]CommunicateWithHost lk.salyk.kg:30040 [09:22:44]ConnectInit lk.salyk.kg [09:22:44]written 0, free lines is 4095 [09:22:44]Connected sock=10 [09:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 6F 24 9B 01 AA 79 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 34 31 33 36 37 06 04 33 00 D0 9F D0 B5 D1 87 20 D1 81 20 D0 BE D1 80 D0 B5 D1 85 20 D0 BD D0 B0 D1 87 20 4C 4F 56 49 54 41 20 53 4F 46 54 20 43 52 45 41 4D 20 43 4F 4F 4B 49 45 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6A BD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C2 00 00 35 04 06 00 EB F8 A6 C1 5C 29 F8 0A 8B 12 D4 E2 67 5A [09:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D1 24 47 00 58 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C2 00 00 F4 03 04 00 A3 68 C1 66 B6 04 01 00 00 08 FF F0 5B 7D 91 CD 49 [09:22:44]CommunicateWithHost err = 0 [09:22:44]CheckOFDResponse [09:22:44]1017 (14) - 77093643461234 [09:22:44]1041 (16) - 0000000000871800 [09:22:44]1040 (4) - 49771 [09:22:44]1012 (4) - 18.08.2024 03:21 [09:22:44]1206 (1) - 0 [09:22:44]OFD Sender: Remove packet 49771 [09:22:44]ProducePacketName [09:22:44]name=ofd_packets/00049771 [09:22:44]NVStorageDeleteData [09:22:44]Write to MH i2c: 01 00 00 73 48 BB [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 07 00 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: 01 07 00 73 48 00 00 00 00 00 91 0C 5F [09:22:44]RasterBufferAndPrint [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]line [09:22:44]written 0, free lines is 3224 [09:22:44]MH_Cut [09:22:44]Write to MH i2c: D1 01 00 7A 48 01 94 [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 01 00 [09:22:44]MH_I2C_Read... [09:22:44]Read from MH i2c: D1 01 00 7A 48 00 93 [09:22:44]Write to MH i2c: 01 00 00 7B 48 C3 [09:22:44]Write i2c OK [09:22:44]MH_I2C_Read... [09:22:44]OFD Sender: No OFD packet to send [09:22:45]*** Cut start [09:22:45]*** Purtial cut [09:22:45]*** CUTSNS_PIN = 0 [09:22:45]*** Stage 1: CUTSNS_PIN = 1 [09:22:47]Read from MH i2c: 01 [09:22:47]MH_I2C_Read... [09:22:47]*** Stop cut motor [09:22:47]*** Cut end [09:22:47]Read from MH i2c: 01 07 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: 01 07 00 7B 48 00 00 00 00 00 FF 0F D8 [09:22:47]process_action close_receipt done [09:22:47]requested_data is exist [09:22:47]produce_requested_data [09:22:47]requested_item fm.sn is exist - process it [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 11 00 00 [09:22:47]Write to MH i2c: E2 08 00 7C 48 80 11 00 00 00 00 00 00 3E [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 17 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 17 00 7C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [09:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:22:47]wFMCommunicate OK [09:22:47]requested_item fd.num is exist - process it [09:22:47]SAM_PROTO_GetFieldsCounters [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 13 00 00 [09:22:47]Write to MH i2c: E2 08 00 7D 48 80 13 00 00 00 00 00 00 41 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 62 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 62 00 7D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:47]wFMCommunicate OK [09:22:47]SAM_PROTO_GetFieldsCounters done [09:22:47]requested_item shift.num is exist - process it [09:22:47]requested_item shift.opened is exist - process it [09:22:47]req_shift_opened [09:22:47]FM_GetShiftState [09:22:47]SAM_PROTO_GetShiftState [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 13 01 00 [09:22:47]Write to MH i2c: E2 08 00 7E 48 80 13 01 00 00 00 00 00 43 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 0E 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 0E 00 7E 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 60 [09:22:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:22:47]wFMCommunicate OK [09:22:47]SAM_PROTO_GetShiftState done [09:22:47]FM_GetShiftState done [09:22:47]req_shift_opened done [09:22:47]requested_item shift.open_date is exist - process it [09:22:47]req_shift_open_date [09:22:47]req_shift_open_date done [09:22:47]produce_requested_data done [09:22:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49771,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:22:47]process_action_free close_receipt [09:22:47]json_value_free [09:22:47]json_value_free done [09:22:47]process_json_proto returns [09:22:47]Send response to host [09:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49771,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:22:47]free response buf [09:22:47]execute_script done [09:22:47]execute_script returns [09:22:47]free content buf [09:22:47]Sock 7.Close socket [09:22:47]Sock 7.Thread stoped [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23: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:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:07]accept exits with 9 [09:32:07]New connection [09:32:07]New thread 3066944868 created [09:32:07]Thread 3066801508 joined [09:32:07]Waiting for new connection... [09:32:07] Sock 9.Parse request [09:32:07]Sock 9.Check first char [09:32:07]Sock 9.First char is OK [09:32:07]request: POST /json_proto HTTP/1.0 [09:32:07]Method: POST [09:32:07]URL: /json_proto [09:32:07]Method is POST - this is cgi request [09:32:07]url: /json_proto [09:32:07]query_string will be loaded in cgi processing [09:32:07]execute_cgi json_proto POST (null) [09:32:07]execute_cgi path=json_proto method=POST [09:32:07]POST find Content-Length [09:32:07]Host: 172.17.46.196:8080 [09:32:07]Content-Length: 1482 [09:32:07]Content-Type: application/json [09:32:07] [09:32:07]POST finish read [09:32:07]Found Content-Length = 1482 [09:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189951", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:07]execute_script... [09:32:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189951", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:07]POST & json_proto [09:32:07]process_json_proto [09:32:07]json parsed OK: [09:32:07]protocol is kg_v1.0 [09:32:07]action value=close_receipt [09:32:07]process_action close_receipt [09:32:07]cmd_close_receipt [09:32:07]MH_GetDate [09:32:07]Write to MH i2c: F0 00 00 7F 48 B6 [09:32:07]Write i2c OK [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: F0 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: F0 09 00 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: F0 09 00 7F 48 00 9F BF C1 66 07 E8 5D 66 F6 [09:32:07]GetLastDocTimeStamp 1723972970 [09:32:07]current date 1723973535 [09:32:07]FM_GetShiftState [09:32:07]SAM_PROTO_GetShiftState [09:32:07]wFMCommunicate request_size=4 [09:32:07]MH_SAM_APDU [09:32:07]CAPDU: 80 13 01 00 [09:32:07]Write to MH i2c: E2 08 00 80 48 80 13 01 00 00 00 00 00 45 [09:32:07]Write i2c OK [09:32:07]MH_I2C_Read... [09:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:07]Read from MH i2c: E2 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: E2 0E 00 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: E2 0E 00 80 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 62 [09:32:07]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:32:07]wFMCommunicate OK [09:32:07]SAM_PROTO_GetShiftState done [09:32:07]FM_GetShiftState done [09:32:07]opened in 1723939759 [09:32:07]opened+sec_in_day 1724026159 [09:32:07]quantity*price = 12500 [09:32:07]sum+1 = 12501 [09:32:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.42 НДС 12% : 29.09 Наличными: 274.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 38 18.08.2024 09:32 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49772 ФПД: 257888452270472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093215&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49772&fm=257888452270472&tin=02508201610067®Number=0000000000092546&sum=27400 0 [09:32:08]StoreToDocumentArchive [09:32:08]shift 466 fd 49772 [09:32:08]save to /storage/0466/doc_00049772 [09:32:08]save last doc name /storage/0466/doc_00049772 to /storage/kkm_last_doc_name [09:32:08]save OK [09:32:08]Clear old archive folders... [09:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=624 [09:32:08]tlvbuf is 019616A0 [09:32:08]SAM_PROTO_ClearQueue [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 09 00 00 [09:32:08]Write to MH i2c: E2 08 00 8D 48 80 09 00 00 00 00 00 00 47 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 03 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 03 00 8D 48 00 90 00 49 [09:32:08]RAPDU: 90 00 [09:32:08]wFMCommunicate OK [09:32:08]SAM_PROTO_ClearQueue done [09:32:08]KKMCreateOFDPacket [09:32:08]OFDProtocolAddRootSTLVToBuf [09:32:08]FM_MakeSignedData [09:32:08]FM_MakeSignedData [09:32:08]SAM_PROTO_SignData [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 0D 01 02 [09:32:08]Write to MH i2c: E2 08 00 8E 48 80 0D 01 02 00 00 00 00 4F [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 8E 48 00 90 00 4A [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=255 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 FA 03 00 70 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 [09:32:09]Write to MH i2c: E2 02 01 8F 48 80 0D 02 02 FA 00 03 00 70 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 00 00 86 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 8F 48 00 90 00 4B [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=255 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 FA 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 [09:32:09]Write to MH i2c: E2 02 01 90 48 80 0D 02 02 FA 00 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 00 00 D4 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 90 48 00 90 00 4C [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=133 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9F BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C2 00 00 35 04 06 00 EA 8C 55 96 D9 88 [09:32:09]Write to MH i2c: E2 88 00 91 48 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9F BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C2 00 00 35 04 06 00 EA 8C 55 96 D9 88 00 00 C2 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 91 48 00 90 00 4D [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 03 02 [09:32:09]Write to MH i2c: E2 08 00 92 48 80 0D 03 02 00 00 00 00 55 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 92 48 00 8B 1C CD BA E5 20 D2 D4 90 00 2F [09:32:09]RAPDU: 8B 1C CD BA E5 20 D2 D4 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_SignData done [09:32:09]FM_MakeSignedData done [09:32:09]CreateOFDProtocolMessage [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 11 00 00 [09:32:09]Write to MH i2c: E2 08 00 93 48 80 11 00 00 00 00 00 00 55 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 93 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A0 [09:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:32:09]wFMCommunicate OK [09:32:09]CreateOFDProtocolMessage done [09:32:09]OFDSenderStorePacket 49772 [09:32:09]StoreOFDPacket docnum=49772 [09:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 84 02 00 00 66 AA 7C 02 D7 F6 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9F BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C2 00 00 35 04 06 00 EA 8C 55 96 D9 88 8B 1C CD BA E5 20 D2 D4 [09:32:09]CheckFolder [09:32:09]dirname=/storage/ofd_packets [09:32:09]CheckFolder done [09:32:09]ProducePacketName [09:32:09]name=ofd_packets/00049772 [09:32:09]NVStorageSaveData ofd_packets/00049772 [09:32:09]File name is /storage/ofd_packets/00049772 [09:32:09]Write 674 bytes [09:32:09]NVStorageSaveData done [09:32:09]OFDSenderStorePacket done [09:32:09]KKMCreateOFDPacket done [09:32:09]NVStorageSaveData kkm_last_timestamp [09:32:09]File name is /storage/kkm_last_timestamp [09:32:09]Write 4 bytes [09:32:09]NVStorageSaveData done [09:32:09]ExternCall_PrintAddStr [09:32:09]wPrintStart [09:32:09]Write to MH i2c: 01 00 00 94 48 DC [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 94 48 00 00 00 00 00 FF 0F F1 [09:32:09]RasterBufferAndPrint [09:32:09]line Счет N : (3)189951 [09:32:09]line ИНН: 02508201610067 [09:32:09]line Контрольно-Кассовый Чек [09:32:09]line ПРОДАЖА [09:32:09]line Товар: 4870202521247 [09:32:09]line Напиток MAXI чай 1,2 черн.персик [09:32:09]line 1.000 * 125.00 [09:32:09]line = 125.00 [09:32:09]line НДС 12% НСП 1% [09:32:09]line > о реализуемом товаре [09:32:10]line Товар: 4700000160358 [09:32:10]line Вода Легенда 1л [09:32:10]line 1.000 * 50.00 [09:32:10]line = 50.00 [09:32:10]line НДС 12% НСП 1% [09:32:10]line > о реализуемом товаре [09:32:10]line Товар: 4700000480050 [09:32:10]line Напиток Nitro Energy эн green ж/б 0,45л [09:32:10]line 1.000 * 95.00 [09:32:10]line = 95.00 [09:32:10]line НДС 12% НСП 1% [09:32:10]line > о реализуемом товаре [09:32:10]line Товар: 2000031750019 [09:32:10]line Пакет Партнер Нефть [09:32:10]line 1.000 * 4.00 [09:32:10]line = 4.00 [09:32:10]line НДС 12% НСП 1% [09:32:10]line > о реализуемом товаре [09:32:10]line ИТОГО: 274.00 [09:32:10]line НСП 1% : 2.42 [09:32:10]line НДС 12% : 29.09 [09:32:10]line Наличными: 274.00 [09:32:10]line Безнал.: 0.00 [09:32:10]line Место: АЗС № 95 "Партнер Нефть" [09:32:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:32:10]line СНО: Общий режим [09:32:10]line Чек 38 18.08.2024 09:32 [09:32:10]line Смена: 466 ФФД: 1.0 [09:32:10]line ЗНМ: 0300000078 [09:32:10]line РНМ: 0000000000092546 [09:32:10]line Версия ККМ: 001 [09:32:10]line ФМ: 0000000000871800 [09:32:10]line ФД: 49772 [09:32:10]line ФПД: 257888452270472 [09:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093215&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49772&fm=257888452270472&tin=02508201610067®Number=0000000000092546&sum=27400 [09:32:10]line 0 [09:32:10]OFD Sender: Processing packet 49772 [packets to send 21, broken 20] [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00049772 [09:32:10]OFD Sender: To server: pG, [09:32:10]CommunicateWithHost lk.salyk.kg:30040 [09:32:10]ConnectInit lk.salyk.kg [09:32:10]written 0, free lines is 4095 [09:32:10]Connected sock=10 [09:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 84 02 00 00 66 AA 7C 02 D7 F6 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9F BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C2 00 00 35 04 06 00 EA 8C 55 96 D9 88 8B 1C CD BA E5 20 D2 D4 [09:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC 6D 47 00 06 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C2 00 00 F4 03 04 00 D9 6A C1 66 B6 04 01 00 00 4C BB 7F 72 88 08 B3 68 [09:32:10]CommunicateWithHost err = 0 [09:32:10]CheckOFDResponse [09:32:10]1017 (14) - 77093643461234 [09:32:10]1041 (16) - 0000000000871800 [09:32:10]1040 (4) - 49772 [09:32:10]1012 (4) - 18.08.2024 03:30 [09:32:10]1206 (1) - 0 [09:32:10]OFD Sender: Remove packet 49772 [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00049772 [09:32:10]NVStorageDeleteData [09:32:10]Write to MH i2c: 01 00 00 D0 48 18 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 D0 48 00 00 00 00 00 D9 0B 03 [09:32:10]RasterBufferAndPrint [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]written 0, free lines is 3042 [09:32:10]MH_Cut [09:32:10]Write to MH i2c: D1 01 00 D7 48 01 F1 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 D7 48 00 F0 [09:32:10]Write to MH i2c: 01 00 00 D8 48 20 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:11]OFD Sender: No OFD packet to send [09:32:11]*** Cut start [09:32:11]*** Purtial cut [09:32:11]*** Stage 1: CUTSNS_PIN = 1 [09:32:12]Read from MH i2c: 01 [09:32:12]MH_I2C_Read... [09:32:12]*** Stop cut motor [09:32:12]*** Cut end [09:32:12]Read from MH i2c: 01 07 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: 01 07 00 D8 48 00 00 00 00 00 FF 0F 35 [09:32:12]process_action close_receipt done [09:32:12]requested_data is exist [09:32:12]produce_requested_data [09:32:12]requested_item fm.sn is exist - process it [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 11 00 00 [09:32:12]Write to MH i2c: E2 08 00 D9 48 80 11 00 00 00 00 00 00 9B [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 D9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [09:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:32:12]wFMCommunicate OK [09:32:12]requested_item fd.num is exist - process it [09:32:12]SAM_PROTO_GetFieldsCounters [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 00 00 [09:32:12]Write to MH i2c: E2 08 00 DA 48 80 13 00 00 00 00 00 00 9E [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 62 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 62 00 DA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [09:32:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetFieldsCounters done [09:32:12]requested_item shift.num is exist - process it [09:32:12]requested_item shift.opened is exist - process it [09:32:12]req_shift_opened [09:32:12]FM_GetShiftState [09:32:12]SAM_PROTO_GetShiftState [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 01 00 [09:32:12]Write to MH i2c: E2 08 00 DB 48 80 13 01 00 00 00 00 00 A0 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 DB 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BD [09:32:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetShiftState done [09:32:12]FM_GetShiftState done [09:32:12]req_shift_opened done [09:32:12]requested_item shift.open_date is exist - process it [09:32:12]req_shift_open_date [09:32:12]req_shift_open_date done [09:32:12]produce_requested_data done [09:32:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49772,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:32:12]process_action_free close_receipt [09:32:12]json_value_free [09:32:12]json_value_free done [09:32:12]process_json_proto returns [09:32:12]Send response to host [09:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49772,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:32:12]free response buf [09:32:12]execute_script done [09:32:12]execute_script returns [09:32:12]free content buf [09:32:12]Sock 9.Close socket [09:32:12]Sock 9.Thread stoped [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:32:59]accept exits with 7 [09:32:59]New connection [09:32:59]New thread 3066801508 created [09:32:59]Thread 3066944868 joined [09:32:59]Waiting for new connection... [09:32:59] Sock 7.Parse request [09:32:59]Sock 7.Check first char [09:32:59]Sock 7.First char is OK [09:32:59]request: POST /json_proto HTTP/1.0 [09:32:59]Method: POST [09:32:59]URL: /json_proto [09:32:59]Method is POST - this is cgi request [09:32:59]url: /json_proto [09:32:59]query_string will be loaded in cgi processing [09:32:59]execute_cgi json_proto POST (null) [09:32:59]execute_cgi path=json_proto method=POST [09:32:59]POST find Content-Length [09:32:59]Host: 172.17.46.196:8080 [09:32:59]Content-Length: 614 [09:32:59]Content-Type: application/json [09:32:59] [09:32:59]POST finish read [09:32:59]Found Content-Length = 614 [09:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189952", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:59]execute_script... [09:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189952", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:59]POST & json_proto [09:32:59]process_json_proto [09:32:59]json parsed OK: [09:32:59]protocol is kg_v1.0 [09:32:59]action value=close_receipt [09:32:59]process_action close_receipt [09:32:59]cmd_close_receipt [09:32:59]MH_GetDate [09:32:59]Write to MH i2c: F0 00 00 DC 48 13 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: F0 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: F0 09 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: F0 09 00 DC 48 00 D3 BF C1 66 07 E8 5D 66 87 [09:32:59]GetLastDocTimeStamp 1723973535 [09:32:59]current date 1723973587 [09:32:59]FM_GetShiftState [09:32:59]SAM_PROTO_GetShiftState [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 13 01 00 [09:32:59]Write to MH i2c: E2 08 00 DD 48 80 13 01 00 00 00 00 00 A2 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 DD 48 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BF [09:32:59]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetShiftState done [09:32:59]FM_GetShiftState done [09:32:59]opened in 1723939759 [09:32:59]opened+sec_in_day 1724026159 [09:32:59]quantity*price = 11100 [09:32:59]sum+1 = 11101 [09:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 39 18.08.2024 09:33 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49773 ФПД: 271451552528573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093307&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49773&fm=271451552528573&tin=02508201610067®Number=0000000000092546&sum=11100 0 [09:33:00]StoreToDocumentArchive [09:33:00]shift 466 fd 49773 [09:33:00]save to /storage/0466/doc_00049773 [09:33:00]save last doc name /storage/0466/doc_00049773 to /storage/kkm_last_doc_name [09:33:00]save OK [09:33:00]Clear old archive folders... [09:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:33:00]tlvbuf is 01919600 [09:33:00]SAM_PROTO_ClearQueue [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 09 00 00 [09:33:00]Write to MH i2c: E2 08 00 EA 48 80 09 00 00 00 00 00 00 A4 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [09:33:00]RAPDU: 90 00 [09:33:00]wFMCommunicate OK [09:33:00]SAM_PROTO_ClearQueue done [09:33:00]KKMCreateOFDPacket [09:33:00]OFDProtocolAddRootSTLVToBuf [09:33:00]FM_MakeSignedData [09:33:00]FM_MakeSignedData [09:33:00]SAM_PROTO_SignData [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 0D 01 02 [09:33:00]Write to MH i2c: E2 08 00 EB 48 80 0D 01 02 00 00 00 00 AC [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [09:33:00]RAPDU: 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=255 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D3 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [09:33:00]Write to MH i2c: E2 02 01 EC 48 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D3 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 77 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 03 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 03 00 EC 48 00 90 00 A8 [09:33:01]RAPDU: 90 00 [09:33:01]wFMCommunicate OK [09:33:01]wFMCommunicate request_size=25 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 6D C2 00 00 35 04 06 00 F6 E2 3D 5C B8 BD [09:33:01]Write to MH i2c: E2 1C 00 ED 48 80 0D 02 02 14 00 30 30 10 04 04 00 6D C2 00 00 35 04 06 00 F6 E2 3D 5C B8 BD 00 00 A3 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 03 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 03 00 ED 48 00 90 00 A9 [09:33:01]RAPDU: 90 00 [09:33:01]wFMCommunicate OK [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 0D 03 02 [09:33:01]Write to MH i2c: E2 08 00 EE 48 80 0D 03 02 00 00 00 00 B1 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:01]OFD Sender: No OFD packet to send [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0B 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0B 00 EE 48 00 F9 50 7A 2F 13 84 45 10 90 00 90 [09:33:01]RAPDU: F9 50 7A 2F 13 84 45 10 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_SignData done [09:33:01]FM_MakeSignedData done [09:33:01]CreateOFDProtocolMessage [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 11 00 00 [09:33:01]Write to MH i2c: E2 08 00 EF 48 80 11 00 00 00 00 00 00 B1 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 17 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 17 00 EF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [09:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:01]wFMCommunicate OK [09:33:01]CreateOFDProtocolMessage done [09:33:01]OFDSenderStorePacket 49773 [09:33:01]StoreOFDPacket docnum=49773 [09:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 A6 EB 16 01 4E A6 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D3 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C2 00 00 35 04 06 00 F6 E2 3D 5C B8 BD F9 50 7A 2F 13 84 45 10 [09:33:01]CheckFolder [09:33:01]dirname=/storage/ofd_packets [09:33:01]CheckFolder done [09:33:01]ProducePacketName [09:33:01]name=ofd_packets/00049773 [09:33:01]NVStorageSaveData ofd_packets/00049773 [09:33:01]File name is /storage/ofd_packets/00049773 [09:33:01]Write 316 bytes [09:33:01]NVStorageSaveData done [09:33:01]OFDSenderStorePacket done [09:33:01]KKMCreateOFDPacket done [09:33:01]NVStorageSaveData kkm_last_timestamp [09:33:01]File name is /storage/kkm_last_timestamp [09:33:01]Write 4 bytes [09:33:01]NVStorageSaveData done [09:33:01]ExternCall_PrintAddStr [09:33:01]wPrintStart [09:33:01]Write to MH i2c: 01 00 00 F0 48 38 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 07 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 07 00 F0 48 00 00 00 00 00 FF 0F 4D [09:33:01]RasterBufferAndPrint [09:33:01]line Счет N : (3)189952 [09:33:01]line ИНН: 02508201610067 [09:33:01]line Контрольно-Кассовый Чек [09:33:01]line ПРОДАЖА [09:33:01]line Товар: 4870001570071 [09:33:01]line Напиток Pepsi 1л [09:33:01]line 1.000 * 111.00 [09:33:01]line = 111.00 [09:33:01]line НДС 12% НСП 1% [09:33:01]line > о реализуемом товаре [09:33:01]line ИТОГО: 111.00 [09:33:01]line НСП 1% : 0.98 [09:33:01]line НДС 12% : 11.79 [09:33:01]line Наличными: 111.00 [09:33:01]line Безнал.: 0.00 [09:33:01]line Место: АЗС № 95 "Партнер Нефть" [09:33:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:33:01]line СНО: Общий режим [09:33:01]line Чек 39 18.08.2024 09:33 [09:33:01]line Смена: 466 ФФД: 1.0 [09:33:01]line ЗНМ: 0300000078 [09:33:01]line РНМ: 0000000000092546 [09:33:01]line Версия ККМ: 001 [09:33:01]line ФМ: 0000000000871800 [09:33:01]line ФД: 49773 [09:33:01]line ФПД: 271451552528573 [09:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093307&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49773&fm=271451552528573&tin=02508201610067®Number=0000000000092546&sum=11100 [09:33:01]OFD Sender: Processing packet 49773 [packets to send 21, broken 20] [09:33:01]ProducePacketName [09:33:01]name=ofd_packets/00049773 [09:33:01]OFD Sender: To server: pG, [09:33:01]CommunicateWithHost lk.salyk.kg:30040 [09:33:01]ConnectInit lk.salyk.kg [09:33:01]line 0 [09:33:01]written 0, free lines is 4095 [09:33:01]Connected sock=10 [09: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 38 30 30 1E 01 00 00 A6 EB 16 01 4E A6 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D3 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C2 00 00 35 04 06 00 F6 E2 3D 5C B8 BD F9 50 7A 2F 13 84 45 10 [09:33:02]Write to MH i2c: 01 00 00 18 49 61 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: 01 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: 01 07 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: 01 07 00 18 49 00 00 00 00 00 FB 0C 6F [09:33:02]RasterBufferAndPrint [09:33:02]line [09:33:02]line [09:33:02]line [09:33:02]line [09:33:02]line [09:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0F 9F 47 00 28 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C2 00 00 F4 03 04 00 0D 6B C1 66 B6 04 01 00 00 C3 81 C1 8B 75 49 7A E4 [09:33:02]CommunicateWithHost err = 0 [09:33:02]CheckOFDResponse [09:33:02]1017 (14) - 77093643461234 [09:33:02]1041 (16) - 0000000000871800 [09:33:02]1040 (4) - 49773 [09:33:02]1012 (4) - 18.08.2024 03:31 [09:33:02]1206 (1) - 0 [09:33:02]OFD Sender: Remove packet 49773 [09:33:02]ProducePacketName [09:33:02]name=ofd_packets/00049773 [09:33:02]NVStorageDeleteData [09:33:02]written 0, free lines is 3332 [09:33:02]MH_Cut [09:33:02]Write to MH i2c: D1 01 00 1F 49 01 3A [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: D1 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: D1 01 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: D1 01 00 1F 49 00 39 [09:33:02]Write to MH i2c: 01 00 00 20 49 69 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]OFD Sender: No OFD packet to send [09:33:02]*** Cut start [09:33:02]*** Purtial cut [09:33:02]*** CUTSNS_PIN = 0 [09:33:03]*** Stage 1: CUTSNS_PIN = 1 [09:33:04]Read from MH i2c: 01 [09:33:04]MH_I2C_Read... [09:33:04]*** Stop cut motor [09:33:04]*** Cut end [09:33:04]Read from MH i2c: 01 07 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: 01 07 00 20 49 00 00 00 00 00 FF 0F 7E [09:33:04]process_action close_receipt done [09:33:04]requested_data is exist [09:33:04]produce_requested_data [09:33:04]requested_item fm.sn is exist - process it [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 11 00 00 [09:33:04]Write to MH i2c: E2 08 00 21 49 80 11 00 00 00 00 00 00 E4 [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:04]Read from MH i2c: E2 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 17 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 17 00 21 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2F [09:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:04]wFMCommunicate OK [09:33:04]requested_item fd.num is exist - process it [09:33:04]SAM_PROTO_GetFieldsCounters [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 13 00 00 [09:33:04]Write to MH i2c: E2 08 00 22 49 80 13 00 00 00 00 00 00 E7 [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 62 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 62 00 22 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_GetFieldsCounters done [09:33:05]requested_item shift.num is exist - process it [09:33:05]requested_item shift.opened is exist - process it [09:33:05]req_shift_opened [09:33:05]FM_GetShiftState [09:33:05]SAM_PROTO_GetShiftState [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 13 01 00 [09:33:05]Write to MH i2c: E2 08 00 23 49 80 13 01 00 00 00 00 00 E9 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0E 00 23 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 06 [09:33:05]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_GetShiftState done [09:33:05]FM_GetShiftState done [09:33:05]req_shift_opened done [09:33:05]requested_item shift.open_date is exist - process it [09:33:05]req_shift_open_date [09:33:05]req_shift_open_date done [09:33:05]produce_requested_data done [09:33:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49773,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:33:05]process_action_free close_receipt [09:33:05]json_value_free [09:33:05]json_value_free done [09:33:05]process_json_proto returns [09:33:05]Send response to host [09:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49773,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:33:05]free response buf [09:33:05]execute_script done [09:33:05]execute_script returns [09:33:05]free content buf [09:33:05]Sock 7.Close socket [09:33:05]Sock 7.Thread stoped [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:35]accept exits with 9 [09:33:35]New connection [09:33:35]New thread 3066944868 created [09:33:35]Thread 3066801508 joined [09:33:35]Waiting for new connection... [09:33:35] Sock 9.Parse request [09:33:35]Sock 9.Check first char [09:33:35]Sock 9.First char is OK [09:33:35]request: POST /json_proto HTTP/1.0 [09:33:35]Method: POST [09:33:35]URL: /json_proto [09:33:35]Method is POST - this is cgi request [09:33:35]url: /json_proto [09:33:35]query_string will be loaded in cgi processing [09:33:35]execute_cgi json_proto POST (null) [09:33:35]execute_cgi path=json_proto method=POST [09:33:35]POST find Content-Length [09:33:35]Host: 172.17.46.196:8080 [09:33:35]Content-Length: 805 [09:33:35]Content-Type: application/json [09:33:35] [09:33:35]POST finish read [09:33:35]Found Content-Length = 805 [09:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189953", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:35]execute_script... [09:33:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189953", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:35]POST & json_proto [09:33:35]process_json_proto [09:33:35]json parsed OK: [09:33:35]protocol is kg_v1.0 [09:33:35]action value=close_receipt [09:33:35]process_action close_receipt [09:33:35]cmd_close_receipt [09:33:35]MH_GetDate [09:33:35]Write to MH i2c: F0 00 00 24 49 5C [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: F0 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: F0 09 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: F0 09 00 24 49 00 F7 BF C1 66 07 E8 5D 66 F4 [09:33:35]GetLastDocTimeStamp 1723973587 [09:33:35]current date 1723973623 [09:33:35]FM_GetShiftState [09:33:35]SAM_PROTO_GetShiftState [09:33:35]wFMCommunicate request_size=4 [09:33:35]MH_SAM_APDU [09:33:35]CAPDU: 80 13 01 00 [09:33:35]Write to MH i2c: E2 08 00 25 49 80 13 01 00 00 00 00 00 EB [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:35]Read from MH i2c: E2 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 0E 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 0E 00 25 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 08 [09:33:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:33:35]wFMCommunicate OK [09:33:35]SAM_PROTO_GetShiftState done [09:33:35]FM_GetShiftState done [09:33:35]opened in 1723939759 [09:33:35]opened+sec_in_day 1724026159 [09:33:35]quantity*price = 13000 [09:33:35]sum+1 = 13001 [09:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 40 18.08.2024 09:33 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49774 ФПД: 65906341778726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093343&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49774&fm=65906341778726&tin=02508201610067®Number=0000000000092546&sum=13000 0 [09:33:36]StoreToDocumentArchive [09:33:36]shift 466 fd 49774 [09:33:36]save to /storage/0466/doc_00049774 [09:33:36]save last doc name /storage/0466/doc_00049774 to /storage/kkm_last_doc_name [09:33:36]save OK [09:33:36]Clear old archive folders... [09:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:33:36]tlvbuf is 018ACD30 [09:33:36]SAM_PROTO_ClearQueue [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 09 00 00 [09:33:36]Write to MH i2c: E2 08 00 32 49 80 09 00 00 00 00 00 00 ED [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 03 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 03 00 32 49 00 90 00 EF [09:33:36]RAPDU: 90 00 [09:33:36]wFMCommunicate OK [09:33:36]SAM_PROTO_ClearQueue done [09:33:36]KKMCreateOFDPacket [09:33:36]OFDProtocolAddRootSTLVToBuf [09:33:36]FM_MakeSignedData [09:33:36]FM_MakeSignedData [09:33:36]SAM_PROTO_SignData [09:33:36]wFMCommunicate request_size=4 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 0D 01 02 [09:33:36]Write to MH i2c: E2 08 00 33 49 80 0D 01 02 00 00 00 00 F5 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:36]Read from MH i2c: E2 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 03 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: E2 03 00 33 49 00 90 00 F0 [09:33:36]RAPDU: 90 00 [09:33:36]wFMCommunicate OK [09:33:36]wFMCommunicate request_size=255 [09:33:36]MH_SAM_APDU [09:33:36]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F7 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [09:33:36]Write to MH i2c: E2 02 01 34 49 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F7 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 E9 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 34 49 00 90 00 F1 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]wFMCommunicate request_size=35 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C2 00 00 35 04 06 00 3B F1 04 17 15 26 [09:33:37]Write to MH i2c: E2 26 00 35 49 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C2 00 00 35 04 06 00 3B F1 04 17 15 26 00 00 95 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 03 00 35 49 00 90 00 F2 [09:33:37]RAPDU: 90 00 [09:33:37]wFMCommunicate OK [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 0D 03 02 [09:33:37]Write to MH i2c: E2 08 00 36 49 80 0D 03 02 00 00 00 00 FA [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0B 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0B 00 36 49 00 13 BA 0B CC D5 D9 DB 75 90 00 9D [09:33:37]RAPDU: 13 BA 0B CC D5 D9 DB 75 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_SignData done [09:33:37]FM_MakeSignedData done [09:33:37]CreateOFDProtocolMessage [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 11 00 00 [09:33:37]Write to MH i2c: E2 08 00 37 49 80 11 00 00 00 00 00 00 FA [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 37 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 45 [09:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:37]wFMCommunicate OK [09:33:37]CreateOFDProtocolMessage done [09:33:37]OFDSenderStorePacket 49774 [09:33:37]StoreOFDPacket docnum=49774 [09:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 E7 E7 20 01 DF 61 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F7 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C2 00 00 35 04 06 00 3B F1 04 17 15 26 13 BA 0B CC D5 D9 DB 75 [09:33:37]CheckFolder [09:33:37]dirname=/storage/ofd_packets [09:33:37]CheckFolder done [09:33:37]ProducePacketName [09:33:37]name=ofd_packets/00049774 [09:33:37]NVStorageSaveData ofd_packets/00049774 [09:33:37]File name is /storage/ofd_packets/00049774 [09:33:37]Write 326 bytes [09:33:37]NVStorageSaveData done [09:33:37]OFDSenderStorePacket done [09:33:37]KKMCreateOFDPacket done [09:33:37]NVStorageSaveData kkm_last_timestamp [09:33:37]File name is /storage/kkm_last_timestamp [09:33:37]Write 4 bytes [09:33:37]NVStorageSaveData done [09:33:37]ExternCall_PrintAddStr [09:33:37]wPrintStart [09:33:37]Write to MH i2c: 01 00 00 38 49 81 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 38 49 00 00 00 00 00 FF 0F 96 [09:33:37]RasterBufferAndPrint [09:33:37]line Счет N : (3)189953 [09:33:37]line ИНН: 02508201610067 [09:33:37]line Контрольно-Кассовый Чек [09:33:37]line ПРОДАЖА [09:33:37]line Товар: 2000036230011 [09:33:37]line Кофе Латте XL(GABB TRADE) [09:33:37]line 1.000 * 130.00 [09:33:37]line = 130.00 [09:33:37]line НДС 12% НСП 1% [09:33:37]line > о реализуемом товаре [09:33:37]line ИТОГО: 130.00 [09:33:37]line НСП 1% : 1.15 [09:33:37]line НДС 12% : 13.80 [09:33:37]line Наличными: 0.00 [09:33:37]line Безнал.: 130.00 [09:33:37]line Место: АЗС № 95 "Партнер Нефть" [09:33:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:33:37]line СНО: Общий режим [09:33:37]line Чек 40 18.08.2024 09:33 [09:33:37]line Смена: 466 ФФД: 1.0 [09:33:37]line ЗНМ: 0300000078 [09:33:37]line РНМ: 0000000000092546 [09:33:37]line Версия ККМ: 001 [09:33:37]line Платежная система: Бакай Банк [09:33:37]line ФМ: 0000000000871800 [09:33:37]line ФД: 49774 [09:33:37]line ФПД: 65906341778726 [09:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093343&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49774&fm=65906341778726&tin=02508201610067®Number=0000000000092546&sum=13000 [09:33:37]line 0 [09:33:37]OFD Sender: Processing packet 49774 [packets to send 21, broken 20] [09:33:37]ProducePacketName [09:33:37]name=ofd_packets/00049774 [09:33:37]OFD Sender: To server: pG, [09:33:37]CommunicateWithHost lk.salyk.kg:30040 [09:33:37]ConnectInit lk.salyk.kg [09:33:37]written 0, free lines is 4095 [09:33:37]Connected sock=10 [09:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 E7 E7 20 01 DF 61 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F7 BF C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C2 00 00 35 04 06 00 3B F1 04 17 15 26 13 BA 0B CC D5 D9 DB 75 [09:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DD 6A 47 00 80 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 38 30 30 10 04 04 00 6E C2 00 00 F4 03 04 00 31 6B C1 66 B6 04 01 00 00 EC C5 0E 00 31 64 EA C4 [09:33:38]CommunicateWithHost err = 0 [09:33:38]CheckOFDResponse [09:33:38]1017 (14) - 77093643461234 [09:33:38]1041 (16) - 0000000000871800 [09:33:38]1040 (4) - 49774 [09:33:38]1012 (4) - 18.08.2024 03:32 [09:33:38]1206 (1) - 0 [09:33:38]OFD Sender: Remove packet 49774 [09:33:38]ProducePacketName [09:33:38]name=ofd_packets/00049774 [09:33:38]NVStorageDeleteData [09:33:38]Write to MH i2c: 01 00 00 62 49 AB [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 62 49 00 00 00 00 00 ED 0C AB [09:33:38]RasterBufferAndPrint [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]written 0, free lines is 3318 [09:33:38]MH_Cut [09:33:38]Write to MH i2c: D1 01 00 69 49 01 84 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 69 49 00 83 [09:33:38]Write to MH i2c: 01 00 00 6A 49 B3 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]OFD Sender: No OFD packet to send [09:33:38]*** Cut start [09:33:38]*** Purtial cut [09:33:38]*** Stage 1: CUTSNS_PIN = 1 [09:33:39]Read from MH i2c: 01 [09:33:39]MH_I2C_Read... [09:33:39]*** Stop cut motor [09:33:39]*** Cut end [09:33:39]Read from MH i2c: 01 07 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: 01 07 00 6A 49 00 00 00 00 00 FF 0F C8 [09:33:39]process_action close_receipt done [09:33:39]requested_data is exist [09:33:39]produce_requested_data [09:33:39]requested_item fm.sn is exist - process it [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 11 00 00 [09:33:39]Write to MH i2c: E2 08 00 6B 49 80 11 00 00 00 00 00 00 2E [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 17 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 17 00 6B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 79 [09:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:39]wFMCommunicate OK [09:33:39]requested_item fd.num is exist - process it [09:33:39]SAM_PROTO_GetFieldsCounters [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 00 00 [09:33:39]Write to MH i2c: E2 08 00 6C 49 80 13 00 00 00 00 00 00 31 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 62 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 62 00 6C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetFieldsCounters done [09:33:39]requested_item shift.num is exist - process it [09:33:39]requested_item shift.opened is exist - process it [09:33:39]req_shift_opened [09:33:39]FM_GetShiftState [09:33:39]SAM_PROTO_GetShiftState [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 01 00 [09:33:39]Write to MH i2c: E2 08 00 6D 49 80 13 01 00 00 00 00 00 33 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 6D 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 50 [09:33:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetShiftState done [09:33:39]FM_GetShiftState done [09:33:39]req_shift_opened done [09:33:39]requested_item shift.open_date is exist - process it [09:33:39]req_shift_open_date [09:33:39]req_shift_open_date done [09:33:39]produce_requested_data done [09:33:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49774,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:33:39]process_action_free close_receipt [09:33:39]json_value_free [09:33:39]json_value_free done [09:33:39]process_json_proto returns [09:33:39]Send response to host [09:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49774,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:33:39]free response buf [09:33:39]execute_script done [09:33:39]execute_script returns [09:33:39]free content buf [09:33:39]Sock 9.Close socket [09:33:39]Sock 9.Thread stoped [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:05]int [09:34:05]Write to MH i2c: 01 00 00 6E 49 B7 [09:34:05]*** FLAG_PRN_KEY set [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 6E 49 00 08 00 00 00 FF 0F D4 [09:34:05]state=0 [09:34:05]Key pressed [09:34:05]Feed [09:34:05]Write to MH i2c: D8 00 00 6F 49 8F [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: D8 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: D8 01 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: D8 01 00 6F 49 00 90 [09:34:05]int [09:34:05]Write to MH i2c: 01 00 00 70 49 B9 [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 70 49 00 48 00 00 00 3C 00 44 [09:34:05]state=2 [09:34:05]Key pressed [09:34:05]int [09:34:05]Write to MH i2c: 01 00 00 71 49 BA [09:34:05]*** FLAG_PRN_KEY reset [09:34:05]Write i2c OK [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 [09:34:05]MH_I2C_Read... [09:34:05]Read from MH i2c: 01 07 00 71 49 00 00 00 00 00 F9 0F C9 [09:34:05]state=2 [09:34:05]Stop feed [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:45]accept exits with 7 [09:39:45]New connection [09:39:45]New thread 3066801508 created [09:39:45]Thread 3066944868 joined [09:39:45]Waiting for new connection... [09:39:45] Sock 7.Parse request [09:39:45]Sock 7.Check first char [09:39:45]Sock 7.First char is OK [09:39:45]request: POST /json_proto HTTP/1.0 [09:39:45]Method: POST [09:39:45]URL: /json_proto [09:39:45]Method is POST - this is cgi request [09:39:45]url: /json_proto [09:39:45]query_string will be loaded in cgi processing [09:39:45]execute_cgi json_proto POST (null) [09:39:45]execute_cgi path=json_proto method=POST [09:39:45]POST find Content-Length [09:39:45]Host: 172.17.46.196:8080 [09:39:45]Content-Length: 826 [09:39:45]Content-Type: application/json [09:39:45] [09:39:45]POST finish read [09:39:45]Found Content-Length = 826 [09:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189954", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:45]execute_script... [09:39:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189954", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:45]POST & json_proto [09:39:45]process_json_proto [09:39:45]json parsed OK: [09:39:45]protocol is kg_v1.0 [09:39:45]action value=close_receipt [09:39:45]process_action close_receipt [09:39:45]cmd_close_receipt [09:39:45]MH_GetDate [09:39:45]Write to MH i2c: F0 00 00 72 49 AA [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: F0 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: F0 09 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: F0 09 00 72 49 00 69 C1 C1 66 07 E8 5D 66 B6 [09:39:45]GetLastDocTimeStamp 1723973623 [09:39:45]current date 1723973993 [09:39:45]FM_GetShiftState [09:39:45]SAM_PROTO_GetShiftState [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 13 01 00 [09:39:45]Write to MH i2c: E2 08 00 73 49 80 13 01 00 00 00 00 00 39 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0E 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0E 00 73 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 56 [09:39:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:39:45]wFMCommunicate OK [09:39:45]SAM_PROTO_GetShiftState done [09:39:45]FM_GetShiftState done [09:39:45]opened in 1723939759 [09:39:45]opened+sec_in_day 1724026159 [09:39:45]quantity*price = 8500 [09:39:45]sum+1 = 8501 [09:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 41 18.08.2024 09:39 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49775 ФПД: 202726847315850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093953&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49775&fm=202726847315850&tin=02508201610067®Number=0000000000092546&sum=8500 0 [09:39:46]StoreToDocumentArchive [09:39:46]shift 466 fd 49775 [09:39:46]save to /storage/0466/doc_00049775 [09:39:46]save last doc name /storage/0466/doc_00049775 to /storage/kkm_last_doc_name [09:39:46]save OK [09:39:46]Clear old archive folders... [09:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:39:46]tlvbuf is 0186A670 [09:39:46]SAM_PROTO_ClearQueue [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 09 00 00 [09:39:46]Write to MH i2c: E2 08 00 80 49 80 09 00 00 00 00 00 00 3B [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 80 49 00 90 00 3D [09:39:46]RAPDU: 90 00 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_ClearQueue done [09:39:46]KKMCreateOFDPacket [09:39:46]OFDProtocolAddRootSTLVToBuf [09:39:46]FM_MakeSignedData [09:39:46]FM_MakeSignedData [09:39:46]SAM_PROTO_SignData [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 0D 01 02 [09:39:46]Write to MH i2c: E2 08 00 81 49 80 0D 01 02 00 00 00 00 43 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 81 49 00 90 00 3E [09:39:46]RAPDU: 90 00 [09:39:46]wFMCommunicate OK [09:39:46]wFMCommunicate request_size=255 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 69 C1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [09:39:46]Write to MH i2c: E2 02 01 82 49 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 69 C1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 A4 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 03 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 03 00 82 49 00 90 00 3F [09:39:47]RAPDU: 90 00 [09:39:47]wFMCommunicate OK [09:39:47]wFMCommunicate request_size=39 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C2 00 00 35 04 06 00 B8 61 05 B8 7F 8A [09:39:47]Write to MH i2c: E2 2A 00 83 49 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C2 00 00 35 04 06 00 B8 61 05 B8 7F 8A 00 00 09 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 03 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 03 00 83 49 00 90 00 40 [09:39:47]RAPDU: 90 00 [09:39:47]wFMCommunicate OK [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 0D 03 02 [09:39:47]Write to MH i2c: E2 08 00 84 49 80 0D 03 02 00 00 00 00 48 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0B 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0B 00 84 49 00 8F 28 D8 5B D1 FD C0 25 90 00 E6 [09:39:47]RAPDU: 8F 28 D8 5B D1 FD C0 25 90 00 [09:39:47]wFMCommunicate OK [09:39:47]SAM_PROTO_SignData done [09:39:47]FM_MakeSignedData done [09:39:47]CreateOFDProtocolMessage [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 11 00 00 [09:39:47]Write to MH i2c: E2 08 00 85 49 80 11 00 00 00 00 00 00 48 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 17 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 17 00 85 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [09:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:47]wFMCommunicate OK [09:39:47]CreateOFDProtocolMessage done [09:39:47]OFDSenderStorePacket 49775 [09:39:47]StoreOFDPacket docnum=49775 [09:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 48 9D 24 01 CB BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 69 C1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C2 00 00 35 04 06 00 B8 61 05 B8 7F 8A 8F 28 D8 5B D1 FD C0 25 [09:39:47]CheckFolder [09:39:47]dirname=/storage/ofd_packets [09:39:47]CheckFolder done [09:39:47]ProducePacketName [09:39:47]name=ofd_packets/00049775 [09:39:47]NVStorageSaveData ofd_packets/00049775 [09:39:47]File name is /storage/ofd_packets/00049775 [09:39:47]Write 330 bytes [09:39:47]NVStorageSaveData done [09:39:47]OFDSenderStorePacket done [09:39:47]KKMCreateOFDPacket done [09:39:47]NVStorageSaveData kkm_last_timestamp [09:39:47]File name is /storage/kkm_last_timestamp [09:39:47]Write 4 bytes [09:39:47]NVStorageSaveData done [09:39:47]ExternCall_PrintAddStr [09:39:47]wPrintStart [09:39:47]Write to MH i2c: 01 00 00 86 49 CF [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 86 49 00 00 00 00 00 FF 0F E4 [09:39:47]RasterBufferAndPrint [09:39:47]line Счет N : (3)189954 [09:39:47]line ИНН: 02508201610067 [09:39:47]line Контрольно-Кассовый Чек [09:39:47]line ПРОДАЖА [09:39:47]line Товар: 4870227273831 [09:39:47]line Лимонад Sunbel Мохито 1л [09:39:47]line 1.000 * 85.00 [09:39:47]line = 85.00 [09:39:47]line НДС 12% НСП 1% [09:39:47]line > о реализуемом товаре [09:39:47]line ИТОГО: 85.00 [09:39:47]line НСП 1% : 0.75 [09:39:47]line НДС 12% : 9.03 [09:39:47]line Наличными: 0.00 [09:39:47]line Безнал.: 85.00 [09:39:47]line Место: АЗС № 95 "Партнер Нефть" [09:39:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:39:47]line СНО: Общий режим [09:39:47]line Чек 41 18.08.2024 09:39 [09:39:47]line Смена: 466 ФФД: 1.0 [09:39:47]line ЗНМ: 0300000078 [09:39:47]line РНМ: 0000000000092546 [09:39:47]line Версия ККМ: 001 [09:39:47]line Платежная система: Бакай Банк [09:39:47]line ФМ: 0000000000871800 [09:39:47]line ФД: 49775 [09:39:47]line ФПД: 202726847315850 [09:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093953&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49775&fm=202726847315850&tin=02508201610067®Number=0000000000092546&sum=8500 [09:39:47]line 0 [09:39:47]OFD Sender: Processing packet 49775 [packets to send 21, broken 20] [09:39:47]ProducePacketName [09:39:47]name=ofd_packets/00049775 [09:39:47]OFD Sender: To server: pG, [09:39:47]CommunicateWithHost lk.salyk.kg:30040 [09:39:47]ConnectInit lk.salyk.kg [09:39:47]written 0, free lines is 4095 [09:39:47]Connected sock=10 [09:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 48 9D 24 01 CB BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 69 C1 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C2 00 00 35 04 06 00 B8 61 05 B8 7F 8A 8F 28 D8 5B D1 FD C0 25 [09:39:47]Write to MH i2c: 01 00 00 B0 49 F9 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 B0 49 00 00 00 00 00 D9 0C E5 [09:39:47]RasterBufferAndPrint [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]written 0, free lines is 3296 [09:39:47]MH_Cut [09:39:47]Write to MH i2c: D1 01 00 B7 49 01 D2 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: D1 [09:39:47]MH_I2C_Read... [09:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A1 86 47 00 FE 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C2 00 00 F4 03 04 00 A3 6C C1 66 B6 04 01 00 00 C9 3A E6 F6 95 4B 95 6F [09:39:48]CommunicateWithHost err = 0 [09:39:48]CheckOFDResponse [09:39:48]1017 (14) - 77093643461234 [09:39:48]1041 (16) - 0000000000871800 [09:39:48]1040 (4) - 49775 [09:39:48]1012 (4) - 18.08.2024 03:38 [09:39:48]1206 (1) - 0 [09:39:48]OFD Sender: Remove packet 49775 [09:39:48]ProducePacketName [09:39:48]name=ofd_packets/00049775 [09:39:48]NVStorageDeleteData [09:39:48]Read from MH i2c: D1 01 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: D1 01 00 B7 49 00 D1 [09:39:48]Write to MH i2c: 01 00 00 B8 49 01 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]OFD Sender: No OFD packet to send [09:39:48]*** Cut start [09:39:48]*** Purtial cut [09:39:48]*** CUTSNS_PIN = 0 [09:39:48]*** Stage 1: CUTSNS_PIN = 1 [09:39:50]Read from MH i2c: 01 [09:39:50]MH_I2C_Read... [09:39:50]*** Stop cut motor [09:39:50]*** Cut end [09:39:50]Read from MH i2c: 01 07 00 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: 01 07 00 B8 49 00 00 00 00 00 FF 0F 16 [09:39:50]process_action close_receipt done [09:39:50]requested_data is exist [09:39:50]produce_requested_data [09:39:50]requested_item fm.sn is exist - process it [09:39:50]wFMCommunicate request_size=4 [09:39:50]MH_SAM_APDU [09:39:50]CAPDU: 80 11 00 00 [09:39:50]Write to MH i2c: E2 08 00 B9 49 80 11 00 00 00 00 00 00 7C [09:39:50]Write i2c OK [09:39:50]MH_I2C_Read... [09:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:50]Read from MH i2c: E2 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: E2 17 00 [09:39:50]MH_I2C_Read... [09:39:50]Read from MH i2c: E2 17 00 B9 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [09:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:50]wFMCommunicate OK [09:39:50]requested_item fd.num is exist - process it [09:39:50]SAM_PROTO_GetFieldsCounters [09:39:50]wFMCommunicate request_size=4 [09:39:50]MH_SAM_APDU [09:39:50]CAPDU: 80 13 00 00 [09:39:50]Write to MH i2c: E2 08 00 BA 49 80 13 00 00 00 00 00 00 7F [09:39:50]Write i2c OK [09:39:50]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 62 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 62 00 BA 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_GetFieldsCounters done [09:39:51]requested_item shift.num is exist - process it [09:39:51]requested_item shift.opened is exist - process it [09:39:51]req_shift_opened [09:39:51]FM_GetShiftState [09:39:51]SAM_PROTO_GetShiftState [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 13 01 00 [09:39:51]Write to MH i2c: E2 08 00 BB 49 80 13 01 00 00 00 00 00 81 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0E 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0E 00 BB 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 9E [09:39:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_GetShiftState done [09:39:51]FM_GetShiftState done [09:39:51]req_shift_opened done [09:39:51]requested_item shift.open_date is exist - process it [09:39:51]req_shift_open_date [09:39:51]req_shift_open_date done [09:39:51]produce_requested_data done [09:39:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49775,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:39:51]process_action_free close_receipt [09:39:51]json_value_free [09:39:51]json_value_free done [09:39:51]process_json_proto returns [09:39:51]Send response to host [09:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49775,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:39:51]free response buf [09:39:51]execute_script done [09:39:51]execute_script returns [09:39:51]free content buf [09:39:51]Sock 7.Close socket [09:39:51]Sock 7.Thread stoped [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [09:46:47]int [09:46:47]Write to MH i2c: 01 00 00 BC 49 05 [09:46:47]*** FLAG_PRN_KEY set [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 BC 49 00 08 00 00 00 FF 0F 22 [09:46:47]state=0 [09:46:47]Key pressed [09:46:47]Feed [09:46:47]Write to MH i2c: D8 00 00 BD 49 DD [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D8 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D8 01 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D8 01 00 BD 49 00 DE [09:46:47]int [09:46:47]Write to MH i2c: 01 00 00 BE 49 07 [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 BE 49 00 48 00 00 00 3C 00 92 [09:46:47]state=2 [09:46:47]Key pressed [09:46:47]int [09:46:47]Write to MH i2c: 01 00 00 BF 49 08 [09:46:47]*** FLAG_PRN_KEY reset [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 F5 0F 13 [09:46:47]state=2 [09:46:47]Stop feed [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:30]accept exits with 9 [09:48:30]New connection [09:48:30]New thread 3066944868 created [09:48:30]Thread 3066801508 joined [09:48:30]Waiting for new connection... [09:48:30] Sock 9.Parse request [09:48:30]Sock 9.Check first char [09:48:30]Sock 9.First char is OK [09:48:30]request: POST /json_proto HTTP/1.0 [09:48:30]Method: POST [09:48:30]URL: /json_proto [09:48:30]Method is POST - this is cgi request [09:48:30]url: /json_proto [09:48:30]query_string will be loaded in cgi processing [09:48:30]execute_cgi json_proto POST (null) [09:48:30]execute_cgi path=json_proto method=POST [09:48:30]POST find Content-Length [09:48:30]Host: 172.17.46.196:8080 [09:48:30]Content-Length: 652 [09:48:30]Content-Type: application/json [09:48:30] [09:48:30]POST finish read [09:48:30]Found Content-Length = 652 [09:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189955", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:30]execute_script... [09:48:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189955", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:30]POST & json_proto [09:48:30]process_json_proto [09:48:30]json parsed OK: [09:48:30]protocol is kg_v1.0 [09:48:30]action value=close_receipt [09:48:30]process_action close_receipt [09:48:30]cmd_close_receipt [09:48:30]MH_GetDate [09:48:30]Write to MH i2c: F0 00 00 C0 49 F8 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: F0 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: F0 09 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: F0 09 00 C0 49 00 76 C3 C1 66 07 E8 5D 66 13 [09:48:30]GetLastDocTimeStamp 1723973993 [09:48:30]current date 1723974518 [09:48:30]FM_GetShiftState [09:48:30]SAM_PROTO_GetShiftState [09:48:30]wFMCommunicate request_size=4 [09:48:30]MH_SAM_APDU [09:48:30]CAPDU: 80 13 01 00 [09:48:30]Write to MH i2c: E2 08 00 C1 49 80 13 01 00 00 00 00 00 87 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:30]Read from MH i2c: E2 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0E 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: E2 0E 00 C1 49 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A4 [09:48:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:48:30]wFMCommunicate OK [09:48:30]SAM_PROTO_GetShiftState done [09:48:30]FM_GetShiftState done [09:48:30]opened in 1723939759 [09:48:30]opened+sec_in_day 1724026159 [09:48:30]quantity*price = 12500 [09:48:30]sum+1 = 12501 [09:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 42 18.08.2024 09:48 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49776 ФПД: 163903713784844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49776&fm=163903713784844&tin=02508201610067®Number=0000000000092546&sum=12500 0 [09:48:31]StoreToDocumentArchive [09:48:31]shift 466 fd 49776 [09:48:31]save to /storage/0466/doc_00049776 [09:48:31]save last doc name /storage/0466/doc_00049776 to /storage/kkm_last_doc_name [09:48:31]save OK [09:48:31]Clear old archive folders... [09:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:48:31]tlvbuf is 01840CE0 [09:48:31]SAM_PROTO_ClearQueue [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 09 00 00 [09:48:31]Write to MH i2c: E2 08 00 CE 49 80 09 00 00 00 00 00 00 89 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 03 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 03 00 CE 49 00 90 00 8B [09:48:31]RAPDU: 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_ClearQueue done [09:48:31]KKMCreateOFDPacket [09:48:31]OFDProtocolAddRootSTLVToBuf [09:48:31]FM_MakeSignedData [09:48:31]FM_MakeSignedData [09:48:31]SAM_PROTO_SignData [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 0D 01 02 [09:48:31]Write to MH i2c: E2 08 00 CF 49 80 0D 01 02 00 00 00 00 91 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 03 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 03 00 CF 49 00 90 00 8C [09:48:31]RAPDU: 90 00 [09:48:31]wFMCommunicate OK [09:48:31]wFMCommunicate request_size=255 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 76 C3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [09:48:32]Write to MH i2c: E2 02 01 D0 49 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 76 C3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 91 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 03 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 03 00 D0 49 00 90 00 8D [09:48:32]RAPDU: 90 00 [09:48:32]wFMCommunicate OK [09:48:32]wFMCommunicate request_size=43 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C2 00 00 35 04 06 00 95 11 CE A3 34 0C [09:48:32]Write to MH i2c: E2 2E 00 D1 49 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C2 00 00 35 04 06 00 95 11 CE A3 34 0C 00 00 FD [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 03 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 03 00 D1 49 00 90 00 8E [09:48:32]RAPDU: 90 00 [09:48:32]wFMCommunicate OK [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 0D 03 02 [09:48:32]Write to MH i2c: E2 08 00 D2 49 80 0D 03 02 00 00 00 00 96 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0B 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0B 00 D2 49 00 27 F0 3B 84 B8 41 77 C2 90 00 9F [09:48:32]RAPDU: 27 F0 3B 84 B8 41 77 C2 90 00 [09:48:32]wFMCommunicate OK [09:48:32]SAM_PROTO_SignData done [09:48:32]FM_MakeSignedData done [09:48:32]CreateOFDProtocolMessage [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 11 00 00 [09:48:32]Write to MH i2c: E2 08 00 D3 49 80 11 00 00 00 00 00 00 96 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 17 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 17 00 D3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [09:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:48:32]wFMCommunicate OK [09:48:32]CreateOFDProtocolMessage done [09:48:32]OFDSenderStorePacket 49776 [09:48:32]StoreOFDPacket docnum=49776 [09:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 D0 EF 28 01 A6 10 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 76 C3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C2 00 00 35 04 06 00 95 11 CE A3 34 0C 27 F0 3B 84 B8 41 77 C2 [09:48:32]CheckFolder [09:48:32]dirname=/storage/ofd_packets [09:48:32]CheckFolder done [09:48:32]ProducePacketName [09:48:32]name=ofd_packets/00049776 [09:48:32]NVStorageSaveData ofd_packets/00049776 [09:48:32]File name is /storage/ofd_packets/00049776 [09:48:32]Write 334 bytes [09:48:32]NVStorageSaveData done [09:48:32]OFDSenderStorePacket done [09:48:32]KKMCreateOFDPacket done [09:48:32]NVStorageSaveData kkm_last_timestamp [09:48:32]File name is /storage/kkm_last_timestamp [09:48:32]Write 4 bytes [09:48:32]NVStorageSaveData done [09:48:32]ExternCall_PrintAddStr [09:48:32]wPrintStart [09:48:32]Write to MH i2c: 01 00 00 D4 49 1D [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 D4 49 00 00 00 00 00 FF 0F 32 [09:48:32]RasterBufferAndPrint [09:48:32]line Счет N : (3)189955 [09:48:32]line ИНН: 02508201610067 [09:48:32]line Контрольно-Кассовый Чек [09:48:32]line ПРОДАЖА [09:48:32]line Товар: 2000036190018 [09:48:32]line Кофе Американо XL(GABB TRADE) [09:48:32]line 1.000 * 125.00 [09:48:32]line = 125.00 [09:48:32]line НДС 12% НСП 1% [09:48:32]line > о реализуемом товаре [09:48:32]line ИТОГО: 125.00 [09:48:32]line НСП 1% : 1.11 [09:48:32]line НДС 12% : 13.27 [09:48:32]line Наличными: 125.00 [09:48:32]line Безнал.: 0.00 [09:48:32]line Место: АЗС № 95 "Партнер Нефть" [09:48:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:48:32]line СНО: Общий режим [09:48:32]line Чек 42 18.08.2024 09:48 [09:48:32]line Смена: 466 ФФД: 1.0 [09:48:32]line ЗНМ: 0300000078 [09:48:32]line РНМ: 0000000000092546 [09:48:32]line Версия ККМ: 001 [09:48:32]line ФМ: 0000000000871800 [09:48:32]line ФД: 49776 [09:48:32]line ФПД: 163903713784844 [09:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49776&fm=163903713784844&tin=02508201610067®Number=0000000000092546&sum=12500 [09:48:32]line 0 [09:48:32]written 0, free lines is 4095 [09:48:32]OFD Sender: Processing packet 49776 [packets to send 21, broken 20] [09:48:32]ProducePacketName [09:48:32]name=ofd_packets/00049776 [09:48:32]OFD Sender: To server: pG, [09:48:32]CommunicateWithHost lk.salyk.kg:30040 [09:48:32]ConnectInit lk.salyk.kg [09:48:32]Connected sock=10 [09:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 D0 EF 28 01 A6 10 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 76 C3 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C2 00 00 35 04 06 00 95 11 CE A3 34 0C 27 F0 3B 84 B8 41 77 C2 [09:48:32]Write to MH i2c: 01 00 00 FD 49 46 [09:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E5 A4 47 00 CC 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C2 00 00 F4 03 04 00 B0 6E C1 66 B6 04 01 00 00 81 54 7E BF 50 87 A1 31 [09:48:32]CommunicateWithHost err = 0 [09:48:32]CheckOFDResponse [09:48:32]1017 (14) - 77093643461234 [09:48:32]1041 (16) - 0000000000871800 [09:48:32]1040 (4) - 49776 [09:48:32]1012 (4) - 18.08.2024 03:46 [09:48:32]1206 (1) - 0 [09:48:32]OFD Sender: Remove packet 49776 [09:48:32]ProducePacketName [09:48:32]name=ofd_packets/00049776 [09:48:32]NVStorageDeleteData [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 FD 49 00 00 00 00 00 EE 0C 47 [09:48:32]RasterBufferAndPrint [09:48:32]line [09:48:32]line [09:48:32]line [09:48:32]line [09:48:32]line [09:48:32]written 0, free lines is 3342 [09:48:32]MH_Cut [09:48:32]Write to MH i2c: D1 01 00 04 4A 01 20 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: D1 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: D1 01 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: D1 01 00 04 4A 00 1F [09:48:32]Write to MH i2c: 01 00 00 05 4A 4F [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:33]OFD Sender: No OFD packet to send [09:48:33]*** Cut start [09:48:33]*** Purtial cut [09:48:33]*** Stage 1: CUTSNS_PIN = 1 [09:48:33]Read from MH i2c: 01 [09:48:33]MH_I2C_Read... [09:48:33]*** Stop cut motor [09:48:33]*** Cut end [09:48:33]Read from MH i2c: 01 07 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 07 00 05 4A 00 00 00 00 00 FF 0F 64 [09:48:33]process_action close_receipt done [09:48:33]requested_data is exist [09:48:33]produce_requested_data [09:48:33]requested_item fm.sn is exist - process it [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 11 00 00 [09:48:33]Write to MH i2c: E2 08 00 06 4A 80 11 00 00 00 00 00 00 CA [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:34]Read from MH i2c: E2 17 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 06 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [09:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:48:34]wFMCommunicate OK [09:48:34]requested_item fd.num is exist - process it [09:48:34]SAM_PROTO_GetFieldsCounters [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 13 00 00 [09:48:34]Write to MH i2c: E2 08 00 07 4A 80 13 00 00 00 00 00 00 CD [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 62 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 62 00 07 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [09:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_GetFieldsCounters done [09:48:34]requested_item shift.num is exist - process it [09:48:34]requested_item shift.opened is exist - process it [09:48:34]req_shift_opened [09:48:34]FM_GetShiftState [09:48:34]SAM_PROTO_GetShiftState [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 13 01 00 [09:48:34]Write to MH i2c: E2 08 00 08 4A 80 13 01 00 00 00 00 00 CF [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0E 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0E 00 08 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EC [09:48:34]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_GetShiftState done [09:48:34]FM_GetShiftState done [09:48:34]req_shift_opened done [09:48:34]requested_item shift.open_date is exist - process it [09:48:34]req_shift_open_date [09:48:34]req_shift_open_date done [09:48:34]produce_requested_data done [09:48:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49776,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [09:48:34]process_action_free close_receipt [09:48:34]json_value_free [09:48:34]json_value_free done [09:48:34]process_json_proto returns [09:48:34]Send response to host [09:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49776,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [09:48:34]free response buf [09:48:34]execute_script done [09:48:34]execute_script returns [09:48:34]free content buf [09:48:34]Sock 9.Close socket [09:48:34]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:23]accept exits with 7 [10:01:23]New connection [10:01:23]New thread 3066801508 created [10:01:23]Thread 3066944868 joined [10:01:23]Waiting for new connection... [10:01:23] Sock 7.Parse request [10:01:23]Sock 7.Check first char [10:01:23]Sock 7.First char is OK [10:01:23]request: POST /json_proto HTTP/1.0 [10:01:23]Method: POST [10:01:23]URL: /json_proto [10:01:23]Method is POST - this is cgi request [10:01:23]url: /json_proto [10:01:23]query_string will be loaded in cgi processing [10:01:23]execute_cgi json_proto POST (null) [10:01:23]execute_cgi path=json_proto method=POST [10:01:23]POST find Content-Length [10:01:23]Host: 172.17.46.196:8080 [10:01:23]Content-Length: 689 [10:01:23]Content-Type: application/json [10:01:23] [10:01:23]POST finish read [10:01:23]Found Content-Length = 689 [10:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189956", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:23]execute_script... [10:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189956", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:23]POST & json_proto [10:01:23]process_json_proto [10:01:23]json parsed OK: [10:01:23]protocol is kg_v1.0 [10:01:23]action value=close_receipt [10:01:23]process_action close_receipt [10:01:23]cmd_close_receipt [10:01:23]MH_GetDate [10:01:23]Write to MH i2c: F0 00 00 09 4A 42 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 09 4A 00 7B C6 C1 66 07 E8 5D 66 65 [10:01:23]GetLastDocTimeStamp 1723974518 [10:01:23]current date 1723975291 [10:01:23]FM_GetShiftState [10:01:23]SAM_PROTO_GetShiftState [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 13 01 00 [10:01:23]Write to MH i2c: E2 08 00 0A 4A 80 13 01 00 00 00 00 00 D1 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 0A 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EE [10:01:23]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:01:23]wFMCommunicate OK [10:01:23]SAM_PROTO_GetShiftState done [10:01:23]FM_GetShiftState done [10:01:23]opened in 1723939759 [10:01:23]opened+sec_in_day 1724026159 [10:01:23]quantity*price = 8100 [10:01:23]sum+1 = 8101 [10:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 43 18.08.2024 10:01 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49777 ФПД: 184722811994966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100131&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49777&fm=184722811994966&tin=02508201610067®Number=0000000000092546&sum=8100 0 [10:01:24]StoreToDocumentArchive [10:01:24]shift 466 fd 49777 [10:01:24]save to /storage/0466/doc_00049777 [10:01:24]save last doc name /storage/0466/doc_00049777 to /storage/kkm_last_doc_name [10:01:24]save OK [10:01:24]Clear old archive folders... [10:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=292 [10:01:24]tlvbuf is 0187C270 [10:01:24]SAM_PROTO_ClearQueue [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 09 00 00 [10:01:24]Write to MH i2c: E2 08 00 17 4A 80 09 00 00 00 00 00 00 D3 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 17 4A 00 90 00 D5 [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_ClearQueue done [10:01:24]KKMCreateOFDPacket [10:01:24]OFDProtocolAddRootSTLVToBuf [10:01:24]FM_MakeSignedData [10:01:24]FM_MakeSignedData [10:01:24]SAM_PROTO_SignData [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 0D 01 02 [10:01:24]Write to MH i2c: E2 08 00 18 4A 80 0D 01 02 00 00 00 00 DB [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 18 4A 00 90 00 D6 [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]wFMCommunicate request_size=255 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7B C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [10:01:24]Write to MH i2c: E2 02 01 19 4A 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7B C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 78 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 19 4A 00 90 00 D7 [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]wFMCommunicate request_size=51 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C2 00 00 35 04 06 00 A8 01 21 97 43 56 [10:01:25]Write to MH i2c: E2 36 00 1A 4A 80 0D 02 02 2E 00 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C2 00 00 35 04 06 00 A8 01 21 97 43 56 00 00 95 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 1A 4A 00 90 00 D8 [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 0D 03 02 [10:01:25]Write to MH i2c: E2 08 00 1B 4A 80 0D 03 02 00 00 00 00 E0 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 1B 4A 00 7C A9 32 1D AA F6 72 FE 90 00 65 [10:01:25]RAPDU: 7C A9 32 1D AA F6 72 FE 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_SignData done [10:01:25]FM_MakeSignedData done [10:01:25]CreateOFDProtocolMessage [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 11 00 00 [10:01:25]Write to MH i2c: E2 08 00 1C 4A 80 11 00 00 00 00 00 00 E0 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 1C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2B [10:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:01:25]wFMCommunicate OK [10:01:25]CreateOFDProtocolMessage done [10:01:25]OFDSenderStorePacket 49777 [10:01:25]StoreOFDPacket docnum=49777 [10:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 80 47 30 01 4B BE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7B C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C2 00 00 35 04 06 00 A8 01 21 97 43 56 7C A9 32 1D AA F6 72 FE [10:01:25]CheckFolder [10:01:25]dirname=/storage/ofd_packets [10:01:25]CheckFolder done [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00049777 [10:01:25]NVStorageSaveData ofd_packets/00049777 [10:01:25]File name is /storage/ofd_packets/00049777 [10:01:25]Write 342 bytes [10:01:25]NVStorageSaveData done [10:01:25]OFDSenderStorePacket done [10:01:25]KKMCreateOFDPacket done [10:01:25]NVStorageSaveData kkm_last_timestamp [10:01:25]File name is /storage/kkm_last_timestamp [10:01:25]Write 4 bytes [10:01:25]NVStorageSaveData done [10:01:25]ExternCall_PrintAddStr [10:01:25]wPrintStart [10:01:25]Write to MH i2c: 01 00 00 1D 4A 67 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 1D 4A 00 00 00 00 00 FF 0F 7C [10:01:25]RasterBufferAndPrint [10:01:25]line Счет N : (3)189956 [10:01:25]line ИНН: 02508201610067 [10:01:25]line Контрольно-Кассовый Чек [10:01:25]line ПРОДАЖА [10:01:25]line Товар: 4603290004824 [10:01:25]line Печ зат Яшкино слив Крем 182г [10:01:25]line 1.000 * 81.00 [10:01:25]line = 81.00 [10:01:25]line НДС 12% НСП 1% [10:01:25]line > о реализуемом товаре [10:01:25]line ИТОГО: 81.00 [10:01:25]line НСП 1% : 0.72 [10:01:25]line НДС 12% : 8.60 [10:01:25]line Наличными: 81.00 [10:01:25]line Безнал.: 0.00 [10:01:25]line Место: АЗС № 95 "Партнер Нефть" [10:01:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:01:25]line СНО: Общий режим [10:01:25]line Чек 43 18.08.2024 10:01 [10:01:25]line Смена: 466 ФФД: 1.0 [10:01:25]line ЗНМ: 0300000078 [10:01:25]line РНМ: 0000000000092546 [10:01:25]line Версия ККМ: 001 [10:01:25]line ФМ: 0000000000871800 [10:01:25]line ФД: 49777 [10:01:25]line ФПД: 184722811994966 [10:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100131&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49777&fm=184722811994966&tin=02508201610067®Number=0000000000092546&sum=8100 [10:01:25]OFD Sender: Processing packet 49777 [packets to send 21, broken 20] [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00049777 [10:01:25]OFD Sender: To server: pG, [10:01:25]CommunicateWithHost lk.salyk.kg:30040 [10:01:25]ConnectInit lk.salyk.kg [10:01:25]line 0 [10:01:25]written 0, free lines is 4095 [10:01:25]Connected sock=10 [10:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 80 47 30 01 4B BE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 7B C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C2 00 00 35 04 06 00 A8 01 21 97 43 56 7C A9 32 1D AA F6 72 FE [10:01:26]Write to MH i2c: 01 00 00 46 4A 90 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 [10:01:26]MH_I2C_Read... [10:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8E B7 47 00 5D 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C2 00 00 F4 03 04 00 B5 71 C1 66 B6 04 01 00 00 DE 18 89 26 2D 0C 8F 71 [10:01:26]CommunicateWithHost err = 0 [10:01:26]CheckOFDResponse [10:01:26]1017 (14) - 77093643461234 [10:01:26]1041 (16) - 0000000000871800 [10:01:26]1040 (4) - 49777 [10:01:26]1012 (4) - 18.08.2024 03:59 [10:01:26]1206 (1) - 0 [10:01:26]OFD Sender: Remove packet 49777 [10:01:26]ProducePacketName [10:01:26]name=ofd_packets/00049777 [10:01:26]NVStorageDeleteData [10:01:26]Read from MH i2c: 01 07 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 46 4A 00 00 00 00 00 DA 0C 7D [10:01:26]RasterBufferAndPrint [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]written 0, free lines is 3327 [10:01:26]MH_Cut [10:01:26]Write to MH i2c: D1 01 00 4D 4A 01 69 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 01 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 01 00 4D 4A 00 68 [10:01:26]Write to MH i2c: 01 00 00 4E 4A 98 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]OFD Sender: No OFD packet to send [10:01:26]*** Cut start [10:01:26]*** Purtial cut [10:01:26]*** CUTSNS_PIN = 0 [10:01:27]*** Stage 1: CUTSNS_PIN = 1 [10:01:28]Read from MH i2c: 01 [10:01:28]MH_I2C_Read... [10:01:28]*** Stop cut motor [10:01:28]*** Cut end [10:01:28]Read from MH i2c: 01 07 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 07 00 4E 4A 00 00 00 00 00 FF 0F AD [10:01:28]process_action close_receipt done [10:01:28]requested_data is exist [10:01:28]produce_requested_data [10:01:28]requested_item fm.sn is exist - process it [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 11 00 00 [10:01:28]Write to MH i2c: E2 08 00 4F 4A 80 11 00 00 00 00 00 00 13 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 4F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [10:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:01:29]wFMCommunicate OK [10:01:29]requested_item fd.num is exist - process it [10:01:29]SAM_PROTO_GetFieldsCounters [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 13 00 00 [10:01:29]Write to MH i2c: E2 08 00 50 4A 80 13 00 00 00 00 00 00 16 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 62 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 62 00 50 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_GetFieldsCounters done [10:01:29]requested_item shift.num is exist - process it [10:01:29]requested_item shift.opened is exist - process it [10:01:29]req_shift_opened [10:01:29]FM_GetShiftState [10:01:29]SAM_PROTO_GetShiftState [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 13 01 00 [10:01:29]Write to MH i2c: E2 08 00 51 4A 80 13 01 00 00 00 00 00 18 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 51 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 35 [10:01:29]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_GetShiftState done [10:01:29]FM_GetShiftState done [10:01:29]req_shift_opened done [10:01:29]requested_item shift.open_date is exist - process it [10:01:29]req_shift_open_date [10:01:29]req_shift_open_date done [10:01:29]produce_requested_data done [10:01:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49777,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:01:29]process_action_free close_receipt [10:01:29]json_value_free [10:01:29]json_value_free done [10:01:29]process_json_proto returns [10:01:29]Send response to host [10:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49777,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:01:29]free response buf [10:01:29]execute_script done [10:01:29]execute_script returns [10:01:29]free content buf [10:01:29]Sock 7.Close socket [10:01:29]Sock 7.Thread stoped [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:16]accept exits with 9 [10:03:16]New connection [10:03:16]New thread 3066944868 created [10:03:16]Thread 3066801508 joined [10:03:16]Waiting for new connection... [10:03:16] Sock 9.Parse request [10:03:16]Sock 9.Check first char [10:03:16]Sock 9.First char is OK [10:03:16]request: POST /json_proto HTTP/1.0 [10:03:16]Method: POST [10:03:16]URL: /json_proto [10:03:16]Method is POST - this is cgi request [10:03:16]url: /json_proto [10:03:16]query_string will be loaded in cgi processing [10:03:16]execute_cgi json_proto POST (null) [10:03:16]execute_cgi path=json_proto method=POST [10:03:16]POST find Content-Length [10:03:16]Host: 172.17.46.196:8080 [10:03:16]Content-Length: 924 [10:03:16]Content-Type: application/json [10:03:16] [10:03:16]POST finish read [10:03:16]Found Content-Length = 924 [10:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189957", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:16]execute_script... [10:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189957", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:16]POST & json_proto [10:03:16]process_json_proto [10:03:16]json parsed OK: [10:03:16]protocol is kg_v1.0 [10:03:16]action value=close_receipt [10:03:16]process_action close_receipt [10:03:16]cmd_close_receipt [10:03:16]MH_GetDate [10:03:16]Write to MH i2c: F0 00 00 52 4A 8B [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 09 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 09 00 52 4A 00 ED C6 C1 66 07 E8 5D 66 20 [10:03:16]GetLastDocTimeStamp 1723975291 [10:03:16]current date 1723975405 [10:03:16]FM_GetShiftState [10:03:16]SAM_PROTO_GetShiftState [10:03:16]wFMCommunicate request_size=4 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 13 01 00 [10:03:16]Write to MH i2c: E2 08 00 53 4A 80 13 01 00 00 00 00 00 1A [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0E 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0E 00 53 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 37 [10:03:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:03:16]wFMCommunicate OK [10:03:16]SAM_PROTO_GetShiftState done [10:03:16]FM_GetShiftState done [10:03:16]opened in 1723939759 [10:03:16]opened+sec_in_day 1724026159 [10:03:16]quantity*price = 18000 [10:03:16]sum+1 = 18001 [10:03:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 44 18.08.2024 10:03 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49778 ФПД: 239934576768408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100325&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49778&fm=239934576768408&tin=02508201610067®Number=0000000000092546&sum=23000 0 [10:03:17]StoreToDocumentArchive [10:03:17]shift 466 fd 49778 [10:03:17]save to /storage/0466/doc_00049778 [10:03:17]save last doc name /storage/0466/doc_00049778 to /storage/kkm_last_doc_name [10:03:17]save OK [10:03:17]Clear old archive folders... [10:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=393 [10:03:17]tlvbuf is 018984E0 [10:03:17]SAM_PROTO_ClearQueue [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 09 00 00 [10:03:17]Write to MH i2c: E2 08 00 60 4A 80 09 00 00 00 00 00 00 1C [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 60 4A 00 90 00 1E [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]SAM_PROTO_ClearQueue done [10:03:18]KKMCreateOFDPacket [10:03:18]OFDProtocolAddRootSTLVToBuf [10:03:18]FM_MakeSignedData [10:03:18]FM_MakeSignedData [10:03:18]SAM_PROTO_SignData [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 01 02 [10:03:18]Write to MH i2c: E2 08 00 61 4A 80 0D 01 02 00 00 00 00 24 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 61 4A 00 90 00 1F [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]wFMCommunicate request_size=255 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 [10:03:18]Write to MH i2c: E2 02 01 62 4A 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 E6 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 62 4A 00 90 00 20 [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]wFMCommunicate request_size=152 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 ED C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C2 00 00 35 04 06 00 DA 38 1F 37 B5 98 [10:03:18]Write to MH i2c: E2 9B 00 63 4A 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 ED C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C2 00 00 35 04 06 00 DA 38 1F 37 B5 98 00 00 BF [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 63 4A 00 90 00 21 [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 03 02 [10:03:18]Write to MH i2c: E2 08 00 64 4A 80 0D 03 02 00 00 00 00 29 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 0B 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 0B 00 64 4A 00 DA 71 94 F3 A7 18 F6 25 90 00 D6 [10:03:18]RAPDU: DA 71 94 F3 A7 18 F6 25 90 00 [10:03:18]wFMCommunicate OK [10:03:18]SAM_PROTO_SignData done [10:03:18]FM_MakeSignedData done [10:03:18]CreateOFDProtocolMessage [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 11 00 00 [10:03:18]Write to MH i2c: E2 08 00 65 4A 80 11 00 00 00 00 00 00 29 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 17 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 17 00 65 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [10:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:03:18]wFMCommunicate OK [10:03:18]CreateOFDProtocolMessage done [10:03:18]OFDSenderStorePacket 49778 [10:03:18]StoreOFDPacket docnum=49778 [10:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 40 03 95 01 39 3C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 ED C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C2 00 00 35 04 06 00 DA 38 1F 37 B5 98 DA 71 94 F3 A7 18 F6 25 [10:03:18]CheckFolder [10:03:18]dirname=/storage/ofd_packets [10:03:18]CheckFolder done [10:03:18]ProducePacketName [10:03:18]name=ofd_packets/00049778 [10:03:18]NVStorageSaveData ofd_packets/00049778 [10:03:18]File name is /storage/ofd_packets/00049778 [10:03:18]Write 443 bytes [10:03:18]NVStorageSaveData done [10:03:18]OFDSenderStorePacket done [10:03:18]KKMCreateOFDPacket done [10:03:18]NVStorageSaveData kkm_last_timestamp [10:03:18]File name is /storage/kkm_last_timestamp [10:03:18]Write 4 bytes [10:03:18]NVStorageSaveData done [10:03:18]ExternCall_PrintAddStr [10:03:18]wPrintStart [10:03:18]Write to MH i2c: 01 00 00 66 4A B0 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 07 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 07 00 66 4A 00 00 00 00 00 FF 0F C5 [10:03:18]RasterBufferAndPrint [10:03:18]line Счет N : (3)189957 [10:03:18]line ИНН: 02508201610067 [10:03:18]line Контрольно-Кассовый Чек [10:03:18]line ПРОДАЖА [10:03:18]line Товар: 4650243871828 [10:03:18]line Gorilla эн нап манго-кокос 0,45 ж/б [10:03:18]line 2.000 * 90.00 [10:03:18]line = 180.00 [10:03:18]line НДС 12% НСП 1% [10:03:18]line > о реализуемом товаре [10:03:18]line Товар: 4700000160358 [10:03:18]line Вода Легенда 1л [10:03:18]line 1.000 * 50.00 [10:03:18]line = 50.00 [10:03:18]line НДС 12% НСП 1% [10:03:18]line > о реализуемом товаре [10:03:18]line ИТОГО: 230.00 [10:03:18]line НСП 1% : 2.03 [10:03:18]line НДС 12% : 24.42 [10:03:18]line Наличными: 230.00 [10:03:18]line Безнал.: 0.00 [10:03:18]line Место: АЗС № 95 "Партнер Нефть" [10:03:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:03:18]line СНО: Общий режим [10:03:18]line Чек 44 18.08.2024 10:03 [10:03:18]line Смена: 466 ФФД: 1.0 [10:03:18]line ЗНМ: 0300000078 [10:03:18]line РНМ: 0000000000092546 [10:03:18]line Версия ККМ: 001 [10:03:18]line ФМ: 0000000000871800 [10:03:18]line ФД: 49778 [10:03:18]line ФПД: 239934576768408 [10:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100325&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49778&fm=239934576768408&tin=02508201610067®Number=0000000000092546&sum=23000 [10:03:18]line 0 [10:03:18]OFD Sender: Processing packet 49778 [packets to send 21, broken 20] [10:03:18]ProducePacketName [10:03:18]name=ofd_packets/00049778 [10:03:18]OFD Sender: To server: pG, [10:03:18]CommunicateWithHost lk.salyk.kg:30040 [10:03:18]ConnectInit lk.salyk.kg [10:03:18]written 0, free lines is 4095 [10:03:19]Connected sock=10 [10:03: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 38 30 30 9D 01 00 00 40 03 95 01 39 3C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 ED C6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C2 00 00 35 04 06 00 DA 38 1F 37 B5 98 DA 71 94 F3 A7 18 F6 25 [10:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C9 6F 47 00 E4 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C2 00 00 F4 03 04 00 26 72 C1 66 B6 04 01 00 00 60 01 35 94 8D EA 0B 65 [10:03:19]CommunicateWithHost err = 0 [10:03:19]CheckOFDResponse [10:03:19]1017 (14) - 77093643461234 [10:03:19]1041 (16) - 0000000000871800 [10:03:19]1040 (4) - 49778 [10:03:19]1012 (4) - 18.08.2024 04:01 [10:03:19]1206 (1) - 0 [10:03:19]OFD Sender: Remove packet 49778 [10:03:19]ProducePacketName [10:03:19]name=ofd_packets/00049778 [10:03:19]NVStorageDeleteData [10:03:19]Write to MH i2c: 01 00 00 95 4A DF [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 07 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 07 00 95 4A 00 00 00 00 00 90 0C 82 [10:03:19]RasterBufferAndPrint [10:03:19]line [10:03:19]line [10:03:19]line [10:03:19]line [10:03:19]line [10:03:19]written 0, free lines is 3224 [10:03:19]MH_Cut [10:03:19]Write to MH i2c: D1 01 00 9C 4A 01 B8 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: D1 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: D1 01 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: D1 01 00 9C 4A 00 B7 [10:03:19]Write to MH i2c: 01 00 00 9D 4A E7 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]OFD Sender: No OFD packet to send [10:03:20]*** Cut start [10:03:20]*** Purtial cut [10:03:20]*** Stage 1: CUTSNS_PIN = 1 [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]*** Stop cut motor [10:03:20]*** Cut end [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 9D 4A 00 00 00 00 00 FF 0F FC [10:03:20]process_action close_receipt done [10:03:20]requested_data is exist [10:03:20]produce_requested_data [10:03:20]requested_item fm.sn is exist - process it [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 11 00 00 [10:03:20]Write to MH i2c: E2 08 00 9E 4A 80 11 00 00 00 00 00 00 62 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 9E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [10:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:03:20]wFMCommunicate OK [10:03:20]requested_item fd.num is exist - process it [10:03:20]SAM_PROTO_GetFieldsCounters [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 13 00 00 [10:03:20]Write to MH i2c: E2 08 00 9F 4A 80 13 00 00 00 00 00 00 65 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 62 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 62 00 9F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:03:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_GetFieldsCounters done [10:03:20]requested_item shift.num is exist - process it [10:03:20]requested_item shift.opened is exist - process it [10:03:20]req_shift_opened [10:03:20]FM_GetShiftState [10:03:20]SAM_PROTO_GetShiftState [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 13 01 00 [10:03:20]Write to MH i2c: E2 08 00 A0 4A 80 13 01 00 00 00 00 00 67 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0E 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0E 00 A0 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 84 [10:03:20]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_GetShiftState done [10:03:20]FM_GetShiftState done [10:03:20]req_shift_opened done [10:03:20]requested_item shift.open_date is exist - process it [10:03:20]req_shift_open_date [10:03:20]req_shift_open_date done [10:03:20]produce_requested_data done [10:03:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49778,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:03:20]process_action_free close_receipt [10:03:20]json_value_free [10:03:20]json_value_free done [10:03:20]process_json_proto returns [10:03:20]Send response to host [10:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49778,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:03:20]free response buf [10:03:20]execute_script done [10:03:20]execute_script returns [10:03:20]free content buf [10:03:20]Sock 9.Close socket [10:03:20]Sock 9.Thread stoped [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [10:04:48]int [10:04:48]Write to MH i2c: 01 00 00 A1 4A EB [10:04:48]*** FLAG_PRN_KEY set [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 A1 4A 00 08 00 00 00 FF 0F 08 [10:04:48]state=0 [10:04:48]Key pressed [10:04:48]Feed [10:04:48]Write to MH i2c: D8 00 00 A2 4A C3 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D8 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D8 01 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D8 01 00 A2 4A 00 C4 [10:04:48]int [10:04:48]Write to MH i2c: 01 00 00 A3 4A ED [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 A3 4A 00 48 00 00 00 3C 00 78 [10:04:48]state=2 [10:04:48]Key pressed [10:04:48]int [10:04:48]Write to MH i2c: 01 00 00 A4 4A EE [10:04:48]*** FLAG_PRN_KEY reset [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 A4 4A 00 00 00 00 00 FB 0F FF [10:04:48]state=2 [10:04:48]Stop feed [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]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:50]accept exits with 7 [10:10:50]New connection [10:10:50]New thread 3066801508 created [10:10:50]Thread 3066944868 joined [10:10:50]Waiting for new connection... [10:10:50] Sock 7.Parse request [10:10:50]Sock 7.Check first char [10:10:50]Sock 7.First char is OK [10:10:50]request: POST /json_proto HTTP/1.0 [10:10:50]Method: POST [10:10:50]URL: /json_proto [10:10:50]Method is POST - this is cgi request [10:10:50]url: /json_proto [10:10:50]query_string will be loaded in cgi processing [10:10:50]execute_cgi json_proto POST (null) [10:10:50]execute_cgi path=json_proto method=POST [10:10:50]POST find Content-Length [10:10:50]Host: 172.17.46.196:8080 [10:10:50]Content-Length: 859 [10:10:50]Content-Type: application/json [10:10:50] [10:10:50]POST finish read [10:10:50]Found Content-Length = 859 [10:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189958", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:50]execute_script... [10:10:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189958", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:50]POST & json_proto [10:10:50]process_json_proto [10:10:50]json parsed OK: [10:10:50]protocol is kg_v1.0 [10:10:50]action value=close_receipt [10:10:50]process_action close_receipt [10:10:50]cmd_close_receipt [10:10:50]MH_GetDate [10:10:50]Write to MH i2c: F0 00 00 A5 4A DE [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: F0 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: F0 09 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: F0 09 00 A5 4A 00 B2 C8 C1 66 07 E8 5D 66 3A [10:10:50]GetLastDocTimeStamp 1723975405 [10:10:50]current date 1723975858 [10:10:50]FM_GetShiftState [10:10:50]SAM_PROTO_GetShiftState [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 13 01 00 [10:10:50]Write to MH i2c: E2 08 00 A6 4A 80 13 01 00 00 00 00 00 6D [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0E 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0E 00 A6 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8A [10:10:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_GetShiftState done [10:10:50]FM_GetShiftState done [10:10:50]opened in 1723939759 [10:10:50]opened+sec_in_day 1724026159 [10:10:50]quantity*price = 6500 [10:10:50]sum+1 = 6501 [10:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 45 18.08.2024 10:10 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Демир КИ Банк ФМ: 0000000000871800 ФД: 49779 ФПД: 55889439160557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T101058&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49779&fm=55889439160557&tin=02508201610067®Number=0000000000092546&sum=6500 0 [10:10:51]StoreToDocumentArchive [10:10:51]shift 466 fd 49779 [10:10:51]save to /storage/0466/doc_00049779 [10:10:51]save last doc name /storage/0466/doc_00049779 to /storage/kkm_last_doc_name [10:10:51]save OK [10:10:51]Clear old archive folders... [10:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=284 [10:10:51]tlvbuf is 01915910 [10:10:51]SAM_PROTO_ClearQueue [10:10:51]wFMCommunicate request_size=4 [10:10:51]MH_SAM_APDU [10:10:51]CAPDU: 80 09 00 00 [10:10:51]Write to MH i2c: E2 08 00 B3 4A 80 09 00 00 00 00 00 00 6F [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:51]Read from MH i2c: E2 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: E2 03 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: E2 03 00 B3 4A 00 90 00 71 [10:10:51]RAPDU: 90 00 [10:10:51]wFMCommunicate OK [10:10:51]SAM_PROTO_ClearQueue done [10:10:51]KKMCreateOFDPacket [10:10:51]OFDProtocolAddRootSTLVToBuf [10:10:51]FM_MakeSignedData [10:10:51]FM_MakeSignedData [10:10:51]SAM_PROTO_SignData [10:10:51]wFMCommunicate request_size=4 [10:10:51]MH_SAM_APDU [10:10:51]CAPDU: 80 0D 01 02 [10:10:51]Write to MH i2c: E2 08 00 B4 4A 80 0D 01 02 00 00 00 00 77 [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:51]Read from MH i2c: E2 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: E2 03 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: E2 03 00 B4 4A 00 90 00 72 [10:10:51]RAPDU: 90 00 [10:10:51]wFMCommunicate OK [10:10:51]wFMCommunicate request_size=255 [10:10:51]MH_SAM_APDU [10:10:51]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 C8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [10:10:51]Write to MH i2c: E2 02 01 B5 4A 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 C8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 A5 [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 03 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 03 00 B5 4A 00 90 00 73 [10:10:52]RAPDU: 90 00 [10:10:52]wFMCommunicate OK [10:10:52]wFMCommunicate request_size=43 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C2 00 00 35 04 06 00 32 D4 C6 2A F8 ED [10:10:52]Write to MH i2c: E2 2E 00 B6 4A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C2 00 00 35 04 06 00 32 D4 C6 2A F8 ED 00 00 6A [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 03 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 03 00 B6 4A 00 90 00 74 [10:10:52]RAPDU: 90 00 [10:10:52]wFMCommunicate OK [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 0D 03 02 [10:10:52]Write to MH i2c: E2 08 00 B7 4A 80 0D 03 02 00 00 00 00 7C [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 0B 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 0B 00 B7 4A 00 3D AE 39 7C F2 93 8C EF 90 00 1D [10:10:52]RAPDU: 3D AE 39 7C F2 93 8C EF 90 00 [10:10:52]wFMCommunicate OK [10:10:52]SAM_PROTO_SignData done [10:10:52]FM_MakeSignedData done [10:10:52]CreateOFDProtocolMessage [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 11 00 00 [10:10:52]Write to MH i2c: E2 08 00 B8 4A 80 11 00 00 00 00 00 00 7C [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 B8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [10:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:52]wFMCommunicate OK [10:10:52]CreateOFDProtocolMessage done [10:10:52]OFDSenderStorePacket 49779 [10:10:52]StoreOFDPacket docnum=49779 [10:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 FC 30 28 01 F6 77 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 C8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C2 00 00 35 04 06 00 32 D4 C6 2A F8 ED 3D AE 39 7C F2 93 8C EF [10:10:52]CheckFolder [10:10:52]dirname=/storage/ofd_packets [10:10:52]CheckFolder done [10:10:52]ProducePacketName [10:10:52]name=ofd_packets/00049779 [10:10:52]NVStorageSaveData ofd_packets/00049779 [10:10:52]File name is /storage/ofd_packets/00049779 [10:10:52]Write 334 bytes [10:10:52]NVStorageSaveData done [10:10:52]OFDSenderStorePacket done [10:10:52]KKMCreateOFDPacket done [10:10:52]NVStorageSaveData kkm_last_timestamp [10:10:52]File name is /storage/kkm_last_timestamp [10:10:52]Write 4 bytes [10:10:52]NVStorageSaveData done [10:10:52]ExternCall_PrintAddStr [10:10:52]wPrintStart [10:10:52]Write to MH i2c: 01 00 00 B9 4A 03 [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: 01 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: 01 07 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: 01 07 00 B9 4A 00 00 00 00 00 FF 0F 18 [10:10:52]RasterBufferAndPrint [10:10:52]line Счет N : (3)189958 [10:10:52]line ИНН: 02508201610067 [10:10:52]line Контрольно-Кассовый Чек [10:10:52]line ПРОДАЖА [10:10:52]line Товар: 4700040114137 [10:10:52]line Султан чай 1л. зел лимон [10:10:52]line 1.000 * 65.00 [10:10:52]line = 65.00 [10:10:52]line НДС 12% НСП 1% [10:10:52]line > о реализуемом товаре [10:10:52]line ИТОГО: 65.00 [10:10:52]line НСП 1% : 0.57 [10:10:52]line НДС 12% : 6.90 [10:10:52]line Наличными: 0.00 [10:10:52]line Безнал.: 65.00 [10:10:52]line Место: АЗС № 95 "Партнер Нефть" [10:10:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:10:52]line СНО: Общий режим [10:10:52]line Чек 45 18.08.2024 10:10 [10:10:52]line Смена: 466 ФФД: 1.0 [10:10:52]line ЗНМ: 0300000078 [10:10:52]line РНМ: 0000000000092546 [10:10:52]line Версия ККМ: 001 [10:10:52]line Платежная система: Демир КИ Банк [10:10:52]line ФМ: 0000000000871800 [10:10:52]line ФД: 49779 [10:10:52]line ФПД: 55889439160557 [10:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T101058&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49779&fm=55889439160557&tin=02508201610067®Number=0000000000092546&sum=6500 [10:10:52]line 0 [10:10:52]OFD Sender: Processing packet 49779 [packets to send 21, broken 20] [10:10:52]ProducePacketName [10:10:52]name=ofd_packets/00049779 [10:10:52]OFD Sender: To server: pG, [10:10:52]CommunicateWithHost lk.salyk.kg:30040 [10:10:52]ConnectInit lk.salyk.kg [10:10:52]written 0, free lines is 4095 [10:10:52]Connected sock=10 [10:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 FC 30 28 01 F6 77 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B2 C8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C2 00 00 35 04 06 00 32 D4 C6 2A F8 ED 3D AE 39 7C F2 93 8C EF [10:10:53]Write to MH i2c: 01 00 00 E3 4A 2D [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: 01 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: 01 07 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: 01 07 00 E3 4A 00 00 00 00 00 E4 0C 24 [10:10:53]RasterBufferAndPrint [10:10:53]line [10:10:53]line [10:10:53]line [10:10:53]line [10:10:53]line [10:10:53]written 0, free lines is 3306 [10:10:53]MH_Cut [10:10:53]Write to MH i2c: D1 01 00 EA 4A 01 06 [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: D1 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: D1 01 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: D1 01 00 EA 4A 00 05 [10:10:53]Write to MH i2c: 01 00 00 EB 4A 35 [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10: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 38 30 30 4F 00 00 00 96 3A 47 00 DC D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C2 00 00 F4 03 04 00 EC 73 C1 66 B6 04 01 00 00 EE C7 F6 1B BB 3A 10 AD [10:10:53]CommunicateWithHost err = 0 [10:10:53]CheckOFDResponse [10:10:53]1017 (14) - 77093643461234 [10:10:53]1041 (16) - 0000000000871800 [10:10:53]1040 (4) - 49779 [10:10:53]1012 (4) - 18.08.2024 04:09 [10:10:53]1206 (1) - 0 [10:10:53]OFD Sender: Remove packet 49779 [10:10:53]ProducePacketName [10:10:53]name=ofd_packets/00049779 [10:10:53]NVStorageDeleteData [10:10:53]OFD Sender: No OFD packet to send [10:10:53]*** Cut start [10:10:53]*** Purtial cut [10:10:53]*** CUTSNS_PIN = 0 [10:10:54]*** Stage 1: CUTSNS_PIN = 1 [10:10:55]Read from MH i2c: 01 [10:10:55]MH_I2C_Read... [10:10:55]*** Stop cut motor [10:10:55]*** Cut end [10:10:55]Read from MH i2c: 01 07 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: 01 07 00 EB 4A 00 00 00 00 00 FF 0F 4A [10:10:55]process_action close_receipt done [10:10:55]requested_data is exist [10:10:55]produce_requested_data [10:10:55]requested_item fm.sn is exist - process it [10:10:55]wFMCommunicate request_size=4 [10:10:55]MH_SAM_APDU [10:10:55]CAPDU: 80 11 00 00 [10:10:55]Write to MH i2c: E2 08 00 EC 4A 80 11 00 00 00 00 00 00 B0 [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:56]Read from MH i2c: E2 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 17 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 17 00 EC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FB [10:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:56]wFMCommunicate OK [10:10:56]requested_item fd.num is exist - process it [10:10:56]SAM_PROTO_GetFieldsCounters [10:10:56]wFMCommunicate request_size=4 [10:10:56]MH_SAM_APDU [10:10:56]CAPDU: 80 13 00 00 [10:10:56]Write to MH i2c: E2 08 00 ED 4A 80 13 00 00 00 00 00 00 B3 [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:56]Read from MH i2c: E2 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 62 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 62 00 ED 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 73 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [10:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 73 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:56]wFMCommunicate OK [10:10:56]SAM_PROTO_GetFieldsCounters done [10:10:56]requested_item shift.num is exist - process it [10:10:56]requested_item shift.opened is exist - process it [10:10:56]req_shift_opened [10:10:56]FM_GetShiftState [10:10:56]SAM_PROTO_GetShiftState [10:10:56]wFMCommunicate request_size=4 [10:10:56]MH_SAM_APDU [10:10:56]CAPDU: 80 13 01 00 [10:10:56]Write to MH i2c: E2 08 00 EE 4A 80 13 01 00 00 00 00 00 B5 [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:56]Read from MH i2c: E2 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 0E 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 0E 00 EE 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D2 [10:10:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:10:56]wFMCommunicate OK [10:10:56]SAM_PROTO_GetShiftState done [10:10:56]FM_GetShiftState done [10:10:56]req_shift_opened done [10:10:56]requested_item shift.open_date is exist - process it [10:10:56]req_shift_open_date [10:10:56]req_shift_open_date done [10:10:56]produce_requested_data done [10:10:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49779,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:10:56]process_action_free close_receipt [10:10:56]json_value_free [10:10:56]json_value_free done [10:10:56]process_json_proto returns [10:10:56]Send response to host [10:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49779,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:10:56]free response buf [10:10:56]execute_script done [10:10:56]execute_script returns [10:10:56]free content buf [10:10:56]Sock 7.Close socket [10:10:56]Sock 7.Thread stoped [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:42]accept exits with 9 [10:31:42]New connection [10:31:42]New thread 3066944868 created [10:31:42]Thread 3066801508 joined [10:31:42]Waiting for new connection... [10:31:42] Sock 9.Parse request [10:31:42]Sock 9.Check first char [10:31:42]Sock 9.First char is OK [10:31:42]request: POST /json_proto HTTP/1.0 [10:31:42]Method: POST [10:31:42]URL: /json_proto [10:31:42]Method is POST - this is cgi request [10:31:42]url: /json_proto [10:31:42]query_string will be loaded in cgi processing [10:31:42]execute_cgi json_proto POST (null) [10:31:42]execute_cgi path=json_proto method=POST [10:31:42]POST find Content-Length [10:31:42]Host: 172.17.46.196:8080 [10:31:42]Content-Length: 896 [10:31:42]Content-Type: application/json [10:31:42] [10:31:42]POST finish read [10:31:42]Found Content-Length = 896 [10:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189959", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:42]execute_script... [10:31: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 : (3)189959", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:42]POST & json_proto [10:31:42]process_json_proto [10:31:42]json parsed OK: [10:31:42]protocol is kg_v1.0 [10:31:42]action value=close_receipt [10:31:42]process_action close_receipt [10:31:42]cmd_close_receipt [10:31:42]MH_GetDate [10:31:42]Write to MH i2c: F0 00 00 EF 4A 28 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: F0 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: F0 09 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: F0 09 00 EF 4A 00 97 CD C1 66 07 E8 5D 66 6E [10:31:42]GetLastDocTimeStamp 1723975858 [10:31:42]current date 1723977111 [10:31:42]FM_GetShiftState [10:31:42]SAM_PROTO_GetShiftState [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 13 01 00 [10:31:42]Write to MH i2c: E2 08 00 F0 4A 80 13 01 00 00 00 00 00 B7 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0E 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0E 00 F0 4A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D4 [10:31:42]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:31:42]wFMCommunicate OK [10:31:42]SAM_PROTO_GetShiftState done [10:31:42]FM_GetShiftState done [10:31:42]opened in 1723939759 [10:31:42]opened+sec_in_day 1724026159 [10:31:42]quantity*price = 12500 [10:31:42]sum+1 = 12501 [10:31:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.44 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 46 18.08.2024 10:31 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49780 ФПД: 48324350993744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49780&fm=48324350993744&tin=02508201610067®Number=0000000000092546&sum=27500 0 [10:31:44]StoreToDocumentArchive [10:31:44]shift 466 fd 49780 [10:31:44]save to /storage/0466/doc_00049780 [10:31:44]save last doc name /storage/0466/doc_00049780 to /storage/kkm_last_doc_name [10:31:44]save OK [10:31:44]Clear old archive folders... [10:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=382 [10:31:44]tlvbuf is 018E3F50 [10:31:44]SAM_PROTO_ClearQueue [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 09 00 00 [10:31:44]Write to MH i2c: E2 08 00 FD 4A 80 09 00 00 00 00 00 00 B9 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [10:31:44]RAPDU: 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_ClearQueue done [10:31:44]KKMCreateOFDPacket [10:31:44]OFDProtocolAddRootSTLVToBuf [10:31:44]FM_MakeSignedData [10:31:44]FM_MakeSignedData [10:31:44]SAM_PROTO_SignData [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 0D 01 02 [10:31:44]Write to MH i2c: E2 08 00 FE 4A 80 0D 01 02 00 00 00 00 C1 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [10:31:44]RAPDU: 90 00 [10:31:44]wFMCommunicate OK [10:31:44]wFMCommunicate request_size=255 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 [10:31:44]Write to MH i2c: E2 02 01 FF 4A 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 73 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 FF 4A 00 90 00 BD [10:31:44]RAPDU: 90 00 [10:31:44]wFMCommunicate OK [10:31:44]wFMCommunicate request_size=141 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 97 CD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C2 00 00 35 04 06 00 2B F3 63 C6 65 50 [10:31:44]Write to MH i2c: E2 90 00 00 4B 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 97 CD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C2 00 00 35 04 06 00 2B F3 63 C6 65 50 00 00 03 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 03 00 00 4B 00 90 00 BF [10:31:44]RAPDU: 90 00 [10:31:44]wFMCommunicate OK [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 0D 03 02 [10:31:44]Write to MH i2c: E2 08 00 01 4B 80 0D 03 02 00 00 00 00 C7 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0B 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0B 00 01 4B 00 CF 6F F4 00 B0 2C 98 69 90 00 D7 [10:31:44]RAPDU: CF 6F F4 00 B0 2C 98 69 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_SignData done [10:31:44]FM_MakeSignedData done [10:31:44]CreateOFDProtocolMessage [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 11 00 00 [10:31:44]Write to MH i2c: E2 08 00 02 4B 80 11 00 00 00 00 00 00 C7 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 17 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 17 00 02 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [10:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:31:44]wFMCommunicate OK [10:31:44]CreateOFDProtocolMessage done [10:31:44]OFDSenderStorePacket 49780 [10:31:44]StoreOFDPacket docnum=49780 [10:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 0E CC 8A 01 4D D5 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 97 CD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C2 00 00 35 04 06 00 2B F3 63 C6 65 50 CF 6F F4 00 B0 2C 98 69 [10:31:44]CheckFolder [10:31:44]dirname=/storage/ofd_packets [10:31:44]CheckFolder done [10:31:44]ProducePacketName [10:31:44]name=ofd_packets/00049780 [10:31:44]NVStorageSaveData ofd_packets/00049780 [10:31:44]File name is /storage/ofd_packets/00049780 [10:31:44]Write 432 bytes [10:31:44]NVStorageSaveData done [10:31:44]OFDSenderStorePacket done [10:31:44]KKMCreateOFDPacket done [10:31:44]NVStorageSaveData kkm_last_timestamp [10:31:44]File name is /storage/kkm_last_timestamp [10:31:44]Write 4 bytes [10:31:44]NVStorageSaveData done [10:31:44]ExternCall_PrintAddStr [10:31:44]wPrintStart [10:31:44]Write to MH i2c: 01 00 00 03 4B 4E [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: 01 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: 01 07 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: 01 07 00 03 4B 00 00 00 00 00 FF 0F 63 [10:31:44]RasterBufferAndPrint [10:31:44]line Счет N : (3)189959 [10:31:44]line ИНН: 02508201610067 [10:31:44]line Контрольно-Кассовый Чек [10:31:44]line ПРОДАЖА [10:31:44]line Товар: 5449000054227 [10:31:44]line Напиток Кока-Кола 1л [10:31:44]line 1.000 * 125.00 [10:31:44]line = 125.00 [10:31:44]line НДС 12% НСП 1% [10:31:44]line > о реализуемом товаре [10:31:45]line Товар: 46230614 [10:31:45]line Сигареты Richmond Red Edition [10:31:45]line 1.000 * 150.00 [10:31:45]line = 150.00 [10:31:45]line НДС 12% НСП 1% [10:31:45]line > о реализуемом товаре [10:31:45]line ИТОГО: 275.00 [10:31:45]line НСП 1% : 2.44 [10:31:45]line НДС 12% : 29.20 [10:31:45]line Наличными: 275.00 [10:31:45]line Безнал.: 0.00 [10:31:45]line Место: АЗС № 95 "Партнер Нефть" [10:31:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:31:45]line СНО: Общий режим [10:31:45]line Чек 46 18.08.2024 10:31 [10:31:45]line Смена: 466 ФФД: 1.0 [10:31:45]line ЗНМ: 0300000078 [10:31:45]line РНМ: 0000000000092546 [10:31:45]line Версия ККМ: 001 [10:31:45]line ФМ: 0000000000871800 [10:31:45]line ФД: 49780 [10:31:45]line ФПД: 48324350993744 [10:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49780&fm=48324350993744&tin=02508201610067®Number=0000000000092546&sum=27500 [10:31:45]line 0 [10:31:45]OFD Sender: Processing packet 49780 [packets to send 21, broken 20] [10:31:45]ProducePacketName [10:31:45]name=ofd_packets/00049780 [10:31:45]OFD Sender: To server: pG, [10:31:45]CommunicateWithHost lk.salyk.kg:30040 [10:31:45]ConnectInit lk.salyk.kg [10:31:45]written 0, free lines is 4095 [10:31:45]Connected sock=10 [10:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 0E CC 8A 01 4D D5 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 97 CD C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C2 00 00 35 04 06 00 2B F3 63 C6 65 50 CF 6F F4 00 B0 2C 98 69 [10:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DE A0 47 00 21 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C2 00 00 F4 03 04 00 D0 78 C1 66 B6 04 01 00 00 E5 DE D3 4D 4E 50 3C 29 [10:31:45]CommunicateWithHost err = 0 [10:31:45]CheckOFDResponse [10:31:45]1017 (14) - 77093643461234 [10:31:45]1041 (16) - 0000000000871800 [10:31:45]1040 (4) - 49780 [10:31:45]1012 (4) - 18.08.2024 04:30 [10:31:45]1206 (1) - 0 [10:31:45]OFD Sender: Remove packet 49780 [10:31:45]ProducePacketName [10:31:45]name=ofd_packets/00049780 [10:31:45]NVStorageDeleteData [10:31:45]Write to MH i2c: 01 00 00 32 4B 7D [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 32 4B 00 00 00 00 00 78 0C 08 [10:31:45]RasterBufferAndPrint [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]written 0, free lines is 3198 [10:31:45]MH_Cut [10:31:45]Write to MH i2c: D1 01 00 39 4B 01 56 [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 01 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 01 00 39 4B 00 55 [10:31:45]Write to MH i2c: 01 00 00 3A 4B 85 [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]OFD Sender: No OFD packet to send [10:31:46]*** Cut start [10:31:46]*** Purtial cut [10:31:46]*** Stage 1: CUTSNS_PIN = 1 [10:31:46]Read from MH i2c: 01 [10:31:46]MH_I2C_Read... [10:31:46]*** Stop cut motor [10:31:46]*** Cut end [10:31:46]Read from MH i2c: 01 07 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: 01 07 00 3A 4B 00 00 00 00 00 FF 0F 9A [10:31:46]process_action close_receipt done [10:31:46]requested_data is exist [10:31:46]produce_requested_data [10:31:46]requested_item fm.sn is exist - process it [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 11 00 00 [10:31:46]Write to MH i2c: E2 08 00 3B 4B 80 11 00 00 00 00 00 00 00 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 17 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 17 00 3B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [10:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:31:46]wFMCommunicate OK [10:31:46]requested_item fd.num is exist - process it [10:31:46]SAM_PROTO_GetFieldsCounters [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 13 00 00 [10:31:46]Write to MH i2c: E2 08 00 3C 4B 80 13 00 00 00 00 00 00 03 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 62 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 62 00 3C 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 74 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 74 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:46]wFMCommunicate OK [10:31:46]SAM_PROTO_GetFieldsCounters done [10:31:46]requested_item shift.num is exist - process it [10:31:46]requested_item shift.opened is exist - process it [10:31:46]req_shift_opened [10:31:46]FM_GetShiftState [10:31:46]SAM_PROTO_GetShiftState [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 13 01 00 [10:31:46]Write to MH i2c: E2 08 00 3D 4B 80 13 01 00 00 00 00 00 05 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 0E 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 0E 00 3D 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 22 [10:31:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:31:46]wFMCommunicate OK [10:31:46]SAM_PROTO_GetShiftState done [10:31:46]FM_GetShiftState done [10:31:46]req_shift_opened done [10:31:46]requested_item shift.open_date is exist - process it [10:31:46]req_shift_open_date [10:31:46]req_shift_open_date done [10:31:46]produce_requested_data done [10:31:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49780,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:31:46]process_action_free close_receipt [10:31:46]json_value_free [10:31:46]json_value_free done [10:31:46]process_json_proto returns [10:31:46]Send response to host [10:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49780,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:31:46]free response buf [10:31:46]execute_script done [10:31:46]execute_script returns [10:31:46]free content buf [10:31:46]Sock 9.Close socket [10:31:46]Sock 9.Thread stoped [10:31:50]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:17]accept exits with 7 [10:34:17]New connection [10:34:17]New thread 3066801508 created [10:34:17]Thread 3066944868 joined [10:34:17]Waiting for new connection... [10:34:17] Sock 7.Parse request [10:34:17]Sock 7.Check first char [10:34:17]Sock 7.First char is OK [10:34:17]request: POST /json_proto HTTP/1.0 [10:34:17]Method: POST [10:34:17]URL: /json_proto [10:34:17]Method is POST - this is cgi request [10:34:17]url: /json_proto [10:34:17]query_string will be loaded in cgi processing [10:34:17]execute_cgi json_proto POST (null) [10:34:17]execute_cgi path=json_proto method=POST [10:34:17]POST find Content-Length [10:34:17]Host: 172.17.46.196:8080 [10:34:17]Content-Length: 682 [10:34:17]Content-Type: application/json [10:34:17] [10:34:17]POST finish read [10:34:17]Found Content-Length = 682 [10:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189960", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:17]execute_script... [10:34:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189960", "tax_sys" : 0, "items" : [ { "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:17]POST & json_proto [10:34:17]process_json_proto [10:34:17]json parsed OK: [10:34:17]protocol is kg_v1.0 [10:34:17]action value=close_receipt [10:34:17]process_action close_receipt [10:34:17]cmd_close_receipt [10:34:17]MH_GetDate [10:34:17]Write to MH i2c: F0 00 00 3E 4B 78 [10:34:17]Write i2c OK [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: F0 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: F0 09 00 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: F0 09 00 3E 4B 00 31 CE C1 66 07 E8 5D 66 59 [10:34:17]GetLastDocTimeStamp 1723977111 [10:34:17]current date 1723977265 [10:34:17]FM_GetShiftState [10:34:17]SAM_PROTO_GetShiftState [10:34:17]wFMCommunicate request_size=4 [10:34:17]MH_SAM_APDU [10:34:17]CAPDU: 80 13 01 00 [10:34:17]Write to MH i2c: E2 08 00 3F 4B 80 13 01 00 00 00 00 00 07 [10:34:17]Write i2c OK [10:34:17]MH_I2C_Read... [10:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:17]Read from MH i2c: E2 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: E2 0E 00 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: E2 0E 00 3F 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 24 [10:34:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:34:17]wFMCommunicate OK [10:34:17]SAM_PROTO_GetShiftState done [10:34:17]FM_GetShiftState done [10:34:17]opened in 1723939759 [10:34:17]opened+sec_in_day 1724026159 [10:34:17]quantity*price = 6500 [10:34:17]sum+1 = 6501 [10:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 47 18.08.2024 10:34 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49781 ФПД: 155358190682241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103425&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49781&fm=155358190682241&tin=02508201610067®Number=0000000000092546&sum=6500 0 [10:34:18]StoreToDocumentArchive [10:34:18]shift 466 fd 49781 [10:34:18]save to /storage/0466/doc_00049781 [10:34:18]save last doc name /storage/0466/doc_00049781 to /storage/kkm_last_doc_name [10:34:18]save OK [10:34:18]Clear old archive folders... [10:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:34:18]tlvbuf is 0195F630 [10:34:18]SAM_PROTO_ClearQueue [10:34:18]wFMCommunicate request_size=4 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 09 00 00 [10:34:18]Write to MH i2c: E2 08 00 4C 4B 80 09 00 00 00 00 00 00 09 [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 4C 4B 00 90 00 0B [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]SAM_PROTO_ClearQueue done [10:34:18]KKMCreateOFDPacket [10:34:18]OFDProtocolAddRootSTLVToBuf [10:34:18]FM_MakeSignedData [10:34:18]FM_MakeSignedData [10:34:18]SAM_PROTO_SignData [10:34:18]wFMCommunicate request_size=4 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 0D 01 02 [10:34:18]Write to MH i2c: E2 08 00 4D 4B 80 0D 01 02 00 00 00 00 11 [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:18]Read from MH i2c: E2 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 [10:34:18]MH_I2C_Read... [10:34:18]Read from MH i2c: E2 03 00 4D 4B 00 90 00 0C [10:34:18]RAPDU: 90 00 [10:34:18]wFMCommunicate OK [10:34:18]wFMCommunicate request_size=255 [10:34:18]MH_SAM_APDU [10:34:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:34:18]Write to MH i2c: E2 02 01 4E 4B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 DA [10:34:18]Write i2c OK [10:34:18]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]wFMCommunicate request_size=52 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C2 00 00 35 04 06 00 8D 4C 25 C4 C0 81 [10:34:19]Write to MH i2c: E2 37 00 4F 4B 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C2 00 00 35 04 06 00 8D 4C 25 C4 C0 81 00 00 0A [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 03 00 4F 4B 00 90 00 0E [10:34:19]RAPDU: 90 00 [10:34:19]wFMCommunicate OK [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 0D 03 02 [10:34:19]Write to MH i2c: E2 08 00 50 4B 80 0D 03 02 00 00 00 00 16 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0B 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0B 00 50 4B 00 84 7B F0 8C 53 18 97 A1 90 00 35 [10:34:19]RAPDU: 84 7B F0 8C 53 18 97 A1 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_SignData done [10:34:19]FM_MakeSignedData done [10:34:19]CreateOFDProtocolMessage [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 11 00 00 [10:34:19]Write to MH i2c: E2 08 00 51 4B 80 11 00 00 00 00 00 00 16 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 51 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [10:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:34:19]wFMCommunicate OK [10:34:19]CreateOFDProtocolMessage done [10:34:19]OFDSenderStorePacket 49781 [10:34:19]StoreOFDPacket docnum=49781 [10:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 05 28 31 01 28 72 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C2 00 00 35 04 06 00 8D 4C 25 C4 C0 81 84 7B F0 8C 53 18 97 A1 [10:34:19]CheckFolder [10:34:19]dirname=/storage/ofd_packets [10:34:19]CheckFolder done [10:34:19]ProducePacketName [10:34:19]name=ofd_packets/00049781 [10:34:19]NVStorageSaveData ofd_packets/00049781 [10:34:19]File name is /storage/ofd_packets/00049781 [10:34:19]Write 343 bytes [10:34:19]NVStorageSaveData done [10:34:19]OFDSenderStorePacket done [10:34:19]KKMCreateOFDPacket done [10:34:19]NVStorageSaveData kkm_last_timestamp [10:34:19]File name is /storage/kkm_last_timestamp [10:34:19]Write 4 bytes [10:34:19]NVStorageSaveData done [10:34:19]ExternCall_PrintAddStr [10:34:19]wPrintStart [10:34:19]Write to MH i2c: 01 00 00 52 4B 9D [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 07 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 07 00 52 4B 00 00 00 00 00 FF 0F B2 [10:34:19]RasterBufferAndPrint [10:34:19]line Счет N : (3)189960 [10:34:19]line ИНН: 02508201610067 [10:34:19]line Контрольно-Кассовый Чек [10:34:19]line ПРОДАЖА [10:34:19]line Товар: 4870002328404 [10:34:19]line Вода ASU пит н.газ мята ПЭТ 0,5л [10:34:19]line 1.000 * 65.00 [10:34:19]line = 65.00 [10:34:19]line НДС 12% НСП 1% [10:34:19]line > о реализуемом товаре [10:34:19]line ИТОГО: 65.00 [10:34:19]line НСП 1% : 0.57 [10:34:19]line НДС 12% : 6.90 [10:34:19]line Наличными: 65.00 [10:34:19]line Безнал.: 0.00 [10:34:19]line Место: АЗС № 95 "Партнер Нефть" [10:34:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:34:19]line СНО: Общий режим [10:34:19]line Чек 47 18.08.2024 10:34 [10:34:19]line Смена: 466 ФФД: 1.0 [10:34:19]line ЗНМ: 0300000078 [10:34:19]line РНМ: 0000000000092546 [10:34:19]line Версия ККМ: 001 [10:34:19]line ФМ: 0000000000871800 [10:34:19]line ФД: 49781 [10:34:19]line ФПД: 155358190682241 [10:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103425&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49781&fm=155358190682241&tin=02508201610067®Number=0000000000092546&sum=6500 [10:34:19]OFD Sender: Processing packet 49781 [packets to send 21, broken 20] [10:34:19]ProducePacketName [10:34:19]name=ofd_packets/00049781 [10:34:19]OFD Sender: To server: pG, [10:34:19]CommunicateWithHost lk.salyk.kg:30040 [10:34:19]ConnectInit lk.salyk.kg [10:34:19]line 0 [10:34:19]written 0, free lines is 4095 [10:34:19]Connected sock=10 [10:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 05 28 31 01 28 72 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C2 00 00 35 04 06 00 8D 4C 25 C4 C0 81 84 7B F0 8C 53 18 97 A1 [10:34:20]Write to MH i2c: 01 00 00 7B 4B C6 [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 07 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: 01 07 00 7B 4B 00 00 00 00 00 D9 0C B2 [10:34:20]RasterBufferAndPrint [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]line [10:34:20]written 0, free lines is 3296 [10:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D0 49 47 00 CE 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C2 00 00 F4 03 04 00 6B 79 C1 66 B6 04 01 00 00 7C C0 89 2D 23 B8 DD A1 [10:34:20]CommunicateWithHost err = 0 [10:34:20]CheckOFDResponse [10:34:20]1017 (14) - 77093643461234 [10:34:20]1041 (16) - 0000000000871800 [10:34:20]1040 (4) - 49781 [10:34:20]1012 (4) - 18.08.2024 04:32 [10:34:20]1206 (1) - 0 [10:34:20]OFD Sender: Remove packet 49781 [10:34:20]ProducePacketName [10:34:20]name=ofd_packets/00049781 [10:34:20]NVStorageDeleteData [10:34:20]MH_Cut [10:34:20]Write to MH i2c: D1 01 00 82 4B 01 9F [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 01 00 [10:34:20]MH_I2C_Read... [10:34:20]Read from MH i2c: D1 01 00 82 4B 00 9E [10:34:20]Write to MH i2c: 01 00 00 83 4B CE [10:34:20]Write i2c OK [10:34:20]MH_I2C_Read... [10:34:20]OFD Sender: No OFD packet to send [10:34:20]*** Cut start [10:34:20]*** Purtial cut [10:34:20]*** CUTSNS_PIN = 0 [10:34:21]*** Stage 1: CUTSNS_PIN = 1 [10:34:22]Read from MH i2c: 01 [10:34:22]MH_I2C_Read... [10:34:22]*** Stop cut motor [10:34:22]*** Cut end [10:34:22]Read from MH i2c: 01 07 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: 01 07 00 83 4B 00 00 00 00 00 FF 0F E3 [10:34:22]process_action close_receipt done [10:34:22]requested_data is exist [10:34:22]produce_requested_data [10:34:22]requested_item fm.sn is exist - process it [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 11 00 00 [10:34:22]Write to MH i2c: E2 08 00 84 4B 80 11 00 00 00 00 00 00 49 [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:22]Read from MH i2c: E2 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 [10:34:22]MH_I2C_Read... [10:34:22]Read from MH i2c: E2 17 00 84 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 94 [10:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:34:22]wFMCommunicate OK [10:34:22]requested_item fd.num is exist - process it [10:34:22]SAM_PROTO_GetFieldsCounters [10:34:22]wFMCommunicate request_size=4 [10:34:22]MH_SAM_APDU [10:34:22]CAPDU: 80 13 00 00 [10:34:22]Write to MH i2c: E2 08 00 85 4B 80 13 00 00 00 00 00 00 4C [10:34:22]Write i2c OK [10:34:22]MH_I2C_Read... [10:34:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:23]Read from MH i2c: E2 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 62 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 62 00 85 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 75 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:34:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 75 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:23]wFMCommunicate OK [10:34:23]SAM_PROTO_GetFieldsCounters done [10:34:23]requested_item shift.num is exist - process it [10:34:23]requested_item shift.opened is exist - process it [10:34:23]req_shift_opened [10:34:23]FM_GetShiftState [10:34:23]SAM_PROTO_GetShiftState [10:34:23]wFMCommunicate request_size=4 [10:34:23]MH_SAM_APDU [10:34:23]CAPDU: 80 13 01 00 [10:34:23]Write to MH i2c: E2 08 00 86 4B 80 13 01 00 00 00 00 00 4E [10:34:23]Write i2c OK [10:34:23]MH_I2C_Read... [10:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:23]Read from MH i2c: E2 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 0E 00 [10:34:23]MH_I2C_Read... [10:34:23]Read from MH i2c: E2 0E 00 86 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6B [10:34:23]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:34:23]wFMCommunicate OK [10:34:23]SAM_PROTO_GetShiftState done [10:34:23]FM_GetShiftState done [10:34:23]req_shift_opened done [10:34:23]requested_item shift.open_date is exist - process it [10:34:23]req_shift_open_date [10:34:23]req_shift_open_date done [10:34:23]produce_requested_data done [10:34:23]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49781,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:34:23]process_action_free close_receipt [10:34:23]json_value_free [10:34:23]json_value_free done [10:34:23]process_json_proto returns [10:34:23]Send response to host [10:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49781,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:34:23]free response buf [10:34:23]execute_script done [10:34:23]execute_script returns [10:34:23]free content buf [10:34:23]Sock 7.Close socket [10:34:23]Sock 7.Thread stoped [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:01]accept exits with 9 [10:36:01]New connection [10:36:01]New thread 3066944868 created [10:36:01]Thread 3066801508 joined [10:36:01]Waiting for new connection... [10:36:01] Sock 9.Parse request [10:36:01]Sock 9.Check first char [10:36:01]Sock 9.First char is OK [10:36:01]request: POST /json_proto HTTP/1.0 [10:36:01]Method: POST [10:36:01]URL: /json_proto [10:36:01]Method is POST - this is cgi request [10:36:01]url: /json_proto [10:36:01]query_string will be loaded in cgi processing [10:36:01]execute_cgi json_proto POST (null) [10:36:01]execute_cgi path=json_proto method=POST [10:36:01]POST find Content-Length [10:36:01]Host: 172.17.46.196:8080 [10:36:01]Content-Length: 1008 [10:36:01]Content-Type: application/json [10:36:01] [10:36:01]POST finish read [10:36:01]Found Content-Length = 1008 [10:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189961", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:01]execute_script... [10:36:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189961", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:01]POST & json_proto [10:36:01]process_json_proto [10:36:01]json parsed OK: [10:36:01]protocol is kg_v1.0 [10:36:01]action value=close_receipt [10:36:01]process_action close_receipt [10:36:01]cmd_close_receipt [10:36:01]MH_GetDate [10:36:01]Write to MH i2c: F0 00 00 87 4B C1 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 09 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: F0 09 00 87 4B 00 9A CE C1 66 07 E8 5D 66 0B [10:36:01]GetLastDocTimeStamp 1723977265 [10:36:01]current date 1723977370 [10:36:01]FM_GetShiftState [10:36:01]SAM_PROTO_GetShiftState [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 13 01 00 [10:36:01]Write to MH i2c: E2 08 00 88 4B 80 13 01 00 00 00 00 00 50 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0E 00 88 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6D [10:36:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_GetShiftState done [10:36:01]FM_GetShiftState done [10:36:01]opened in 1723939759 [10:36:01]opened+sec_in_day 1724026159 [10:36:01]quantity*price = 7000 [10:36:01]sum+1 = 7001 [10:36:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.23 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 48 18.08.2024 10:36 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49782 ФПД: 37359601510153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49782&fm=37359601510153&tin=02508201610067®Number=0000000000092546&sum=20000 0 [10:36:02]StoreToDocumentArchive [10:36:02]shift 466 fd 49782 [10:36:02]save to /storage/0466/doc_00049782 [10:36:02]save last doc name /storage/0466/doc_00049782 to /storage/kkm_last_doc_name [10:36:02]save OK [10:36:02]Clear old archive folders... [10:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=424 [10:36:02]tlvbuf is 0188DE80 [10:36:02]SAM_PROTO_ClearQueue [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 09 00 00 [10:36:02]Write to MH i2c: E2 08 00 95 4B 80 09 00 00 00 00 00 00 52 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 03 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 03 00 95 4B 00 90 00 54 [10:36:02]RAPDU: 90 00 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_ClearQueue done [10:36:02]KKMCreateOFDPacket [10:36:02]OFDProtocolAddRootSTLVToBuf [10:36:02]FM_MakeSignedData [10:36:02]FM_MakeSignedData [10:36:02]SAM_PROTO_SignData [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 0D 01 02 [10:36:02]Write to MH i2c: E2 08 00 96 4B 80 0D 01 02 00 00 00 00 5A [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 96 4B 00 90 00 55 [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=255 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 [10:36:03]Write to MH i2c: E2 02 01 97 4B 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 00 00 FC [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 97 4B 00 90 00 56 [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=183 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 02 02 B2 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 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C2 00 00 35 04 06 00 21 FA 75 C6 E7 09 [10:36:03]Write to MH i2c: E2 BA 00 98 4B 80 0D 02 02 B2 00 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 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C2 00 00 35 04 06 00 21 FA 75 C6 E7 09 00 00 AB [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 03 00 98 4B 00 90 00 57 [10:36:03]RAPDU: 90 00 [10:36:03]wFMCommunicate OK [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 0D 03 02 [10:36:03]Write to MH i2c: E2 08 00 99 4B 80 0D 03 02 00 00 00 00 5F [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0B 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0B 00 99 4B 00 8B AE 9B E4 4B 34 3F 6E 90 00 44 [10:36:03]RAPDU: 8B AE 9B E4 4B 34 3F 6E 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_SignData done [10:36:03]FM_MakeSignedData done [10:36:03]CreateOFDProtocolMessage [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 11 00 00 [10:36:03]Write to MH i2c: E2 08 00 9A 4B 80 11 00 00 00 00 00 00 5F [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 9A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [10:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:36:03]wFMCommunicate OK [10:36:03]CreateOFDProtocolMessage done [10:36:03]OFDSenderStorePacket 49782 [10:36:03]StoreOFDPacket docnum=49782 [10:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BC 01 00 00 F5 AB B4 01 23 41 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C2 00 00 35 04 06 00 21 FA 75 C6 E7 09 8B AE 9B E4 4B 34 3F 6E [10:36:03]CheckFolder [10:36:03]dirname=/storage/ofd_packets [10:36:03]CheckFolder done [10:36:03]ProducePacketName [10:36:03]name=ofd_packets/00049782 [10:36:03]NVStorageSaveData ofd_packets/00049782 [10:36:03]File name is /storage/ofd_packets/00049782 [10:36:03]Write 474 bytes [10:36:03]NVStorageSaveData done [10:36:03]OFDSenderStorePacket done [10:36:03]KKMCreateOFDPacket done [10:36:03]NVStorageSaveData kkm_last_timestamp [10:36:03]File name is /storage/kkm_last_timestamp [10:36:03]Write 4 bytes [10:36:03]NVStorageSaveData done [10:36:03]ExternCall_PrintAddStr [10:36:03]wPrintStart [10:36:03]Write to MH i2c: 01 00 00 9B 4B E6 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 [10:36:03]MH_I2C_Read... [10:36:03]OFD Sender: Processing packet 49782 [packets to send 21, broken 20] [10:36:03]ProducePacketName [10:36:03]name=ofd_packets/00049782 [10:36:03]OFD Sender: To server: pG, [10:36:03]CommunicateWithHost lk.salyk.kg:30040 [10:36:03]ConnectInit lk.salyk.kg [10:36:03]Read from MH i2c: 01 07 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 07 00 9B 4B 00 00 00 00 00 FF 0F FB [10:36:03]RasterBufferAndPrint [10:36:03]line Счет N : (3)189961 [10:36:03]line ИНН: 02508201610067 [10:36:03]line Контрольно-Кассовый Чек [10:36:03]line ПРОДАЖА [10:36:03]line Товар: 4870202521186 [10:36:03]line Чай холодный MAXI черный со вкусом клубн [10:36:03]line 1.000 * 70.00 [10:36:03]line = 70.00 [10:36:03]line НДС 12% НСП 1% [10:36:03]line > о реализуемом товаре [10:36:03]line Товар: 2000036220012 [10:36:03]line Кофе Капучино XL(GABB TRADE) [10:36:03]line 1.000 * 130.00 [10:36:03]line = 130.00 [10:36:03]line НДС 12% НСП 1% [10:36:03]line > о реализуемом товаре [10:36:03]line ИТОГО: 200.00 [10:36:03]line НСП 1% : 1.77 [10:36:03]line НДС 12% : 21.23 [10:36:03]line Наличными: 200.00 [10:36:03]line Безнал.: 0.00 [10:36:03]line Место: АЗС № 95 "Партнер Нефть" [10:36:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:36:03]line СНО: Общий режим [10:36:03]line Чек 48 18.08.2024 10:36 [10:36:03]line Смена: 466 ФФД: 1.0 [10:36:03]line ЗНМ: 0300000078 [10:36:03]line РНМ: 0000000000092546 [10:36:03]line Версия ККМ: 001 [10:36:03]line ФМ: 0000000000871800 [10:36:03]line ФД: 49782 [10:36:03]line ФПД: 37359601510153 [10:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49782&fm=37359601510153&tin=02508201610067®Number=0000000000092546&sum=20000 [10:36:03]line 0 [10:36:03]written 0, free lines is 4095 [10:36:04]Connected sock=11 [10:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BC 01 00 00 F5 AB B4 01 23 41 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 9A CE C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C2 00 00 35 04 06 00 21 FA 75 C6 E7 09 8B AE 9B E4 4B 34 3F 6E [10:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 37 49 47 00 52 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C2 00 00 F4 03 04 00 D3 79 C1 66 B6 04 01 00 00 1B 75 E2 3D 30 7D 49 55 [10:36:04]CommunicateWithHost err = 0 [10:36:04]CheckOFDResponse [10:36:04]1017 (14) - 77093643461234 [10:36:04]1041 (16) - 0000000000871800 [10:36:04]1040 (4) - 49782 [10:36:04]1012 (4) - 18.08.2024 04:34 [10:36:04]1206 (1) - 0 [10:36:04]OFD Sender: Remove packet 49782 [10:36:04]ProducePacketName [10:36:04]name=ofd_packets/00049782 [10:36:04]NVStorageDeleteData [10:36:04]Write to MH i2c: 01 00 00 CB 4B 16 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 CB 4B 00 00 00 00 00 89 0C B2 [10:36:04]RasterBufferAndPrint [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]written 0, free lines is 3216 [10:36:04]MH_Cut [10:36:04]Write to MH i2c: D1 01 00 D2 4B 01 EF [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 D2 4B 00 EE [10:36:04]Write to MH i2c: 01 00 00 D3 4B 1E [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]OFD Sender: No OFD packet to send [10:36:05]*** Cut start [10:36:05]*** Purtial cut [10:36:05]*** Stage 1: CUTSNS_PIN = 1 [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]*** Stop cut motor [10:36:05]*** Cut end [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 D3 4B 00 00 00 00 00 FF 0F 33 [10:36:05]process_action close_receipt done [10:36:05]requested_data is exist [10:36:05]produce_requested_data [10:36:05]requested_item fm.sn is exist - process it [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 11 00 00 [10:36:05]Write to MH i2c: E2 08 00 D4 4B 80 11 00 00 00 00 00 00 99 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 D4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E4 [10:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:36:05]wFMCommunicate OK [10:36:05]requested_item fd.num is exist - process it [10:36:05]SAM_PROTO_GetFieldsCounters [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 00 00 [10:36:05]Write to MH i2c: E2 08 00 D5 4B 80 13 00 00 00 00 00 00 9C [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 D5 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 76 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 76 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetFieldsCounters done [10:36:05]requested_item shift.num is exist - process it [10:36:05]requested_item shift.opened is exist - process it [10:36:05]req_shift_opened [10:36:05]FM_GetShiftState [10:36:05]SAM_PROTO_GetShiftState [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 01 00 [10:36:05]Write to MH i2c: E2 08 00 D6 4B 80 13 01 00 00 00 00 00 9E [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 D6 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BB [10:36:05]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetShiftState done [10:36:05]FM_GetShiftState done [10:36:05]req_shift_opened done [10:36:05]requested_item shift.open_date is exist - process it [10:36:05]req_shift_open_date [10:36:05]req_shift_open_date done [10:36:05]produce_requested_data done [10:36:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49782,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [10:36:05]process_action_free close_receipt [10:36:05]json_value_free [10:36:05]json_value_free done [10:36:05]process_json_proto returns [10:36:05]Send response to host [10:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49782,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [10:36:05]free response buf [10:36:05]execute_script done [10:36:05]execute_script returns [10:36:05]free content buf [10:36:05]Sock 9.Close socket [10:36:05]Sock 9.Thread stoped [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:20]int [10:37:20]Write to MH i2c: 01 00 00 D7 4B 22 [10:37:20]*** FLAG_PRN_KEY set [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 D7 4B 00 08 00 00 00 FF 0F 3F [10:37:20]state=0 [10:37:20]Key pressed [10:37:20]Feed [10:37:20]Write to MH i2c: D8 00 00 D8 4B FA [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: D8 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: D8 01 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: D8 01 00 D8 4B 00 FB [10:37:20]int [10:37:20]Write to MH i2c: 01 00 00 D9 4B 24 [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 D9 4B 00 48 00 00 00 3C 00 AF [10:37:20]state=2 [10:37:20]Key pressed [10:37:20]int [10:37:20]Write to MH i2c: 01 00 00 DA 4B 25 [10:37:20]*** FLAG_PRN_KEY reset [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 DA 4B 00 00 00 00 00 F8 0F 33 [10:37:20]state=2 [10:37:20]Stop feed [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:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:44]accept exits with 7 [11:02:44]New connection [11:02:44]New thread 3066801508 created [11:02:44]Thread 3066944868 joined [11:02:44]Waiting for new connection... [11:02:44] Sock 7.Parse request [11:02:44]Sock 7.Check first char [11:02:44]Sock 7.First char is OK [11:02:44]request: POST /json_proto HTTP/1.0 [11:02:44]Method: POST [11:02:44]URL: /json_proto [11:02:44]Method is POST - this is cgi request [11:02:44]url: /json_proto [11:02:44]query_string will be loaded in cgi processing [11:02:44]execute_cgi json_proto POST (null) [11:02:44]execute_cgi path=json_proto method=POST [11:02:44]POST find Content-Length [11:02:44]Host: 172.17.46.196:8080 [11:02:44]Content-Length: 621 [11:02:44]Content-Type: application/json [11:02:44] [11:02:44]POST finish read [11:02:44]Found Content-Length = 621 [11:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189962", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]execute_script... [11:02: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 : (3)189962", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]POST & json_proto [11:02:44]process_json_proto [11:02:44]json parsed OK: [11:02:44]protocol is kg_v1.0 [11:02:44]action value=close_receipt [11:02:44]process_action close_receipt [11:02:44]cmd_close_receipt [11:02:44]MH_GetDate [11:02:44]Write to MH i2c: F0 00 00 DB 4B 15 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 DB 4B 00 DD D4 C1 66 07 E8 5D 66 A8 [11:02:44]GetLastDocTimeStamp 1723977370 [11:02:44]current date 1723978973 [11:02:44]FM_GetShiftState [11:02:44]SAM_PROTO_GetShiftState [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 13 01 00 [11:02:44]Write to MH i2c: E2 08 00 DC 4B 80 13 01 00 00 00 00 00 A4 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 DC 4B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 C1 [11:02:44]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_GetShiftState done [11:02:44]FM_GetShiftState done [11:02:44]opened in 1723939759 [11:02:44]opened+sec_in_day 1724026159 [11:02:44]quantity*price = 14000 [11:02:44]sum+1 = 14001 [11:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 49 18.08.2024 11:02 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49783 ФПД: 113024847002891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110253&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49783&fm=113024847002891&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:02:45]StoreToDocumentArchive [11:02:45]shift 466 fd 49783 [11:02:45]save to /storage/0466/doc_00049783 [11:02:45]save last doc name /storage/0466/doc_00049783 to /storage/kkm_last_doc_name [11:02:45]save OK [11:02:45]Clear old archive folders... [11:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:02:45]tlvbuf is 0184DAA0 [11:02:45]SAM_PROTO_ClearQueue [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 09 00 00 [11:02:45]Write to MH i2c: E2 08 00 E9 4B 80 09 00 00 00 00 00 00 A6 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 E9 4B 00 90 00 A8 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_ClearQueue done [11:02:45]KKMCreateOFDPacket [11:02:45]OFDProtocolAddRootSTLVToBuf [11:02:45]FM_MakeSignedData [11:02:45]FM_MakeSignedData [11:02:45]SAM_PROTO_SignData [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 01 02 [11:02:45]Write to MH i2c: E2 08 00 EA 4B 80 0D 01 02 00 00 00 00 AE [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 EA 4B 00 90 00 A9 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=255 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DD D4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [11:02:45]Write to MH i2c: E2 02 01 EB 4B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DD D4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 80 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 EB 4B 00 90 00 AA [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=32 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C2 00 00 35 04 06 00 66 CB A5 DB 3D 0B [11:02:46]Write to MH i2c: E2 23 00 EC 4B 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C2 00 00 35 04 06 00 66 CB A5 DB 3D 0B 00 00 38 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 EC 4B 00 90 00 AB [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 03 02 [11:02:46]Write to MH i2c: E2 08 00 ED 4B 80 0D 03 02 00 00 00 00 B3 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 ED 4B 00 1E 0D 1B AF B2 3F BE B4 90 00 0C [11:02:46]RAPDU: 1E 0D 1B AF B2 3F BE B4 90 00 [11:02:46]wFMCommunicate OK [11:02:46]SAM_PROTO_SignData done [11:02:46]FM_MakeSignedData done [11:02:46]CreateOFDProtocolMessage [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 11 00 00 [11:02:46]Write to MH i2c: E2 08 00 EE 4B 80 11 00 00 00 00 00 00 B3 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 EE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [11:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:46]wFMCommunicate OK [11:02:46]CreateOFDProtocolMessage done [11:02:46]OFDSenderStorePacket 49783 [11:02:46]StoreOFDPacket docnum=49783 [11:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 52 FA 1D 01 E5 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DD D4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C2 00 00 35 04 06 00 66 CB A5 DB 3D 0B 1E 0D 1B AF B2 3F BE B4 [11:02:46]CheckFolder [11:02:46]dirname=/storage/ofd_packets [11:02:46]CheckFolder done [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00049783 [11:02:46]NVStorageSaveData ofd_packets/00049783 [11:02:46]File name is /storage/ofd_packets/00049783 [11:02:46]Write 323 bytes [11:02:46]NVStorageSaveData done [11:02:46]OFDSenderStorePacket done [11:02:46]KKMCreateOFDPacket done [11:02:46]NVStorageSaveData kkm_last_timestamp [11:02:46]File name is /storage/kkm_last_timestamp [11:02:46]Write 4 bytes [11:02:46]NVStorageSaveData done [11:02:46]ExternCall_PrintAddStr [11:02:46]wPrintStart [11:02:46]Write to MH i2c: 01 00 00 EF 4B 3A [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 EF 4B 00 00 00 00 00 FF 0F 4F [11:02:46]RasterBufferAndPrint [11:02:46]line Счет N : (3)189962 [11:02:46]line ИНН: 02508201610067 [11:02:46]line Контрольно-Кассовый Чек [11:02:46]line ПРОДАЖА [11:02:46]line Товар: 48743570 [11:02:46]line Сигареты Winston XStyle Blue [11:02:46]line 1.000 * 140.00 [11:02:46]line = 140.00 [11:02:46]line НДС 12% НСП 1% [11:02:46]line > о реализуемом товаре [11:02:46]line ИТОГО: 140.00 [11:02:46]line НСП 1% : 1.24 [11:02:46]line НДС 12% : 14.87 [11:02:46]line Наличными: 140.00 [11:02:46]line Безнал.: 0.00 [11:02:46]line Место: АЗС № 95 "Партнер Нефть" [11:02:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:02:46]line СНО: Общий режим [11:02:46]line Чек 49 18.08.2024 11:02 [11:02:46]line Смена: 466 ФФД: 1.0 [11:02:46]line ЗНМ: 0300000078 [11:02:46]line РНМ: 0000000000092546 [11:02:46]line Версия ККМ: 001 [11:02:46]line ФМ: 0000000000871800 [11:02:46]line ФД: 49783 [11:02:46]line ФПД: 113024847002891 [11:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110253&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49783&fm=113024847002891&tin=02508201610067®Number=0000000000092546&sum=14000 [11:02:46]OFD Sender: Processing packet 49783 [packets to send 21, broken 20] [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00049783 [11:02:46]OFD Sender: To server: pG, [11:02:46]CommunicateWithHost lk.salyk.kg:30040 [11:02:46]ConnectInit lk.salyk.kg [11:02:46]line 0 [11:02:46]written 0, free lines is 4095 [11:02:46]Connected sock=11 [11:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 52 FA 1D 01 E5 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DD D4 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C2 00 00 35 04 06 00 66 CB A5 DB 3D 0B 1E 0D 1B AF B2 3F BE B4 [11:02:47]Write to MH i2c: 01 00 00 17 4C 63 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 17 4C 00 00 00 00 00 DF 0C 55 [11:02:47]RasterBufferAndPrint [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]line [11:02:47]written 0, free lines is 3301 [11:02:47]MH_Cut [11:02:47]Write to MH i2c: D1 01 00 1E 4C 01 3C [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: D1 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: D1 01 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: D1 01 00 1E 4C 00 3B [11:02:47]Write to MH i2c: 01 00 00 1F 4C 6B [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 25 C4 47 00 6F 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 38 30 30 10 04 04 00 77 C2 00 00 F4 03 04 00 16 80 C1 66 B6 04 01 00 00 2A 0F 77 FD 5E 11 36 AB [11:02:47]CommunicateWithHost err = 0 [11:02:47]CheckOFDResponse [11:02:47]1017 (14) - 77093643461234 [11:02:47]1041 (16) - 0000000000871800 [11:02:47]1040 (4) - 49783 [11:02:47]1012 (4) - 18.08.2024 05:01 [11:02:47]1206 (1) - 0 [11:02:47]OFD Sender: Remove packet 49783 [11:02:47]ProducePacketName [11:02:47]name=ofd_packets/00049783 [11:02:47]NVStorageDeleteData [11:02:47]OFD Sender: No OFD packet to send [11:02:47]*** Cut start [11:02:47]*** Purtial cut [11:02:47]*** CUTSNS_PIN = 0 [11:02:48]*** Stage 1: CUTSNS_PIN = 1 [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]*** Stop cut motor [11:02:49]*** Cut end [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 1F 4C 00 00 00 00 00 FF 0F 80 [11:02:49]process_action close_receipt done [11:02:49]requested_data is exist [11:02:49]produce_requested_data [11:02:49]requested_item fm.sn is exist - process it [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 11 00 00 [11:02:49]Write to MH i2c: E2 08 00 20 4C 80 11 00 00 00 00 00 00 E6 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 20 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [11:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:49]wFMCommunicate OK [11:02:49]requested_item fd.num is exist - process it [11:02:49]SAM_PROTO_GetFieldsCounters [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 13 00 00 [11:02:49]Write to MH i2c: E2 08 00 21 4C 80 13 00 00 00 00 00 00 E9 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 62 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 62 00 21 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 77 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [11:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 77 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:50]wFMCommunicate OK [11:02:50]SAM_PROTO_GetFieldsCounters done [11:02:50]requested_item shift.num is exist - process it [11:02:50]requested_item shift.opened is exist - process it [11:02:50]req_shift_opened [11:02:50]FM_GetShiftState [11:02:50]SAM_PROTO_GetShiftState [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 13 01 00 [11:02:50]Write to MH i2c: E2 08 00 22 4C 80 13 01 00 00 00 00 00 EB [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 0E 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 0E 00 22 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 08 [11:02:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:02:50]wFMCommunicate OK [11:02:50]SAM_PROTO_GetShiftState done [11:02:50]FM_GetShiftState done [11:02:50]req_shift_opened done [11:02:50]requested_item shift.open_date is exist - process it [11:02:50]req_shift_open_date [11:02:50]req_shift_open_date done [11:02:50]produce_requested_data done [11:02:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49783,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:02:50]process_action_free close_receipt [11:02:50]json_value_free [11:02:50]json_value_free done [11:02:50]process_json_proto returns [11:02:50]Send response to host [11:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49783,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:02:50]free response buf [11:02:50]execute_script done [11:02:50]execute_script returns [11:02:50]free content buf [11:02:50]Sock 7.Close socket [11:02:50]Sock 7.Thread stoped [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:44]accept exits with 9 [11:05:44]New connection [11:05:44]New thread 3066944868 created [11:05:44]Thread 3066801508 joined [11:05:44]Waiting for new connection... [11:05:44] Sock 9.Parse request [11:05:44]Sock 9.Check first char [11:05:44]Sock 9.First char is OK [11:05:44]request: POST /json_proto HTTP/1.0 [11:05:44]Method: POST [11:05:44]URL: /json_proto [11:05:44]Method is POST - this is cgi request [11:05:44]url: /json_proto [11:05:44]query_string will be loaded in cgi processing [11:05:44]execute_cgi json_proto POST (null) [11:05:44]execute_cgi path=json_proto method=POST [11:05:44]POST find Content-Length [11:05:44]Host: 172.17.46.196:8080 [11:05:44]Content-Length: 920 [11:05:44]Content-Type: application/json [11:05:44] [11:05:44]POST finish read [11:05:44]Found Content-Length = 920 [11:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189963", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:44]execute_script... [11:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189963", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:44]POST & json_proto [11:05:44]process_json_proto [11:05:44]json parsed OK: [11:05:44]protocol is kg_v1.0 [11:05:44]action value=close_receipt [11:05:44]process_action close_receipt [11:05:44]cmd_close_receipt [11:05:44]MH_GetDate [11:05:44]Write to MH i2c: F0 00 00 23 4C 5E [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: F0 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: F0 09 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: F0 09 00 23 4C 00 91 D5 C1 66 07 E8 5D 66 A6 [11:05:44]GetLastDocTimeStamp 1723978973 [11:05:44]current date 1723979153 [11:05:44]FM_GetShiftState [11:05:44]SAM_PROTO_GetShiftState [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 13 01 00 [11:05:44]Write to MH i2c: E2 08 00 24 4C 80 13 01 00 00 00 00 00 ED [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0E 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0E 00 24 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 0A [11:05:44]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:05:44]wFMCommunicate OK [11:05:44]SAM_PROTO_GetShiftState done [11:05:44]FM_GetShiftState done [11:05:44]opened in 1723939759 [11:05:44]opened+sec_in_day 1724026159 [11:05:44]quantity*price = 13500 [11:05:44]sum+1 = 13501 [11:05:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 50 18.08.2024 11:05 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49784 ФПД: 117013576482627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110553&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49784&fm=117013576482627&tin=02508201610067®Number=0000000000092546&sum=22500 0 [11:05:45]StoreToDocumentArchive [11:05:45]shift 466 fd 49784 [11:05:45]save to /storage/0466/doc_00049784 [11:05:45]save last doc name /storage/0466/doc_00049784 to /storage/kkm_last_doc_name [11:05:45]save OK [11:05:45]Clear old archive folders... [11:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=404 [11:05:45]tlvbuf is 01821470 [11:05:45]SAM_PROTO_ClearQueue [11:05:45]wFMCommunicate request_size=4 [11:05:45]MH_SAM_APDU [11:05:45]CAPDU: 80 09 00 00 [11:05:45]Write to MH i2c: E2 08 00 31 4C 80 09 00 00 00 00 00 00 EF [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:45]Read from MH i2c: E2 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: E2 03 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: E2 03 00 31 4C 00 90 00 F1 [11:05:45]RAPDU: 90 00 [11:05:45]wFMCommunicate OK [11:05:45]SAM_PROTO_ClearQueue done [11:05:45]KKMCreateOFDPacket [11:05:45]OFDProtocolAddRootSTLVToBuf [11:05:45]FM_MakeSignedData [11:05:45]FM_MakeSignedData [11:05:45]SAM_PROTO_SignData [11:05:45]wFMCommunicate request_size=4 [11:05:45]MH_SAM_APDU [11:05:45]CAPDU: 80 0D 01 02 [11:05:45]Write to MH i2c: E2 08 00 32 4C 80 0D 01 02 00 00 00 00 F7 [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 32 4C 00 90 00 F2 [11:05:46]RAPDU: 90 00 [11:05:46]wFMCommunicate OK [11:05:46]wFMCommunicate request_size=255 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 [11:05:46]Write to MH i2c: E2 02 01 33 4C 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 54 [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 33 4C 00 90 00 F3 [11:05:46]RAPDU: 90 00 [11:05:46]wFMCommunicate OK [11:05:46]wFMCommunicate request_size=163 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 91 D5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C2 00 00 35 04 06 00 6A 6C 58 A8 FF 43 [11:05:46]Write to MH i2c: E2 A6 00 34 4C 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 91 D5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C2 00 00 35 04 06 00 6A 6C 58 A8 FF 43 00 00 B1 [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 03 00 34 4C 00 90 00 F4 [11:05:46]RAPDU: 90 00 [11:05:46]wFMCommunicate OK [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 0D 03 02 [11:05:46]Write to MH i2c: E2 08 00 35 4C 80 0D 03 02 00 00 00 00 FC [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 0B 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 0B 00 35 4C 00 B4 D6 A4 CF 61 EB 60 37 90 00 DD [11:05:46]RAPDU: B4 D6 A4 CF 61 EB 60 37 90 00 [11:05:46]wFMCommunicate OK [11:05:46]SAM_PROTO_SignData done [11:05:46]FM_MakeSignedData done [11:05:46]CreateOFDProtocolMessage [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 11 00 00 [11:05:46]Write to MH i2c: E2 08 00 36 4C 80 11 00 00 00 00 00 00 FC [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 17 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 17 00 36 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [11:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:05:46]wFMCommunicate OK [11:05:46]CreateOFDProtocolMessage done [11:05:46]OFDSenderStorePacket 49784 [11:05:46]StoreOFDPacket docnum=49784 [11:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 91 C6 A0 01 E7 BD 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 91 D5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C2 00 00 35 04 06 00 6A 6C 58 A8 FF 43 B4 D6 A4 CF 61 EB 60 37 [11:05:46]CheckFolder [11:05:46]dirname=/storage/ofd_packets [11:05:46]CheckFolder done [11:05:46]ProducePacketName [11:05:46]name=ofd_packets/00049784 [11:05:46]NVStorageSaveData ofd_packets/00049784 [11:05:46]File name is /storage/ofd_packets/00049784 [11:05:46]Write 454 bytes [11:05:46]NVStorageSaveData done [11:05:46]OFDSenderStorePacket done [11:05:46]KKMCreateOFDPacket done [11:05:46]NVStorageSaveData kkm_last_timestamp [11:05:46]File name is /storage/kkm_last_timestamp [11:05:46]Write 4 bytes [11:05:46]NVStorageSaveData done [11:05:46]ExternCall_PrintAddStr [11:05:46]wPrintStart [11:05:46]Write to MH i2c: 01 00 00 37 4C 83 [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: 01 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: 01 07 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: 01 07 00 37 4C 00 00 00 00 00 FF 0F 98 [11:05:46]RasterBufferAndPrint [11:05:46]line Счет N : (3)189963 [11:05:46]line ИНН: 02508201610067 [11:05:46]line Контрольно-Кассовый Чек [11:05:46]line ПРОДАЖА [11:05:46]line Товар: 48741231 [11:05:46]line Сигареты Winston Super Slims Silver [11:05:46]line 1.000 * 135.00 [11:05:46]line = 135.00 [11:05:46]line НДС 12% НСП 1% [11:05:46]line > о реализуемом товаре [11:05:46]line Товар: 4650243871828 [11:05:46]line Gorilla эн нап манго-кокос 0,45 ж/б [11:05:46]line 1.000 * 90.00 [11:05:46]line = 90.00 [11:05:46]line НДС 12% НСП 1% [11:05:46]line > о реализуемом товаре [11:05:46]line ИТОГО: 225.00 [11:05:46]line НСП 1% : 1.99 [11:05:46]line НДС 12% : 23.90 [11:05:46]line Наличными: 225.00 [11:05:46]line Безнал.: 0.00 [11:05:46]line Место: АЗС № 95 "Партнер Нефть" [11:05:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:05:46]line СНО: Общий режим [11:05:46]line Чек 50 18.08.2024 11:05 [11:05:46]line Смена: 466 ФФД: 1.0 [11:05:46]line ЗНМ: 0300000078 [11:05:46]line РНМ: 0000000000092546 [11:05:46]line Версия ККМ: 001 [11:05:46]line ФМ: 0000000000871800 [11:05:46]line ФД: 49784 [11:05:46]line ФПД: 117013576482627 [11:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110553&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49784&fm=117013576482627&tin=02508201610067®Number=0000000000092546&sum=22500 [11:05:46]line 0 [11:05:46]OFD Sender: Processing packet 49784 [packets to send 21, broken 20] [11:05:46]ProducePacketName [11:05:46]name=ofd_packets/00049784 [11:05:46]OFD Sender: To server: pG, [11:05:46]CommunicateWithHost lk.salyk.kg:30040 [11:05:46]ConnectInit lk.salyk.kg [11:05:46]written 0, free lines is 4095 [11:05:47]Connected sock=10 [11:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 91 C6 A0 01 E7 BD 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 91 D5 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C2 00 00 35 04 06 00 6A 6C 58 A8 FF 43 B4 D6 A4 CF 61 EB 60 37 [11:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AA 56 47 00 96 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 38 30 30 10 04 04 00 78 C2 00 00 F4 03 04 00 CA 80 C1 66 B6 04 01 00 00 02 37 B8 8B A7 A5 7C CE [11:05:47]CommunicateWithHost err = 0 [11:05:47]CheckOFDResponse [11:05:47]1017 (14) - 77093643461234 [11:05:47]1041 (16) - 0000000000871800 [11:05:47]1040 (4) - 49784 [11:05:47]1012 (4) - 18.08.2024 05:04 [11:05:47]1206 (1) - 0 [11:05:47]OFD Sender: Remove packet 49784 [11:05:47]ProducePacketName [11:05:47]name=ofd_packets/00049784 [11:05:47]NVStorageDeleteData [11:05:47]Write to MH i2c: 01 00 00 67 4C B3 [11:05:47]Write i2c OK [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: 01 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: 01 07 00 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: 01 07 00 67 4C 00 00 00 00 00 68 0C 2E [11:05:47]RasterBufferAndPrint [11:05:47]line [11:05:47]line [11:05:47]line [11:05:47]line [11:05:47]line [11:05:47]written 0, free lines is 3182 [11:05:47]MH_Cut [11:05:47]Write to MH i2c: D1 01 00 6E 4C 01 8C [11:05:47]Write i2c OK [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: D1 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: D1 01 00 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: D1 01 00 6E 4C 00 8B [11:05:47]Write to MH i2c: 01 00 00 6F 4C BB [11:05:47]Write i2c OK [11:05:47]MH_I2C_Read... [11:05:47]OFD Sender: No OFD packet to send [11:05:48]*** Cut start [11:05:48]*** Purtial cut [11:05:48]*** Stage 1: CUTSNS_PIN = 1 [11:05:48]Read from MH i2c: 01 [11:05:48]MH_I2C_Read... [11:05:48]*** Stop cut motor [11:05:48]*** Cut end [11:05:48]Read from MH i2c: 01 07 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: 01 07 00 6F 4C 00 00 00 00 00 FF 0F D0 [11:05:48]process_action close_receipt done [11:05:48]requested_data is exist [11:05:48]produce_requested_data [11:05:48]requested_item fm.sn is exist - process it [11:05:48]wFMCommunicate request_size=4 [11:05:48]MH_SAM_APDU [11:05:48]CAPDU: 80 11 00 00 [11:05:48]Write to MH i2c: E2 08 00 70 4C 80 11 00 00 00 00 00 00 36 [11:05:48]Write i2c OK [11:05:48]MH_I2C_Read... [11:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:48]Read from MH i2c: E2 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 17 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 17 00 70 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [11:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:05:48]wFMCommunicate OK [11:05:48]requested_item fd.num is exist - process it [11:05:48]SAM_PROTO_GetFieldsCounters [11:05:48]wFMCommunicate request_size=4 [11:05:48]MH_SAM_APDU [11:05:48]CAPDU: 80 13 00 00 [11:05:48]Write to MH i2c: E2 08 00 71 4C 80 13 00 00 00 00 00 00 39 [11:05:48]Write i2c OK [11:05:48]MH_I2C_Read... [11:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:48]Read from MH i2c: E2 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 62 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 62 00 71 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 78 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 78 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:48]wFMCommunicate OK [11:05:48]SAM_PROTO_GetFieldsCounters done [11:05:48]requested_item shift.num is exist - process it [11:05:48]requested_item shift.opened is exist - process it [11:05:48]req_shift_opened [11:05:48]FM_GetShiftState [11:05:48]SAM_PROTO_GetShiftState [11:05:48]wFMCommunicate request_size=4 [11:05:48]MH_SAM_APDU [11:05:48]CAPDU: 80 13 01 00 [11:05:48]Write to MH i2c: E2 08 00 72 4C 80 13 01 00 00 00 00 00 3B [11:05:48]Write i2c OK [11:05:48]MH_I2C_Read... [11:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:48]Read from MH i2c: E2 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 0E 00 [11:05:48]MH_I2C_Read... [11:05:48]Read from MH i2c: E2 0E 00 72 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 58 [11:05:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:05:48]wFMCommunicate OK [11:05:48]SAM_PROTO_GetShiftState done [11:05:48]FM_GetShiftState done [11:05:48]req_shift_opened done [11:05:48]requested_item shift.open_date is exist - process it [11:05:48]req_shift_open_date [11:05:48]req_shift_open_date done [11:05:48]produce_requested_data done [11:05:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49784,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:05:48]process_action_free close_receipt [11:05:48]json_value_free [11:05:48]json_value_free done [11:05:48]process_json_proto returns [11:05:48]Send response to host [11:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49784,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:05:48]free response buf [11:05:48]execute_script done [11:05:48]execute_script returns [11:05:48]free content buf [11:05:48]Sock 9.Close socket [11:05:48]Sock 9.Thread stoped [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]int [11:06:22]Write to MH i2c: 01 00 00 73 4C BF [11:06:22]*** FLAG_PRN_KEY set [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 73 4C 00 08 00 00 00 FF 0F DC [11:06:22]state=0 [11:06:22]Key pressed [11:06:22]Feed [11:06:22]Write to MH i2c: D8 00 00 74 4C 97 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: D8 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: D8 01 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: D8 01 00 74 4C 00 98 [11:06:22]int [11:06:22]Write to MH i2c: 01 00 00 75 4C C1 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 75 4C 00 48 00 00 00 3C 00 4C [11:06:22]state=2 [11:06:22]Key pressed [11:06:22]int [11:06:22]Write to MH i2c: 01 00 00 76 4C C2 [11:06:22]*** FLAG_PRN_KEY reset [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 76 4C 00 00 00 00 00 F8 0F D0 [11:06:22]state=2 [11:06:22]Stop feed [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:12]accept exits with 7 [11:11:12]New connection [11:11:12]New thread 3066801508 created [11:11:12]Thread 3066944868 joined [11:11:12]Waiting for new connection... [11:11:12] Sock 7.Parse request [11:11:12]Sock 7.Check first char [11:11:12]Sock 7.First char is OK [11:11:12]request: POST /json_proto HTTP/1.0 [11:11:12]Method: POST [11:11:12]URL: /json_proto [11:11:12]Method is POST - this is cgi request [11:11:12]url: /json_proto [11:11:12]query_string will be loaded in cgi processing [11:11:12]execute_cgi json_proto POST (null) [11:11:12]execute_cgi path=json_proto method=POST [11:11:12]POST find Content-Length [11:11:12]Host: 172.17.46.196:8080 [11:11:12]Content-Length: 646 [11:11:12]Content-Type: application/json [11:11:12] [11:11:12]POST finish read [11:11:12]Found Content-Length = 646 [11:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189964", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:12]execute_script... [11:11: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 : (3)189964", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:12]POST & json_proto [11:11:12]process_json_proto [11:11:12]json parsed OK: [11:11:12]protocol is kg_v1.0 [11:11:12]action value=close_receipt [11:11:12]process_action close_receipt [11:11:12]cmd_close_receipt [11:11:12]MH_GetDate [11:11:12]Write to MH i2c: F0 00 00 77 4C B2 [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: F0 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: F0 09 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: F0 09 00 77 4C 00 D8 D6 C1 66 07 E8 5D 66 42 [11:11:12]GetLastDocTimeStamp 1723979153 [11:11:12]current date 1723979480 [11:11:12]FM_GetShiftState [11:11:12]SAM_PROTO_GetShiftState [11:11:12]wFMCommunicate request_size=4 [11:11:12]MH_SAM_APDU [11:11:12]CAPDU: 80 13 01 00 [11:11:12]Write to MH i2c: E2 08 00 78 4C 80 13 01 00 00 00 00 00 41 [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:12]Read from MH i2c: E2 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 0E 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 0E 00 78 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 5E [11:11:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:11:12]wFMCommunicate OK [11:11:12]SAM_PROTO_GetShiftState done [11:11:12]FM_GetShiftState done [11:11:12]opened in 1723939759 [11:11:12]opened+sec_in_day 1724026159 [11:11:12]quantity*price = 13000 [11:11:12]sum+1 = 13001 [11:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 51 18.08.2024 11:11 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49785 ФПД: 237751684349876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49785&fm=237751684349876&tin=02508201610067®Number=0000000000092546&sum=13000 0 [11:11:13]StoreToDocumentArchive [11:11:13]shift 466 fd 49785 [11:11:13]save to /storage/0466/doc_00049785 [11:11:13]save last doc name /storage/0466/doc_00049785 to /storage/kkm_last_doc_name [11:11:13]save OK [11:11:13]Clear old archive folders... [11:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:11:13]tlvbuf is 01840BA0 [11:11:13]SAM_PROTO_ClearQueue [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 09 00 00 [11:11:13]Write to MH i2c: E2 08 00 85 4C 80 09 00 00 00 00 00 00 43 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 85 4C 00 90 00 45 [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_ClearQueue done [11:11:13]KKMCreateOFDPacket [11:11:13]OFDProtocolAddRootSTLVToBuf [11:11:13]FM_MakeSignedData [11:11:13]FM_MakeSignedData [11:11:13]SAM_PROTO_SignData [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 01 02 [11:11:13]Write to MH i2c: E2 08 00 86 4C 80 0D 01 02 00 00 00 00 4B [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 86 4C 00 90 00 46 [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]wFMCommunicate request_size=255 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D8 D6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [11:11:13]Write to MH i2c: E2 02 01 87 4C 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D8 D6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 36 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 87 4C 00 90 00 47 [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]wFMCommunicate request_size=41 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C2 00 00 35 04 06 00 D8 3B E0 B0 BF B4 [11:11:13]Write to MH i2c: E2 2C 00 88 4C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C2 00 00 35 04 06 00 D8 3B E0 B0 BF B4 00 00 66 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:14]Read from MH i2c: E2 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 03 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 03 00 88 4C 00 90 00 48 [11:11:14]RAPDU: 90 00 [11:11:14]wFMCommunicate OK [11:11:14]wFMCommunicate request_size=4 [11:11:14]MH_SAM_APDU [11:11:14]CAPDU: 80 0D 03 02 [11:11:14]Write to MH i2c: E2 08 00 89 4C 80 0D 03 02 00 00 00 00 50 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:14]Read from MH i2c: E2 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 0B 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 0B 00 89 4C 00 03 86 42 DA 05 31 17 3E 90 00 81 [11:11:14]RAPDU: 03 86 42 DA 05 31 17 3E 90 00 [11:11:14]wFMCommunicate OK [11:11:14]SAM_PROTO_SignData done [11:11:14]FM_MakeSignedData done [11:11:14]CreateOFDProtocolMessage [11:11:14]wFMCommunicate request_size=4 [11:11:14]MH_SAM_APDU [11:11:14]CAPDU: 80 11 00 00 [11:11:14]Write to MH i2c: E2 08 00 8A 4C 80 11 00 00 00 00 00 00 50 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:14]Read from MH i2c: E2 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 17 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: E2 17 00 8A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [11:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:11:14]wFMCommunicate OK [11:11:14]CreateOFDProtocolMessage done [11:11:14]OFDSenderStorePacket 49785 [11:11:14]StoreOFDPacket docnum=49785 [11:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 F2 86 26 01 B3 A0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D8 D6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C2 00 00 35 04 06 00 D8 3B E0 B0 BF B4 03 86 42 DA 05 31 17 3E [11:11:14]CheckFolder [11:11:14]dirname=/storage/ofd_packets [11:11:14]CheckFolder done [11:11:14]ProducePacketName [11:11:14]name=ofd_packets/00049785 [11:11:14]NVStorageSaveData ofd_packets/00049785 [11:11:14]File name is /storage/ofd_packets/00049785 [11:11:14]Write 332 bytes [11:11:14]NVStorageSaveData done [11:11:14]OFDSenderStorePacket done [11:11:14]KKMCreateOFDPacket done [11:11:14]NVStorageSaveData kkm_last_timestamp [11:11:14]File name is /storage/kkm_last_timestamp [11:11:14]Write 4 bytes [11:11:14]NVStorageSaveData done [11:11:14]ExternCall_PrintAddStr [11:11:14]wPrintStart [11:11:14]Write to MH i2c: 01 00 00 8B 4C D7 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 07 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 07 00 8B 4C 00 00 00 00 00 FF 0F EC [11:11:14]RasterBufferAndPrint [11:11:14]line Счет N : (3)189964 [11:11:14]line ИНН: 02508201610067 [11:11:14]line Контрольно-Кассовый Чек [11:11:14]line ПРОДАЖА [11:11:14]line Товар: 2000036220012 [11:11:14]line Кофе Капучино XL(GABB TRADE) [11:11:14]line 1.000 * 130.00 [11:11:14]line = 130.00 [11:11:14]line НДС 12% НСП 1% [11:11:14]line > о реализуемом товаре [11:11:14]line ИТОГО: 130.00 [11:11:14]line НСП 1% : 1.15 [11:11:14]line НДС 12% : 13.80 [11:11:14]line Наличными: 130.00 [11:11:14]line Безнал.: 0.00 [11:11:14]line Место: АЗС № 95 "Партнер Нефть" [11:11:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:11:14]line СНО: Общий режим [11:11:14]line Чек 51 18.08.2024 11:11 [11:11:14]line Смена: 466 ФФД: 1.0 [11:11:14]line ЗНМ: 0300000078 [11:11:14]line РНМ: 0000000000092546 [11:11:14]line Версия ККМ: 001 [11:11:14]line ФМ: 0000000000871800 [11:11:14]line ФД: 49785 [11:11:14]line ФПД: 237751684349876 [11:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49785&fm=237751684349876&tin=02508201610067®Number=0000000000092546&sum=13000 [11:11:14]line 0 [11:11:14]OFD Sender: Processing packet 49785 [packets to send 21, broken 20] [11:11:14]ProducePacketName [11:11:14]name=ofd_packets/00049785 [11:11:14]OFD Sender: To server: pG, [11:11:14]CommunicateWithHost lk.salyk.kg:30040 [11:11:14]ConnectInit lk.salyk.kg [11:11:14]written 0, free lines is 4095 [11:11:14]Connected sock=10 [11:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 F2 86 26 01 B3 A0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 D8 D6 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C2 00 00 35 04 06 00 D8 3B E0 B0 BF B4 03 86 42 DA 05 31 17 3E [11:11:14]Write to MH i2c: 01 00 00 B4 4C 00 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 07 00 [11:11:14]MH_I2C_Read... [11:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BA 20 47 00 33 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C2 00 00 F4 03 04 00 12 82 C1 66 B6 04 01 00 00 29 C1 47 3C CC 22 34 E4 [11:11:14]CommunicateWithHost err = 0 [11:11:14]CheckOFDResponse [11:11:14]1017 (14) - 77093643461234 [11:11:14]1041 (16) - 0000000000871800 [11:11:14]1040 (4) - 49785 [11:11:14]1012 (4) - 18.08.2024 05:09 [11:11:14]1206 (1) - 0 [11:11:14]OFD Sender: Remove packet 49785 [11:11:14]ProducePacketName [11:11:14]name=ofd_packets/00049785 [11:11:14]NVStorageDeleteData [11:11:14]Read from MH i2c: 01 07 00 B4 4C 00 00 00 00 00 EE 0C 01 [11:11:14]RasterBufferAndPrint [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]written 0, free lines is 3331 [11:11:14]MH_Cut [11:11:14]Write to MH i2c: D1 01 00 BB 4C 01 D9 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 01 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 01 00 BB 4C 00 D8 [11:11:14]Write to MH i2c: 01 00 00 BC 4C 08 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:15]OFD Sender: No OFD packet to send [11:11:15]*** Cut start [11:11:15]*** Purtial cut [11:11:15]*** CUTSNS_PIN = 0 [11:11:15]*** Stage 1: CUTSNS_PIN = 1 [11:11:17]Read from MH i2c: 01 [11:11:17]MH_I2C_Read... [11:11:17]*** Stop cut motor [11:11:17]*** Cut end [11:11:17]Read from MH i2c: 01 07 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 BC 4C 00 00 00 00 00 FF 0F 1D [11:11:17]process_action close_receipt done [11:11:17]requested_data is exist [11:11:17]produce_requested_data [11:11:17]requested_item fm.sn is exist - process it [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 11 00 00 [11:11:17]Write to MH i2c: E2 08 00 BD 4C 80 11 00 00 00 00 00 00 83 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 BD 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [11:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:11:17]wFMCommunicate OK [11:11:17]requested_item fd.num is exist - process it [11:11:17]SAM_PROTO_GetFieldsCounters [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 13 00 00 [11:11:17]Write to MH i2c: E2 08 00 BE 4C 80 13 00 00 00 00 00 00 86 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 62 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 62 00 BE 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 79 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 79 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_GetFieldsCounters done [11:11:17]requested_item shift.num is exist - process it [11:11:17]requested_item shift.opened is exist - process it [11:11:17]req_shift_opened [11:11:17]FM_GetShiftState [11:11:17]SAM_PROTO_GetShiftState [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 13 01 00 [11:11:17]Write to MH i2c: E2 08 00 BF 4C 80 13 01 00 00 00 00 00 88 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0E 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0E 00 BF 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A5 [11:11:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_GetShiftState done [11:11:17]FM_GetShiftState done [11:11:17]req_shift_opened done [11:11:17]requested_item shift.open_date is exist - process it [11:11:17]req_shift_open_date [11:11:17]req_shift_open_date done [11:11:17]produce_requested_data done [11:11:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49785,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:11:17]process_action_free close_receipt [11:11:17]json_value_free [11:11:17]json_value_free done [11:11:17]process_json_proto returns [11:11:17]Send response to host [11:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49785,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:11:17]free response buf [11:11:17]execute_script done [11:11:17]execute_script returns [11:11:17]free content buf [11:11:17]Sock 7.Close socket [11:11:17]Sock 7.Thread stoped [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:05]accept exits with 9 [11:13:05]New connection [11:13:05]New thread 3066944868 created [11:13:05]Thread 3066801508 joined [11:13:05]Waiting for new connection... [11:13:05] Sock 9.Parse request [11:13:05]Sock 9.Check first char [11:13:05]Sock 9.First char is OK [11:13:05]request: POST /json_proto HTTP/1.0 [11:13:05]Method: POST [11:13:05]URL: /json_proto [11:13:05]Method is POST - this is cgi request [11:13:05]url: /json_proto [11:13:05]query_string will be loaded in cgi processing [11:13:05]execute_cgi json_proto POST (null) [11:13:05]execute_cgi path=json_proto method=POST [11:13:05]POST find Content-Length [11:13:05]Host: 172.17.46.196:8080 [11:13:05]Content-Length: 908 [11:13:05]Content-Type: application/json [11:13:05] [11:13:05]POST finish read [11:13:05]Found Content-Length = 908 [11:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189965", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:05]execute_script... [11:13:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189965", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 233.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:05]POST & json_proto [11:13:05]process_json_proto [11:13:05]json parsed OK: [11:13:05]protocol is kg_v1.0 [11:13:05]action value=close_receipt [11:13:05]process_action close_receipt [11:13:05]cmd_close_receipt [11:13:05]MH_GetDate [11:13:05]Write to MH i2c: F0 00 00 C0 4C FB [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: F0 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: F0 09 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: F0 09 00 C0 4C 00 4A D7 C1 66 07 E8 5D 66 FE [11:13:05]GetLastDocTimeStamp 1723979480 [11:13:05]current date 1723979594 [11:13:05]FM_GetShiftState [11:13:05]SAM_PROTO_GetShiftState [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 13 01 00 [11:13:05]Write to MH i2c: E2 08 00 C1 4C 80 13 01 00 00 00 00 00 8A [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 C1 4C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A7 [11:13:05]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_GetShiftState done [11:13:05]FM_GetShiftState done [11:13:05]opened in 1723939759 [11:13:05]opened+sec_in_day 1724026159 [11:13:05]quantity*price = 9300 [11:13:05]sum+1 = 9301 [11:13:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 233.00 НСП 1% : 2.06 НДС 12% : 24.75 Наличными: 233.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 52 18.08.2024 11:13 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49786 ФПД: 35867398545300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49786&fm=35867398545300&tin=02508201610067®Number=0000000000092546&sum=23300 0 [11:13:06]StoreToDocumentArchive [11:13:06]shift 466 fd 49786 [11:13:06]save to /storage/0466/doc_00049786 [11:13:06]save last doc name /storage/0466/doc_00049786 to /storage/kkm_last_doc_name [11:13:06]save OK [11:13:06]Clear old archive folders... [11:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=392 [11:13:06]tlvbuf is 0183A560 [11:13:06]SAM_PROTO_ClearQueue [11:13:06]wFMCommunicate request_size=4 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 09 00 00 [11:13:06]Write to MH i2c: E2 08 00 CE 4C 80 09 00 00 00 00 00 00 8C [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:06]Read from MH i2c: E2 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 03 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 03 00 CE 4C 00 90 00 8E [11:13:06]RAPDU: 90 00 [11:13:06]wFMCommunicate OK [11:13:06]SAM_PROTO_ClearQueue done [11:13:06]KKMCreateOFDPacket [11:13:06]OFDProtocolAddRootSTLVToBuf [11:13:06]FM_MakeSignedData [11:13:06]FM_MakeSignedData [11:13:06]SAM_PROTO_SignData [11:13:06]wFMCommunicate request_size=4 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 0D 01 02 [11:13:06]Write to MH i2c: E2 08 00 CF 4C 80 0D 01 02 00 00 00 00 94 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:06]Read from MH i2c: E2 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 03 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 03 00 CF 4C 00 90 00 8F [11:13:06]RAPDU: 90 00 [11:13:06]wFMCommunicate OK [11:13:06]wFMCommunicate request_size=255 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [11:13:06]Write to MH i2c: E2 02 01 D0 4C 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 0D [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 D0 4C 00 90 00 90 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]wFMCommunicate request_size=151 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 [11:13:07]Write to MH i2c: E2 9A 00 D1 4C 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 00 00 D7 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 D1 4C 00 90 00 91 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 03 02 [11:13:07]Write to MH i2c: E2 08 00 D2 4C 80 0D 03 02 00 00 00 00 99 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0B 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0B 00 D2 4C 00 31 9C 81 86 11 FB F3 62 90 00 CF [11:13:07]RAPDU: 31 9C 81 86 11 FB F3 62 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_SignData done [11:13:07]FM_MakeSignedData done [11:13:07]CreateOFDProtocolMessage [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 11 00 00 [11:13:07]Write to MH i2c: E2 08 00 D3 4C 80 11 00 00 00 00 00 00 99 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 D3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E4 [11:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:07]wFMCommunicate OK [11:13:07]CreateOFDProtocolMessage done [11:13:07]OFDSenderStorePacket 49786 [11:13:07]StoreOFDPacket docnum=49786 [11:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 06 FC 94 01 BC 28 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 31 9C 81 86 11 FB F3 62 [11:13:07]CheckFolder [11:13:07]dirname=/storage/ofd_packets [11:13:07]CheckFolder done [11:13:07]ProducePacketName [11:13:07]name=ofd_packets/00049786 [11:13:07]NVStorageSaveData ofd_packets/00049786 [11:13:07]File name is /storage/ofd_packets/00049786 [11:13:07]Write 442 bytes [11:13:07]NVStorageSaveData done [11:13:07]OFDSenderStorePacket done [11:13:07]KKMCreateOFDPacket done [11:13:07]NVStorageSaveData kkm_last_timestamp [11:13:07]File name is /storage/kkm_last_timestamp [11:13:07]Write 4 bytes [11:13:07]NVStorageSaveData done [11:13:07]ExternCall_PrintAddStr [11:13:07]wPrintStart [11:13:07]Write to MH i2c: 01 00 00 D4 4C 20 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 07 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 07 00 D4 4C 00 00 00 00 00 FF 0F 35 [11:13:07]RasterBufferAndPrint [11:13:07]line Счет N : (3)189965 [11:13:07]line ИНН: 02508201610067 [11:13:07]line Контрольно-Кассовый Чек [11:13:07]line ПРОДАЖА [11:13:07]line Товар: 4603290004862 [11:13:07]line Печ.сах.FORSITE Сэнд.шок-ор.вк [11:13:07]line 1.000 * 93.00 [11:13:07]line = 93.00 [11:13:07]line НДС 12% НСП 1% [11:13:07]line > о реализуемом товаре [11:13:07]line Товар: 48743570 [11:13:07]line Сигареты Winston XStyle Blue [11:13:07]line 1.000 * 140.00 [11:13:07]line = 140.00 [11:13:07]line НДС 12% НСП 1% [11:13:07]line > о реализуемом товаре [11:13:07]line ИТОГО: 233.00 [11:13:07]line НСП 1% : 2.06 [11:13:07]line НДС 12% : 24.75 [11:13:07]line Наличными: 233.00 [11:13:07]line Безнал.: 0.00 [11:13:07]line Место: АЗС № 95 "Партнер Нефть" [11:13:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:13:07]line СНО: Общий режим [11:13:07]line Чек 52 18.08.2024 11:13 [11:13:07]line Смена: 466 ФФД: 1.0 [11:13:07]line ЗНМ: 0300000078 [11:13:07]line РНМ: 0000000000092546 [11:13:07]line Версия ККМ: 001 [11:13:07]line ФМ: 0000000000871800 [11:13:07]line ФД: 49786 [11:13:07]line ФПД: 35867398545300 [11:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49786&fm=35867398545300&tin=02508201610067®Number=0000000000092546&sum=23300 [11:13:07]OFD Sender: Processing packet 49786 [packets to send 21, broken 20] [11:13:07]ProducePacketName [11:13:07]name=ofd_packets/00049786 [11:13:07]OFD Sender: To server: pG, [11:13:07]CommunicateWithHost lk.salyk.kg:30040 [11:13:07]ConnectInit lk.salyk.kg [11:13:07]line 0 [11:13:07]written 0, free lines is 4095 [11:13:07]Connected sock=10 [11:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 06 FC 94 01 BC 28 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 31 9C 81 86 11 FB F3 62 [11:13:08]recv_with_timeout no data received [11:13:08]CommunicateWithHost answer receiving error [11:13:08]CommunicateWithHost err = -3 [11:13:08]OFD Sender: Server communicate error [11:13:08]Write to MH i2c: 01 00 00 03 4D 50 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 07 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 07 00 03 4D 00 00 00 00 00 66 0C C9 [11:13:08]RasterBufferAndPrint [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]written 0, free lines is 3180 [11:13:08]MH_Cut [11:13:08]Write to MH i2c: D1 01 00 0A 4D 01 29 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 01 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 01 00 0A 4D 00 28 [11:13:08]Write to MH i2c: 01 00 00 0B 4D 58 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:09]*** Cut start [11:13:09]*** Purtial cut [11:13:09]*** Stage 1: CUTSNS_PIN = 1 [11:13:09]Read from MH i2c: 01 [11:13:09]MH_I2C_Read... [11:13:09]*** Stop cut motor [11:13:09]*** Cut end [11:13:09]Read from MH i2c: 01 07 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: 01 07 00 0B 4D 00 00 00 00 00 FF 0F 6D [11:13:09]process_action close_receipt done [11:13:09]requested_data is exist [11:13:09]produce_requested_data [11:13:09]requested_item fm.sn is exist - process it [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 11 00 00 [11:13:09]Write to MH i2c: E2 08 00 0C 4D 80 11 00 00 00 00 00 00 D3 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:09]Read from MH i2c: E2 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 17 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 17 00 0C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1E [11:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:09]wFMCommunicate OK [11:13:09]requested_item fd.num is exist - process it [11:13:09]SAM_PROTO_GetFieldsCounters [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 13 00 00 [11:13:09]Write to MH i2c: E2 08 00 0D 4D 80 13 00 00 00 00 00 00 D6 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:09]Read from MH i2c: E2 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 62 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 62 00 0D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:09]wFMCommunicate OK [11:13:09]SAM_PROTO_GetFieldsCounters done [11:13:09]requested_item shift.num is exist - process it [11:13:09]requested_item shift.opened is exist - process it [11:13:09]req_shift_opened [11:13:09]FM_GetShiftState [11:13:09]SAM_PROTO_GetShiftState [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 13 01 00 [11:13:09]Write to MH i2c: E2 08 00 0E 4D 80 13 01 00 00 00 00 00 D8 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:09]Read from MH i2c: E2 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 0E 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F5 [11:13:09]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:13:09]wFMCommunicate OK [11:13:09]SAM_PROTO_GetShiftState done [11:13:09]FM_GetShiftState done [11:13:09]req_shift_opened done [11:13:09]requested_item shift.open_date is exist - process it [11:13:09]req_shift_open_date [11:13:09]req_shift_open_date done [11:13:09]produce_requested_data done [11:13:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49786,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:13:09]process_action_free close_receipt [11:13:09]json_value_free [11:13:09]json_value_free done [11:13:09]process_json_proto returns [11:13:09]Send response to host [11:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49786,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:13:09]free response buf [11:13:09]execute_script done [11:13:09]execute_script returns [11:13:09]free content buf [11:13:09]Sock 9.Close socket [11:13:09]Sock 9.Thread stoped [11:13:13]OFD Sender: Processing packet 49786 [packets to send 21, broken 20] [11:13:13]ProducePacketName [11:13:13]name=ofd_packets/00049786 [11:13:13]OFD Sender: To server: pG, [11:13:13]CommunicateWithHost lk.salyk.kg:30040 [11:13:13]ConnectInit lk.salyk.kg [11:13:13]Connected sock=9 [11:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 06 FC 94 01 BC 28 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 31 9C 81 86 11 FB F3 62 [11:13:13]recv_with_timeout no data received [11:13:13]CommunicateWithHost answer receiving error [11:13:13]CommunicateWithHost err = -3 [11:13:13]OFD Sender: Server communicate error [11:13:18]OFD Sender: Processing packet 49786 [packets to send 21, broken 20] [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00049786 [11:13:18]OFD Sender: To server: pG, [11:13:18]CommunicateWithHost lk.salyk.kg:30040 [11:13:18]ConnectInit lk.salyk.kg [11:13:18]Connected sock=9 [11:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 06 FC 94 01 BC 28 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 09 00 00 00 00 07 04 06 00 04 5B 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 4A D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 35 04 06 00 20 9F 07 8C 9F 94 31 9C 81 86 11 FB F3 62 [11:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 2D 47 00 0C 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C2 00 00 F4 03 04 00 8D 82 C1 66 B6 04 01 00 00 A1 E8 07 3B F0 E1 A8 89 [11:13:18]CommunicateWithHost err = 0 [11:13:18]CheckOFDResponse [11:13:18]1017 (14) - 77093643461234 [11:13:18]1041 (16) - 0000000000871800 [11:13:18]1040 (4) - 49786 [11:13:18]1012 (4) - 18.08.2024 05:11 [11:13:18]1206 (1) - 0 [11:13:18]OFD Sender: Remove packet 49786 [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00049786 [11:13:18]NVStorageDeleteData [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:43]accept exits with 7 [11:13:43]New connection [11:13:43]New thread 3066801508 created [11:13:43]Thread 3066944868 joined [11:13:43]Waiting for new connection... [11:13:43] Sock 7.Parse request [11:13:43]Sock 7.Check first char [11:13:43]Sock 7.First char is OK [11:13:43]request: POST /json_proto HTTP/1.0 [11:13:43]Method: POST [11:13:43]URL: /json_proto [11:13:43]Method is POST - this is cgi request [11:13:43]url: /json_proto [11:13:43]query_string will be loaded in cgi processing [11:13:43]execute_cgi json_proto POST (null) [11:13:43]execute_cgi path=json_proto method=POST [11:13:43]POST find Content-Length [11:13:43]Host: 172.17.46.196:8080 [11:13:43]Content-Length: 649 [11:13:43]Content-Type: application/json [11:13:43] [11:13:43]POST finish read [11:13:43]Found Content-Length = 649 [11:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189966", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:43]execute_script... [11:13:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189966", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:43]POST & json_proto [11:13:43]process_json_proto [11:13:43]json parsed OK: [11:13:43]protocol is kg_v1.0 [11:13:43]action value=close_receipt [11:13:43]process_action close_receipt [11:13:43]cmd_close_receipt [11:13:43]MH_GetDate [11:13:43]Write to MH i2c: F0 00 00 0F 4D 4B [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 09 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 09 00 0F 4D 00 6F D7 C1 66 07 E8 5D 66 73 [11:13:43]GetLastDocTimeStamp 1723979594 [11:13:43]current date 1723979631 [11:13:43]FM_GetShiftState [11:13:43]SAM_PROTO_GetShiftState [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 13 01 00 [11:13:43]Write to MH i2c: E2 08 00 10 4D 80 13 01 00 00 00 00 00 DA [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0E 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0E 00 10 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F7 [11:13:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_GetShiftState done [11:13:43]FM_GetShiftState done [11:13:43]opened in 1723939759 [11:13:43]opened+sec_in_day 1724026159 [11:13:43]quantity*price = 8500 [11:13:43]sum+1 = 8501 [11:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 53 18.08.2024 11:13 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49787 ФПД: 508793798000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111352&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49787&fm=508793798000&tin=02508201610067®Number=0000000000092546&sum=8500 0 [11:13:44]StoreToDocumentArchive [11:13:44]shift 466 fd 49787 [11:13:44]save to /storage/0466/doc_00049787 [11:13:44]save last doc name /storage/0466/doc_00049787 to /storage/kkm_last_doc_name [11:13:44]save OK [11:13:44]Clear old archive folders... [11:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:13:44]tlvbuf is B6F53610 [11:13:44]SAM_PROTO_ClearQueue [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 09 00 00 [11:13:44]Write to MH i2c: E2 08 00 1D 4D 80 09 00 00 00 00 00 00 DC [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 1D 4D 00 90 00 DE [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]SAM_PROTO_ClearQueue done [11:13:44]KKMCreateOFDPacket [11:13:44]OFDProtocolAddRootSTLVToBuf [11:13:44]FM_MakeSignedData [11:13:44]FM_MakeSignedData [11:13:44]SAM_PROTO_SignData [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 0D 01 02 [11:13:44]Write to MH i2c: E2 08 00 1E 4D 80 0D 01 02 00 00 00 00 E4 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 1E 4D 00 90 00 DF [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]wFMCommunicate request_size=255 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 70 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [11:13:44]Write to MH i2c: E2 02 01 1F 4D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 70 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 6E [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 03 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 03 00 1F 4D 00 90 00 E0 [11:13:45]RAPDU: 90 00 [11:13:45]wFMCommunicate OK [11:13:45]wFMCommunicate request_size=39 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C2 00 00 35 04 06 00 00 76 76 79 3D 70 [11:13:45]Write to MH i2c: E2 2A 00 20 4D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C2 00 00 35 04 06 00 00 76 76 79 3D 70 00 00 E9 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 03 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 03 00 20 4D 00 90 00 E1 [11:13:45]RAPDU: 90 00 [11:13:45]wFMCommunicate OK [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 0D 03 02 [11:13:45]Write to MH i2c: E2 08 00 21 4D 80 0D 03 02 00 00 00 00 E9 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0B 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0B 00 21 4D 00 0E AD 23 F1 18 D8 4A 94 90 00 87 [11:13:45]RAPDU: 0E AD 23 F1 18 D8 4A 94 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_SignData done [11:13:45]FM_MakeSignedData done [11:13:45]CreateOFDProtocolMessage [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 22 4D 80 11 00 00 00 00 00 00 E9 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 22 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 34 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:45]wFMCommunicate OK [11:13:45]CreateOFDProtocolMessage done [11:13:45]OFDSenderStorePacket 49787 [11:13:45]StoreOFDPacket docnum=49787 [11:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5C A1 24 01 73 E6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 70 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C2 00 00 35 04 06 00 00 76 76 79 3D 70 0E AD 23 F1 18 D8 4A 94 [11:13:45]CheckFolder [11:13:45]dirname=/storage/ofd_packets [11:13:45]CheckFolder done [11:13:45]ProducePacketName [11:13:45]name=ofd_packets/00049787 [11:13:45]NVStorageSaveData ofd_packets/00049787 [11:13:45]File name is /storage/ofd_packets/00049787 [11:13:45]Write 330 bytes [11:13:45]NVStorageSaveData done [11:13:45]OFDSenderStorePacket done [11:13:45]KKMCreateOFDPacket done [11:13:45]NVStorageSaveData kkm_last_timestamp [11:13:45]File name is /storage/kkm_last_timestamp [11:13:45]Write 4 bytes [11:13:45]NVStorageSaveData done [11:13:45]ExternCall_PrintAddStr [11:13:45]wPrintStart [11:13:45]Write to MH i2c: 01 00 00 23 4D 70 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 23 4D 00 00 00 00 00 FF 0F 85 [11:13:45]RasterBufferAndPrint [11:13:45]line Счет N : (3)189966 [11:13:45]line ИНН: 02508201610067 [11:13:45]line Контрольно-Кассовый Чек [11:13:45]line ПРОДАЖА [11:13:45]line Товар: 4870227273831 [11:13:45]line Лимонад Sunbel Мохито 1л [11:13:45]line 1.000 * 85.00 [11:13:45]line = 85.00 [11:13:45]line НДС 12% НСП 1% [11:13:45]line > о реализуемом товаре [11:13:45]line ИТОГО: 85.00 [11:13:45]line НСП 1% : 0.75 [11:13:45]line НДС 12% : 9.03 [11:13:45]line Наличными: 85.00 [11:13:45]line Безнал.: 0.00 [11:13:45]line Место: АЗС № 95 "Партнер Нефть" [11:13:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:13:45]line СНО: Общий режим [11:13:45]line Чек 53 18.08.2024 11:13 [11:13:45]line Смена: 466 ФФД: 1.0 [11:13:45]line ЗНМ: 0300000078 [11:13:45]line РНМ: 0000000000092546 [11:13:45]line Версия ККМ: 001 [11:13:45]line ФМ: 0000000000871800 [11:13:45]line ФД: 49787 [11:13:45]line ФПД: 508793798000 [11:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111352&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49787&fm=508793798000&tin=02508201610067®Number=0000000000092546&sum=8500 [11:13:45]line 0 [11:13:45]OFD Sender: Processing packet 49787 [packets to send 21, broken 20] [11:13:45]ProducePacketName [11:13:45]name=ofd_packets/00049787 [11:13:45]OFD Sender: To server: pG, [11:13:45]CommunicateWithHost lk.salyk.kg:30040 [11:13:45]ConnectInit lk.salyk.kg [11:13:45]written 0, free lines is 4095 [11:13:45]Connected sock=10 [11:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5C A1 24 01 73 E6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 70 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C2 00 00 35 04 06 00 00 76 76 79 3D 70 0E AD 23 F1 18 D8 4A 94 [11:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 75 C7 47 00 78 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C2 00 00 F4 03 04 00 A9 82 C1 66 B6 04 01 00 00 36 77 81 56 DE 3C 6A 85 [11:13:45]CommunicateWithHost err = 0 [11:13:45]CheckOFDResponse [11:13:45]1017 (14) - 77093643461234 [11:13:45]1041 (16) - 0000000000871800 [11:13:45]1040 (4) - 49787 [11:13:45]1012 (4) - 18.08.2024 05:12 [11:13:45]1206 (1) - 0 [11:13:45]OFD Sender: Remove packet 49787 [11:13:45]ProducePacketName [11:13:45]name=ofd_packets/00049787 [11:13:45]NVStorageDeleteData [11:13:45]Write to MH i2c: 01 00 00 4B 4D 98 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 4B 4D 00 00 00 00 00 0B 0D B7 [11:13:45]RasterBufferAndPrint [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]written 0, free lines is 3348 [11:13:46]MH_Cut [11:13:46]Write to MH i2c: D1 01 00 52 4D 01 71 [11:13:46]Write i2c OK [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: D1 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: D1 01 00 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: D1 01 00 52 4D 00 70 [11:13:46]Write to MH i2c: 01 00 00 53 4D A0 [11:13:46]Write i2c OK [11:13:46]MH_I2C_Read... [11:13:46]OFD Sender: No OFD packet to send [11:13:46]*** Cut start [11:13:46]*** Purtial cut [11:13:46]*** CUTSNS_PIN = 0 [11:13:46]*** Stage 1: CUTSNS_PIN = 1 [11:13:48]Read from MH i2c: 01 [11:13:48]MH_I2C_Read... [11:13:48]*** Stop cut motor [11:13:48]*** Cut end [11:13:48]Read from MH i2c: 01 07 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: 01 07 00 53 4D 00 00 00 00 00 FF 0F B5 [11:13:48]process_action close_receipt done [11:13:48]requested_data is exist [11:13:48]produce_requested_data [11:13:48]requested_item fm.sn is exist - process it [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 11 00 00 [11:13:48]Write to MH i2c: E2 08 00 54 4D 80 11 00 00 00 00 00 00 1B [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 17 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 17 00 54 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [11:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:48]wFMCommunicate OK [11:13:48]requested_item fd.num is exist - process it [11:13:48]SAM_PROTO_GetFieldsCounters [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 13 00 00 [11:13:48]Write to MH i2c: E2 08 00 55 4D 80 13 00 00 00 00 00 00 1E [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 62 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 62 00 55 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [11:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:48]wFMCommunicate OK [11:13:48]SAM_PROTO_GetFieldsCounters done [11:13:48]requested_item shift.num is exist - process it [11:13:48]requested_item shift.opened is exist - process it [11:13:48]req_shift_opened [11:13:48]FM_GetShiftState [11:13:48]SAM_PROTO_GetShiftState [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 13 01 00 [11:13:48]Write to MH i2c: E2 08 00 56 4D 80 13 01 00 00 00 00 00 20 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0E 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0E 00 56 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 3D [11:13:49]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:13:49]wFMCommunicate OK [11:13:49]SAM_PROTO_GetShiftState done [11:13:49]FM_GetShiftState done [11:13:49]req_shift_opened done [11:13:49]requested_item shift.open_date is exist - process it [11:13:49]req_shift_open_date [11:13:49]req_shift_open_date done [11:13:49]produce_requested_data done [11:13:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49787,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:13:49]process_action_free close_receipt [11:13:49]json_value_free [11:13:49]json_value_free done [11:13:49]process_json_proto returns [11:13:49]Send response to host [11:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49787,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:13:49]free response buf [11:13:49]execute_script done [11:13:49]execute_script returns [11:13:49]free content buf [11:13:49]Sock 7.Close socket [11:13:49]Sock 7.Thread stoped [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:15]accept exits with 9 [11:14:15]New connection [11:14:15]New thread 3066944868 created [11:14:15]Thread 3066801508 joined [11:14:15]Waiting for new connection... [11:14:15] Sock 9.Parse request [11:14:15]Sock 9.Check first char [11:14:15]Sock 9.First char is OK [11:14:15]request: POST /json_proto HTTP/1.0 [11:14:15]Method: POST [11:14:15]URL: /json_proto [11:14:15]Method is POST - this is cgi request [11:14:15]url: /json_proto [11:14:15]query_string will be loaded in cgi processing [11:14:15]execute_cgi json_proto POST (null) [11:14:15]execute_cgi path=json_proto method=POST [11:14:15]POST find Content-Length [11:14:15]Host: 172.17.46.196:8080 [11:14:15]Content-Length: 1061 [11:14:15]Content-Type: application/json [11:14:15] [11:14:15]POST finish read [11:14:15]Found Content-Length = 1061 [11:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189967", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:15]execute_script... [11:14:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189967", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:15]POST & json_proto [11:14:15]process_json_proto [11:14:15]json parsed OK: [11:14:15]protocol is kg_v1.0 [11:14:15]action value=close_receipt [11:14:15]process_action close_receipt [11:14:15]cmd_close_receipt [11:14:15]MH_GetDate [11:14:15]Write to MH i2c: F0 00 00 57 4D 93 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: F0 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: F0 09 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: F0 09 00 57 4D 00 90 D7 C1 66 07 E8 5D 66 DC [11:14:15]GetLastDocTimeStamp 1723979632 [11:14:15]current date 1723979664 [11:14:15]FM_GetShiftState [11:14:15]SAM_PROTO_GetShiftState [11:14:15]wFMCommunicate request_size=4 [11:14:15]MH_SAM_APDU [11:14:15]CAPDU: 80 13 01 00 [11:14:15]Write to MH i2c: E2 08 00 58 4D 80 13 01 00 00 00 00 00 22 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:15]Read from MH i2c: E2 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 0E 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: E2 0E 00 58 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 3F [11:14:15]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:14:15]wFMCommunicate OK [11:14:15]SAM_PROTO_GetShiftState done [11:14:15]FM_GetShiftState done [11:14:15]opened in 1723939759 [11:14:15]opened+sec_in_day 1724026159 [11:14:15]quantity*price = 7500 [11:14:15]sum+1 = 7501 [11:14:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 54 18.08.2024 11:14 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49788 ФПД: 219255377819214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111424&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49788&fm=219255377819214&tin=02508201610067®Number=0000000000092546&sum=12500 0 [11:14:16]StoreToDocumentArchive [11:14:16]shift 466 fd 49788 [11:14:16]save to /storage/0466/doc_00049788 [11:14:16]save last doc name /storage/0466/doc_00049788 to /storage/kkm_last_doc_name [11:14:16]save OK [11:14:16]Clear old archive folders... [11:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=374 [11:14:16]tlvbuf is 0196FD00 [11:14:16]SAM_PROTO_ClearQueue [11:14:16]wFMCommunicate request_size=4 [11:14:16]MH_SAM_APDU [11:14:16]CAPDU: 80 09 00 00 [11:14:16]Write to MH i2c: E2 08 00 65 4D 80 09 00 00 00 00 00 00 24 [11:14:16]Write i2c OK [11:14:16]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 65 4D 00 90 00 26 [11:14:17]RAPDU: 90 00 [11:14:17]wFMCommunicate OK [11:14:17]SAM_PROTO_ClearQueue done [11:14:17]KKMCreateOFDPacket [11:14:17]OFDProtocolAddRootSTLVToBuf [11:14:17]FM_MakeSignedData [11:14:17]FM_MakeSignedData [11:14:17]SAM_PROTO_SignData [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 0D 01 02 [11:14:17]Write to MH i2c: E2 08 00 66 4D 80 0D 01 02 00 00 00 00 2C [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 66 4D 00 90 00 27 [11:14:17]RAPDU: 90 00 [11:14:17]wFMCommunicate OK [11:14:17]wFMCommunicate request_size=255 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 [11:14:17]Write to MH i2c: E2 02 01 67 4D 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 00 00 A8 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 67 4D 00 90 00 28 [11:14:17]RAPDU: 90 00 [11:14:17]wFMCommunicate OK [11:14:17]wFMCommunicate request_size=133 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C2 00 00 35 04 06 00 C7 69 5E E8 F6 4E [11:14:17]Write to MH i2c: E2 88 00 68 4D 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C2 00 00 35 04 06 00 C7 69 5E E8 F6 4E 00 00 1C [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 03 00 68 4D 00 90 00 29 [11:14:17]RAPDU: 90 00 [11:14:17]wFMCommunicate OK [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 0D 03 02 [11:14:17]Write to MH i2c: E2 08 00 69 4D 80 0D 03 02 00 00 00 00 31 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 0B 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 0B 00 69 4D 00 D9 F1 86 6A FD A2 1C 43 90 00 EA [11:14:17]RAPDU: D9 F1 86 6A FD A2 1C 43 90 00 [11:14:17]wFMCommunicate OK [11:14:17]SAM_PROTO_SignData done [11:14:17]FM_MakeSignedData done [11:14:17]CreateOFDProtocolMessage [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 11 00 00 [11:14:17]Write to MH i2c: E2 08 00 6A 4D 80 11 00 00 00 00 00 00 31 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 17 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 17 00 6A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7C [11:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:14:17]wFMCommunicate OK [11:14:17]CreateOFDProtocolMessage done [11:14:17]OFDSenderStorePacket 49788 [11:14:17]StoreOFDPacket docnum=49788 [11:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8A 01 00 00 4D 0E 82 01 64 CF 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C2 00 00 35 04 06 00 C7 69 5E E8 F6 4E D9 F1 86 6A FD A2 1C 43 [11:14:17]CheckFolder [11:14:17]dirname=/storage/ofd_packets [11:14:17]CheckFolder done [11:14:17]ProducePacketName [11:14:17]name=ofd_packets/00049788 [11:14:17]NVStorageSaveData ofd_packets/00049788 [11:14:17]File name is /storage/ofd_packets/00049788 [11:14:17]Write 424 bytes [11:14:17]NVStorageSaveData done [11:14:17]OFDSenderStorePacket done [11:14:17]KKMCreateOFDPacket done [11:14:17]NVStorageSaveData kkm_last_timestamp [11:14:17]File name is /storage/kkm_last_timestamp [11:14:17]Write 4 bytes [11:14:17]NVStorageSaveData done [11:14:17]ExternCall_PrintAddStr [11:14:17]wPrintStart [11:14:17]Write to MH i2c: 01 00 00 6B 4D B8 [11:14:17]OFD Sender: Processing packet 49788 [packets to send 21, broken 20] [11:14:17]ProducePacketName [11:14:17]name=ofd_packets/00049788 [11:14:17]OFD Sender: To server: pG, [11:14:17]CommunicateWithHost lk.salyk.kg:30040 [11:14:17]ConnectInit lk.salyk.kg [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: 01 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: 01 07 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: 01 07 00 6B 4D 00 00 00 00 00 FF 0F CD [11:14:17]RasterBufferAndPrint [11:14:17]line Счет N : (3)189967 [11:14:17]line ИНН: 02508201610067 [11:14:17]line Контрольно-Кассовый Чек [11:14:17]line ПРОДАЖА [11:14:17]line Товар: 54491472 [11:14:17]line Напиток Кока-Кола 0,5л [11:14:17]line 1.000 * 75.00 [11:14:17]line = 75.00 [11:14:17]line НДС 12% НСП 1% [11:14:17]line > о реализуемом товаре [11:14:17]line Товар: 4700000160358 [11:14:17]line Вода Легенда 1л [11:14:17]line 1.000 * 50.00 [11:14:17]line = 50.00 [11:14:17]line НДС 12% НСП 1% [11:14:17]line > о реализуемом товаре [11:14:17]line ИТОГО: 125.00 [11:14:17]line НСП 1% : 1.10 [11:14:17]line НДС 12% : 13.27 [11:14:17]line Наличными: 0.00 [11:14:17]line Безнал.: 125.00 [11:14:17]line Место: АЗС № 95 "Партнер Нефть" [11:14:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:14:17]line СНО: Общий режим [11:14:17]line Чек 54 18.08.2024 11:14 [11:14:17]line Смена: 466 ФФД: 1.0 [11:14:17]line ЗНМ: 0300000078 [11:14:17]line РНМ: 0000000000092546 [11:14:17]line Версия ККМ: 001 [11:14:17]line Платежная система: O! деньги [11:14:17]line ФМ: 0000000000871800 [11:14:17]line ФД: 49788 [11:14:17]line ФПД: 219255377819214 [11:14:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111424&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49788&fm=219255377819214&tin=02508201610067®Number=0000000000092546&sum=12500 [11:14:17]line 0 [11:14:17]written 0, free lines is 4095 [11:14:18]Connected sock=10 [11: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 38 30 30 8A 01 00 00 4D 0E 82 01 64 CF 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 D7 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C2 00 00 35 04 06 00 C7 69 5E E8 F6 4E D9 F1 86 6A FD A2 1C 43 [11: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 38 30 30 4F 00 00 00 B0 D6 47 00 DE 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C2 00 00 F4 03 04 00 C9 82 C1 66 B6 04 01 00 00 09 4B 35 DB 4D B2 2B 5F [11:14:18]CommunicateWithHost err = 0 [11:14:18]CheckOFDResponse [11:14:18]1017 (14) - 77093643461234 [11:14:18]1041 (16) - 0000000000871800 [11:14:18]1040 (4) - 49788 [11:14:18]1012 (4) - 18.08.2024 05:12 [11:14:18]1206 (1) - 0 [11:14:18]OFD Sender: Remove packet 49788 [11:14:18]ProducePacketName [11:14:18]name=ofd_packets/00049788 [11:14:18]NVStorageDeleteData [11:14:18]Write to MH i2c: 01 00 00 9B 4D E8 [11:14:18]Write i2c OK [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: 01 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: 01 07 00 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: 01 07 00 9B 4D 00 00 00 00 00 7C 0C 77 [11:14:18]RasterBufferAndPrint [11:14:18]line [11:14:18]line [11:14:18]line [11:14:18]line [11:14:18]line [11:14:18]written 0, free lines is 3202 [11:14:18]MH_Cut [11:14:18]Write to MH i2c: D1 01 00 A2 4D 01 C1 [11:14:18]Write i2c OK [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: D1 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: D1 01 00 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: D1 01 00 A2 4D 00 C0 [11:14:18]Write to MH i2c: 01 00 00 A3 4D F0 [11:14:18]Write i2c OK [11:14:18]MH_I2C_Read... [11:14:18]OFD Sender: No OFD packet to send [11:14:19]*** Cut start [11:14:19]*** Purtial cut [11:14:19]*** Stage 1: CUTSNS_PIN = 1 [11:14:19]Read from MH i2c: 01 [11:14:19]MH_I2C_Read... [11:14:19]*** Stop cut motor [11:14:19]*** Cut end [11:14:19]Read from MH i2c: 01 07 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: 01 07 00 A3 4D 00 00 00 00 00 FF 0F 05 [11:14:19]process_action close_receipt done [11:14:19]requested_data is exist [11:14:19]produce_requested_data [11:14:19]requested_item fm.sn is exist - process it [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 11 00 00 [11:14:19]Write to MH i2c: E2 08 00 A4 4D 80 11 00 00 00 00 00 00 6B [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 17 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 17 00 A4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B6 [11:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:14:19]wFMCommunicate OK [11:14:19]requested_item fd.num is exist - process it [11:14:19]SAM_PROTO_GetFieldsCounters [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 13 00 00 [11:14:19]Write to MH i2c: E2 08 00 A5 4D 80 13 00 00 00 00 00 00 6E [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 62 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 62 00 A5 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:19]wFMCommunicate OK [11:14:19]SAM_PROTO_GetFieldsCounters done [11:14:19]requested_item shift.num is exist - process it [11:14:19]requested_item shift.opened is exist - process it [11:14:19]req_shift_opened [11:14:19]FM_GetShiftState [11:14:19]SAM_PROTO_GetShiftState [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 13 01 00 [11:14:19]Write to MH i2c: E2 08 00 A6 4D 80 13 01 00 00 00 00 00 70 [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:19]Read from MH i2c: E2 0E 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 0E 00 A6 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8D [11:14:19]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:14:19]wFMCommunicate OK [11:14:19]SAM_PROTO_GetShiftState done [11:14:19]FM_GetShiftState done [11:14:19]req_shift_opened done [11:14:19]requested_item shift.open_date is exist - process it [11:14:19]req_shift_open_date [11:14:19]req_shift_open_date done [11:14:19]produce_requested_data done [11:14:19]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49788,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:14:19]process_action_free close_receipt [11:14:19]json_value_free [11:14:19]json_value_free done [11:14:19]process_json_proto returns [11:14:19]Send response to host [11:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49788,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:14:19]free response buf [11:14:19]execute_script done [11:14:19]execute_script returns [11:14:19]free content buf [11:14:19]Sock 9.Close socket [11:14:19]Sock 9.Thread stoped [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:34]int [11:14:34]Write to MH i2c: 01 00 00 A7 4D F4 [11:14:34]*** FLAG_PRN_KEY set [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: 01 07 00 A7 4D 00 08 00 00 00 FF 0F 11 [11:14:34]state=0 [11:14:34]Key pressed [11:14:34]Feed [11:14:35]Write to MH i2c: D8 00 00 A8 4D CC [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D8 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D8 01 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: D8 01 00 A8 4D 00 CD [11:14:35]int [11:14:35]Write to MH i2c: 01 00 00 A9 4D F6 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 A9 4D 00 48 00 00 00 3C 00 81 [11:14:35]state=2 [11:14:35]Key pressed [11:14:35]int [11:14:35]Write to MH i2c: 01 00 00 AA 4D F7 [11:14:35]*** FLAG_PRN_KEY reset [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 AA 4D 00 00 00 00 00 F8 0F 05 [11:14:35]state=2 [11:14:35]Stop feed [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:33]accept exits with 7 [11:17:33]New connection [11:17:33]New thread 3066801508 created [11:17:33]Thread 3066944868 joined [11:17:33]Waiting for new connection... [11:17:33] Sock 7.Parse request [11:17:33]Sock 7.Check first char [11:17:33]Sock 7.First char is OK [11:17:33]request: POST /json_proto HTTP/1.0 [11:17:33]Method: POST [11:17:33]URL: /json_proto [11:17:33]Method is POST - this is cgi request [11:17:33]url: /json_proto [11:17:33]query_string will be loaded in cgi processing [11:17:33]execute_cgi json_proto POST (null) [11:17:33]execute_cgi path=json_proto method=POST [11:17:33]POST find Content-Length [11:17:33]Host: 172.17.46.196:8080 [11:17:33]Content-Length: 756 [11:17:33]Content-Type: application/json [11:17:33] [11:17:33]POST finish read [11:17:33]Found Content-Length = 756 [11:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11326900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]execute_script... [11:17: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)11326900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30086211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]POST & json_proto [11:17:33]process_json_proto [11:17:33]json parsed OK: [11:17:33]protocol is kg_v1.0 [11:17:33]action value=close_receipt [11:17:33]process_action close_receipt [11:17:33]cmd_close_receipt [11:17:33]MH_GetDate [11:17:33]Write to MH i2c: F0 00 00 AB 4D E7 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 AB 4D 00 56 D8 C1 66 07 E8 5D 66 F7 [11:17:33]GetLastDocTimeStamp 1723979664 [11:17:33]current date 1723979862 [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 AC 4D 80 13 01 00 00 00 00 00 76 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 AC 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 93 [11:17:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]opened in 1723939759 [11:17:33]opened+sec_in_day 1724026159 [11:17:33]quantity*price = 0 [11:17:33]sum+1 = 1 [11:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 55 18.08.2024 11:17 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086211 ФМ: 0000000000871800 ФД: 49789 ФПД: 7239050717302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111742&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49789&fm=7239050717302&tin=02508201610067®Number=0000000000092546&sum=0 [11:17:35]StoreToDocumentArchive [11:17:35]shift 466 fd 49789 [11:17:35]save to /storage/0466/doc_00049789 [11:17:35]save last doc name /storage/0466/doc_00049789 to /storage/kkm_last_doc_name [11:17:35]save OK [11:17:35]Clear old archive folders... [11:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:35]tlvbuf is 018AC400 [11:17:35]SAM_PROTO_ClearQueue [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 09 00 00 [11:17:35]Write to MH i2c: E2 08 00 B9 4D 80 09 00 00 00 00 00 00 78 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 B9 4D 00 90 00 7A [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]SAM_PROTO_ClearQueue done [11:17:35]KKMCreateOFDPacket [11:17:35]OFDProtocolAddRootSTLVToBuf [11:17:35]FM_MakeSignedData [11:17:35]FM_MakeSignedData [11:17:35]SAM_PROTO_SignData [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 01 02 [11:17:35]Write to MH i2c: E2 08 00 BA 4D 80 0D 01 02 00 00 00 00 80 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 BA 4D 00 90 00 7B [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=255 [11:17:35]MH_SAM_APDU [11:17: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 34 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 37 00 00 00 F4 03 04 00 56 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C2 00 00 35 04 06 00 06 [11:17:35]Write to MH i2c: E2 02 01 BB 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 37 00 00 00 F4 03 04 00 56 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C2 00 00 35 04 06 00 06 00 00 94 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 BB 4D 00 90 00 7C [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=10 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 02 02 05 95 79 0B E8 76 [11:17:35]Write to MH i2c: E2 0D 00 BC 4D 80 0D 02 02 05 00 95 79 0B E8 76 00 00 04 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 03 00 BC 4D 00 90 00 7D [11:17:35]RAPDU: 90 00 [11:17:35]wFMCommunicate OK [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 0D 03 02 [11:17:35]Write to MH i2c: E2 08 00 BD 4D 80 0D 03 02 00 00 00 00 85 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0B 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 0B 00 BD 4D 00 FB E5 DE B0 C0 B6 15 EE 90 00 6D [11:17:35]RAPDU: FB E5 DE B0 C0 B6 15 EE 90 00 [11:17:35]wFMCommunicate OK [11:17:35]SAM_PROTO_SignData done [11:17:35]FM_MakeSignedData done [11:17:35]CreateOFDProtocolMessage [11:17:35]wFMCommunicate request_size=4 [11:17:35]MH_SAM_APDU [11:17:35]CAPDU: 80 11 00 00 [11:17:35]Write to MH i2c: E2 08 00 BE 4D 80 11 00 00 00 00 00 00 85 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:35]Read from MH i2c: E2 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: E2 17 00 BE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [11:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:35]wFMCommunicate OK [11:17:35]CreateOFDProtocolMessage done [11:17:35]OFDSenderStorePacket 49789 [11:17:35]StoreOFDPacket docnum=49789 [11:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 9A F9 07 01 D1 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 34 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 37 00 00 00 F4 03 04 00 56 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C2 00 00 35 04 06 00 06 95 79 0B E8 76 FB E5 DE B0 C0 B6 15 EE [11:17:35]CheckFolder [11:17:35]dirname=/storage/ofd_packets [11:17:35]CheckFolder done [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00049789 [11:17:35]NVStorageSaveData ofd_packets/00049789 [11:17:35]File name is /storage/ofd_packets/00049789 [11:17:35]Write 301 bytes [11:17:35]NVStorageSaveData done [11:17:35]OFDSenderStorePacket done [11:17:35]KKMCreateOFDPacket done [11:17:35]NVStorageSaveData kkm_last_timestamp [11:17:35]File name is /storage/kkm_last_timestamp [11:17:35]Write 4 bytes [11:17:35]NVStorageSaveData done [11:17:35]ExternCall_PrintAddStr [11:17:35]wPrintStart [11:17:35]Write to MH i2c: 01 00 00 BF 4D 0C [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 BF 4D 00 00 00 00 00 FF 0F 21 [11:17:35]RasterBufferAndPrint [11:17:35]line Счет N : (1)11326900 [11:17:35]line ИНН: 02508201610067 [11:17:35]line Контрольно-Кассовый Чек [11:17:35]line ПРОДАЖА [11:17:35]line ТРК (МРК, ГНК) : 12 [11:17:35]line Товар: 2710124130 [11:17:35]line Аи-92-К-4 [11:17:35]line 20.000 * 0.00 [11:17:35]line = 0.00 [11:17:35]line НДС 12% НСП 1% [11:17:35]line > о реализуемом товаре [11:17:35]line ИТОГО: 0.00 [11:17:35]line НСП 1% : 0.00 [11:17:35]line НДС 12% : 0.00 [11:17:35]line Наличными: 0.00 [11:17:35]line Безнал.: 0.00 [11:17:35]line Место: АЗС № 95 "Партнер Нефть" [11:17:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:17:35]line СНО: Общий режим [11:17:35]line Чек 55 18.08.2024 11:17 [11:17:35]line Смена: 466 ФФД: 1.0 [11:17:35]line ЗНМ: 0300000078 [11:17:35]line РНМ: 0000000000092546 [11:17:35]line Версия ККМ: 001 [11:17:35]line Талоны: ТК ГПНА Online [11:17:35]line 30086211 [11:17:35]line ФМ: 0000000000871800 [11:17:35]line ФД: 49789 [11:17:35]line ФПД: 7239050717302 [11:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111742&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49789&fm=7239050717302&tin=02508201610067®Number=0000000000092546&sum=0 [11:17:35]written 0, free lines is 4095 [11:17:35]OFD Sender: Processing packet 49789 [packets to send 21, broken 20] [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00049789 [11:17:35]OFD Sender: To server: pG, [11:17:35]CommunicateWithHost lk.salyk.kg:30040 [11:17:35]ConnectInit lk.salyk.kg [11:17:35]Write to MH i2c: 01 00 00 E9 4D 36 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 E9 4D 00 00 00 00 00 DD 0C 26 [11:17:35]RasterBufferAndPrint [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]written 0, free lines is 3299 [11:17:36]MH_Cut [11:17:36]Write to MH i2c: D1 01 00 F0 4D 01 0F [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 01 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: D1 01 00 F0 4D 00 0E [11:17:36]Write to MH i2c: 01 00 00 F1 4D 3E [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Connected sock=9 [11:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 9A F9 07 01 D1 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 34 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 37 00 00 00 F4 03 04 00 56 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C2 00 00 35 04 06 00 06 95 79 0B E8 76 FB E5 DE B0 C0 B6 15 EE [11:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7E 2B 47 00 21 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C2 00 00 F4 03 04 00 8F 83 C1 66 B6 04 01 00 00 7F 26 E7 4F 40 E2 DD 1C [11:17:36]CommunicateWithHost err = 0 [11:17:36]CheckOFDResponse [11:17:36]1017 (14) - 77093643461234 [11:17:36]1041 (16) - 0000000000871800 [11:17:36]1040 (4) - 49789 [11:17:36]1012 (4) - 18.08.2024 05:15 [11:17:36]1206 (1) - 0 [11:17:36]OFD Sender: Remove packet 49789 [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00049789 [11:17:36]NVStorageDeleteData [11:17:36]*** Cut start [11:17:36]*** Purtial cut [11:17:36]*** CUTSNS_PIN = 0 [11:17:36]OFD Sender: No OFD packet to send [11:17:36]*** Stage 1: CUTSNS_PIN = 1 [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]*** Stop cut motor [11:17:38]*** Cut end [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 F1 4D 00 00 00 00 00 FF 0F 53 [11:17:38]process_action close_receipt done [11:17:38]requested_data is exist [11:17:38]produce_requested_data [11:17:38]requested_item fm.sn is exist - process it [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 11 00 00 [11:17:38]Write to MH i2c: E2 08 00 F2 4D 80 11 00 00 00 00 00 00 B9 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 F2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 04 [11:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:38]wFMCommunicate OK [11:17:38]requested_item fd.num is exist - process it [11:17:38]SAM_PROTO_GetFieldsCounters [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 00 00 [11:17:38]Write to MH i2c: E2 08 00 F3 4D 80 13 00 00 00 00 00 00 BC [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 F3 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_GetFieldsCounters done [11:17:39]requested_item shift.num is exist - process it [11:17:39]requested_item shift.opened is exist - process it [11:17:39]req_shift_opened [11:17:39]FM_GetShiftState [11:17:39]SAM_PROTO_GetShiftState [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 13 01 00 [11:17:39]Write to MH i2c: E2 08 00 F4 4D 80 13 01 00 00 00 00 00 BE [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 F4 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DB [11:17:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_GetShiftState done [11:17:39]FM_GetShiftState done [11:17:39]req_shift_opened done [11:17:39]requested_item shift.open_date is exist - process it [11:17:39]req_shift_open_date [11:17:39]req_shift_open_date done [11:17:39]produce_requested_data done [11:17:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49789,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:17:39]process_action_free close_receipt [11:17:39]json_value_free [11:17:39]json_value_free done [11:17:39]process_json_proto returns [11:17:39]Send response to host [11:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49789,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:17:39]free response buf [11:17:39]execute_script done [11:17:39]execute_script returns [11:17:39]free content buf [11:17:39]Sock 7.Close socket [11:17:39]Sock 7.Thread stoped [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]accept exits with 10 [11:18:51]New connection [11:18:51]New thread 3066944868 created [11:18:51]Thread 3066801508 joined [11:18:51]Waiting for new connection... [11:18:51] Sock 10.Parse request [11:18:51]Sock 10.Check first char [11:18:51]Sock 10.First char is OK [11:18:51]request: POST /json_proto HTTP/1.0 [11:18:51]Method: POST [11:18:51]URL: /json_proto [11:18:51]Method is POST - this is cgi request [11:18:51]url: /json_proto [11:18:51]query_string will be loaded in cgi processing [11:18:51]execute_cgi json_proto POST (null) [11:18:51]execute_cgi path=json_proto method=POST [11:18:51]POST find Content-Length [11:18:51]Host: 172.17.46.196:8080 [11:18:51]Content-Length: 789 [11:18:51]Content-Type: application/json [11:18:51] [11:18:51]POST finish read [11:18:51]Found Content-Length = 789 [11:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189968", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:51]execute_script... [11:18:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189968", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:51]POST & json_proto [11:18:51]process_json_proto [11:18:51]json parsed OK: [11:18:51]protocol is kg_v1.0 [11:18:51]action value=close_receipt [11:18:51]process_action close_receipt [11:18:51]cmd_close_receipt [11:18:51]MH_GetDate [11:18:51]Write to MH i2c: F0 00 00 F5 4D 31 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 09 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 09 00 F5 4D 00 A4 D8 C1 66 07 E8 5D 66 8F [11:18:51]GetLastDocTimeStamp 1723979862 [11:18:51]current date 1723979940 [11:18:51]FM_GetShiftState [11:18:51]SAM_PROTO_GetShiftState [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 13 01 00 [11:18:51]Write to MH i2c: E2 08 00 F6 4D 80 13 01 00 00 00 00 00 C0 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 0E 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 0E 00 F6 4D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DD [11:18:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:18:51]wFMCommunicate OK [11:18:51]SAM_PROTO_GetShiftState done [11:18:51]FM_GetShiftState done [11:18:51]opened in 1723939759 [11:18:51]opened+sec_in_day 1724026159 [11:18:51]quantity*price = 13500 [11:18:51]sum+1 = 13501 [11:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 56 18.08.2024 11:19 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49790 ФПД: 262068136761719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111900&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49790&fm=262068136761719&tin=02508201610067®Number=0000000000092546&sum=13500 0 [11:18:52]StoreToDocumentArchive [11:18:52]shift 466 fd 49790 [11:18:52]save to /storage/0466/doc_00049790 [11:18:52]save last doc name /storage/0466/doc_00049790 to /storage/kkm_last_doc_name [11:18:52]save OK [11:18:52]Clear old archive folders... [11:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:18:52]tlvbuf is 0180F480 [11:18:52]SAM_PROTO_ClearQueue [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 09 00 00 [11:18:52]Write to MH i2c: E2 08 00 03 4E 80 09 00 00 00 00 00 00 C3 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 03 4E 00 90 00 C5 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]SAM_PROTO_ClearQueue done [11:18:52]KKMCreateOFDPacket [11:18:52]OFDProtocolAddRootSTLVToBuf [11:18:52]FM_MakeSignedData [11:18:52]FM_MakeSignedData [11:18:52]SAM_PROTO_SignData [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 01 02 [11:18:52]Write to MH i2c: E2 08 00 04 4E 80 0D 01 02 00 00 00 00 CB [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 04 4E 00 90 00 C6 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=255 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A4 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [11:18:52]Write to MH i2c: E2 02 01 05 4E 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A4 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 D5 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 03 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 03 00 05 4E 00 90 00 C7 [11:18:53]RAPDU: 90 00 [11:18:53]wFMCommunicate OK [11:18:53]wFMCommunicate request_size=39 [11:18:53]MH_SAM_APDU [11:18:53]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C2 00 00 35 04 06 00 EE 59 7E 32 D9 77 [11:18:53]Write to MH i2c: E2 2A 00 06 4E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C2 00 00 35 04 06 00 EE 59 7E 32 D9 77 00 00 08 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 03 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 03 00 06 4E 00 90 00 C8 [11:18:53]RAPDU: 90 00 [11:18:53]wFMCommunicate OK [11:18:53]wFMCommunicate request_size=4 [11:18:53]MH_SAM_APDU [11:18:53]CAPDU: 80 0D 03 02 [11:18:53]Write to MH i2c: E2 08 00 07 4E 80 0D 03 02 00 00 00 00 D0 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 0B 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 0B 00 07 4E 00 29 5C 48 F8 7F DD 02 79 90 00 6D [11:18:53]RAPDU: 29 5C 48 F8 7F DD 02 79 90 00 [11:18:53]wFMCommunicate OK [11:18:53]SAM_PROTO_SignData done [11:18:53]FM_MakeSignedData done [11:18:53]CreateOFDProtocolMessage [11:18:53]wFMCommunicate request_size=4 [11:18:53]MH_SAM_APDU [11:18:53]CAPDU: 80 11 00 00 [11:18:53]Write to MH i2c: E2 08 00 08 4E 80 11 00 00 00 00 00 00 D0 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 17 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 17 00 08 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1B [11:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:18:53]wFMCommunicate OK [11:18:53]CreateOFDProtocolMessage done [11:18:53]OFDSenderStorePacket 49790 [11:18:53]StoreOFDPacket docnum=49790 [11:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 19 0F 24 01 2B FE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A4 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C2 00 00 35 04 06 00 EE 59 7E 32 D9 77 29 5C 48 F8 7F DD 02 79 [11:18:53]CheckFolder [11:18:53]dirname=/storage/ofd_packets [11:18:53]CheckFolder done [11:18:53]ProducePacketName [11:18:53]name=ofd_packets/00049790 [11:18:53]NVStorageSaveData ofd_packets/00049790 [11:18:53]File name is /storage/ofd_packets/00049790 [11:18:53]Write 330 bytes [11:18:53]NVStorageSaveData done [11:18:53]OFDSenderStorePacket done [11:18:53]KKMCreateOFDPacket done [11:18:53]NVStorageSaveData kkm_last_timestamp [11:18:53]File name is /storage/kkm_last_timestamp [11:18:53]Write 4 bytes [11:18:53]NVStorageSaveData done [11:18:53]ExternCall_PrintAddStr [11:18:53]wPrintStart [11:18:53]Write to MH i2c: 01 00 00 09 4E 57 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 07 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 07 00 09 4E 00 00 00 00 00 FF 0F 6C [11:18:53]RasterBufferAndPrint [11:18:53]line Счет N : (3)189968 [11:18:53]line ИНН: 02508201610067 [11:18:53]line Контрольно-Кассовый Чек [11:18:53]line ПРОДАЖА [11:18:53]line Товар: 48741231 [11:18:53]line Сигареты Winston Super Slims Silver [11:18:53]line 1.000 * 135.00 [11:18:53]line = 135.00 [11:18:53]line НДС 12% НСП 1% [11:18:53]line > о реализуемом товаре [11:18:53]line ИТОГО: 135.00 [11:18:53]line НСП 1% : 1.19 [11:18:53]line НДС 12% : 14.34 [11:18:53]line Наличными: 0.00 [11:18:53]line Безнал.: 135.00 [11:18:53]line Место: АЗС № 95 "Партнер Нефть" [11:18:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:18:53]line СНО: Общий режим [11:18:53]line Чек 56 18.08.2024 11:19 [11:18:53]line Смена: 466 ФФД: 1.0 [11:18:53]line ЗНМ: 0300000078 [11:18:53]line РНМ: 0000000000092546 [11:18:53]line Версия ККМ: 001 [11:18:53]line Платежная система: O! деньги [11:18:53]line ФМ: 0000000000871800 [11:18:53]line ФД: 49790 [11:18:53]line ФПД: 262068136761719 [11:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111900&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49790&fm=262068136761719&tin=02508201610067®Number=0000000000092546&sum=13500 [11:18:53]line 0 [11:18:53]OFD Sender: Processing packet 49790 [packets to send 21, broken 20] [11:18:53]ProducePacketName [11:18:53]name=ofd_packets/00049790 [11:18:53]OFD Sender: To server: pG, [11:18:53]CommunicateWithHost lk.salyk.kg:30040 [11:18:53]ConnectInit lk.salyk.kg [11:18:53]written 0, free lines is 4095 [11:18:54]Write to MH i2c: 01 00 00 34 4E 82 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 07 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 07 00 34 4E 00 00 00 00 00 A8 0C 3D [11:18:54]RasterBufferAndPrint [11:18:54]line [11:18:54]line [11:18:54]line [11:18:54]line [11:18:54]line [11:18:54]written 0, free lines is 3249 [11:18:54]MH_Cut [11:18:54]Write to MH i2c: D1 01 00 3B 4E 01 5B [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: D1 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: D1 01 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: D1 01 00 3B 4E 00 5A [11:18:54]Write to MH i2c: 01 00 00 3C 4E 8A [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]Connected sock=9 [11:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 19 0F 24 01 2B FE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A4 D8 C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C2 00 00 35 04 06 00 EE 59 7E 32 D9 77 29 5C 48 F8 7F DD 02 79 [11:18:54]*** Cut start [11:18:54]*** Purtial cut [11:18:54]*** Stage 1: CUTSNS_PIN = 1 [11:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 59 03 47 00 9C FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C2 00 00 F4 03 04 00 DE 83 C1 66 B6 04 01 00 00 61 C0 D4 95 96 AE C1 33 [11:18:55]CommunicateWithHost err = 0 [11:18:55]CheckOFDResponse [11:18:55]1017 (14) - 77093643461234 [11:18:55]1041 (16) - 0000000000871800 [11:18:55]1040 (4) - 49790 [11:18:55]1012 (4) - 18.08.2024 05:17 [11:18:55]1206 (1) - 0 [11:18:55]OFD Sender: Remove packet 49790 [11:18:55]ProducePacketName [11:18:55]name=ofd_packets/00049790 [11:18:55]NVStorageDeleteData [11:18:55]Read from MH i2c: 01 [11:18:55]MH_I2C_Read... [11:18:55]*** Stop cut motor [11:18:55]*** Cut end [11:18:55]Read from MH i2c: 01 07 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: 01 07 00 3C 4E 00 00 00 00 00 FF 0F 9F [11:18:55]process_action close_receipt done [11:18:55]requested_data is exist [11:18:55]produce_requested_data [11:18:55]requested_item fm.sn is exist - process it [11:18:55]wFMCommunicate request_size=4 [11:18:55]MH_SAM_APDU [11:18:55]CAPDU: 80 11 00 00 [11:18:55]Write to MH i2c: E2 08 00 3D 4E 80 11 00 00 00 00 00 00 05 [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:55]Read from MH i2c: E2 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 17 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 17 00 3D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 50 [11:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:18:55]wFMCommunicate OK [11:18:55]requested_item fd.num is exist - process it [11:18:55]SAM_PROTO_GetFieldsCounters [11:18:55]wFMCommunicate request_size=4 [11:18:55]MH_SAM_APDU [11:18:55]CAPDU: 80 13 00 00 [11:18:55]Write to MH i2c: E2 08 00 3E 4E 80 13 00 00 00 00 00 00 08 [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:55]Read from MH i2c: E2 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 62 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 62 00 3E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [11:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:55]wFMCommunicate OK [11:18:55]SAM_PROTO_GetFieldsCounters done [11:18:55]requested_item shift.num is exist - process it [11:18:55]requested_item shift.opened is exist - process it [11:18:55]req_shift_opened [11:18:55]FM_GetShiftState [11:18:55]SAM_PROTO_GetShiftState [11:18:55]wFMCommunicate request_size=4 [11:18:55]MH_SAM_APDU [11:18:55]CAPDU: 80 13 01 00 [11:18:55]Write to MH i2c: E2 08 00 3F 4E 80 13 01 00 00 00 00 00 0A [11:18:55]Write i2c OK [11:18:55]MH_I2C_Read... [11:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:55]Read from MH i2c: E2 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 0E 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 0E 00 3F 4E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 27 [11:18:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:18:55]wFMCommunicate OK [11:18:55]SAM_PROTO_GetShiftState done [11:18:55]FM_GetShiftState done [11:18:55]req_shift_opened done [11:18:55]requested_item shift.open_date is exist - process it [11:18:55]req_shift_open_date [11:18:55]req_shift_open_date done [11:18:55]produce_requested_data done [11:18:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49790,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:18:55]process_action_free close_receipt [11:18:55]json_value_free [11:18:55]json_value_free done [11:18:55]process_json_proto returns [11:18:55]Send response to host [11:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49790,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:18:55]free response buf [11:18:55]execute_script done [11:18:55]execute_script returns [11:18:55]free content buf [11:18:55]Sock 10.Close socket [11:18:55]Sock 10.Thread stoped [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]recv_with_timeout no data received [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:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21: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]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 49 4E 00 90 00 0B [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]wFMCommunicate request_size=13 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 15 02 00 08 F4 03 04 00 B2 DA C1 66 [11:27:38]Write to MH i2c: E2 10 00 4A 4E 80 15 02 00 08 00 F4 03 04 00 B2 DA C1 66 00 00 D6 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 4A 4E 00 90 00 0C [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]wFMCommunicate request_size=25 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [11:27:38]Write to MH i2c: E2 1C 00 4B 4E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 7C [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 4B 4E 00 90 00 0D [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 15 03 00 [11:27:38]Write to MH i2c: E2 08 00 4C 4E 80 15 03 00 00 00 00 00 1B [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 40 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 40 00 4C 4E 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 39 00 00 00 35 04 06 00 77 1B B7 59 4A 27 90 00 69 [11:27:38]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 39 00 00 00 35 04 06 00 77 1B B7 59 4A 27 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_ProcessDocument answer len = 59 [11:27:38]SAM_PROTO_ProcessDocument done [11:27:38]SetTLVBufToDocument [11:27:38]Processing tag 1209 (04B9) [11:27:38]Malloc new data [11:27:38]Processing tag 1041 (0411) [11:27:38]Processing tag 1040 (0410) [11:27:38]Malloc new data [11:27:38]Processing tag 1038 (040E) [11:27:38]Malloc new data [11:27:38]Processing tag 1042 (0412) [11:27:38]Malloc new data [11:27:38]Processing tag 1077 (0435) [11:27:38]Malloc new data [11:27:38]SetTLVBufToDocument err=0 [11:27:38]KKMLoadAndSignReceiptData store KKM data [11:27:38]KKMLoadAndSignReceiptData err=0 [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 11 00 00 [11:27:38]Write to MH i2c: E2 08 00 4D 4E 80 11 00 00 00 00 00 00 15 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 17 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 17 00 4D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [11:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:27:38]wFMCommunicate OK [11:27:38]Счет N : (3)189969 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 57 18.08.2024 11:27 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49791 ФПД: 130960923904551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112746&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49791&fm=130960923904551&tin=02508201610067®Number=0000000000092546&sum=28000 0 [11:27:38]StoreToDocumentArchive [11:27:38]shift 466 fd 49791 [11:27:38]save to /storage/0466/doc_00049791 [11:27:38]save last doc name /storage/0466/doc_00049791 to /storage/kkm_last_doc_name [11:27:38]save OK [11:27:38]Clear old archive folders... [11:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:27:38]tlvbuf is 01895AE0 [11:27:38]SAM_PROTO_ClearQueue [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 09 00 00 [11:27:38]Write to MH i2c: E2 08 00 4E 4E 80 09 00 00 00 00 00 00 0E [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 4E 4E 00 90 00 10 [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_ClearQueue done [11:27:38]KKMCreateOFDPacket [11:27:38]OFDProtocolAddRootSTLVToBuf [11:27:38]FM_MakeSignedData [11:27:38]FM_MakeSignedData [11:27:38]SAM_PROTO_SignData [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 0D 01 02 [11:27:38]Write to MH i2c: E2 08 00 4F 4E 80 0D 01 02 00 00 00 00 16 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 03 00 4F 4E 00 90 00 11 [11:27:38]RAPDU: 90 00 [11:27:38]wFMCommunicate OK [11:27:38]wFMCommunicate request_size=255 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B2 DA C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [11:27:38]Write to MH i2c: E2 02 01 50 4E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B2 DA C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 BC [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 50 4E 00 90 00 12 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=32 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 35 04 06 00 77 1B B7 59 4A 27 [11:27:39]Write to MH i2c: E2 23 00 51 4E 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 35 04 06 00 77 1B B7 59 4A 27 00 00 C2 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 51 4E 00 90 00 13 [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 03 02 [11:27:39]Write to MH i2c: E2 08 00 52 4E 80 0D 03 02 00 00 00 00 1B [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 52 4E 00 2D 83 F3 E5 A7 FE 29 84 90 00 F6 [11:27:39]RAPDU: 2D 83 F3 E5 A7 FE 29 84 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_SignData done [11:27:39]FM_MakeSignedData done [11:27:39]CreateOFDProtocolMessage [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 53 4E 80 11 00 00 00 00 00 00 1B [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 53 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:27:39]wFMCommunicate OK [11:27:39]CreateOFDProtocolMessage done [11:27:39]OFDSenderStorePacket 49791 [11:27:39]StoreOFDPacket docnum=49791 [11:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 3E FF 1D 01 54 C2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B2 DA C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 35 04 06 00 77 1B B7 59 4A 27 2D 83 F3 E5 A7 FE 29 84 [11:27:39]CheckFolder [11:27:39]dirname=/storage/ofd_packets [11:27:39]CheckFolder done [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00049791 [11:27:39]NVStorageSaveData ofd_packets/00049791 [11:27:39]File name is /storage/ofd_packets/00049791 [11:27:39]Write 323 bytes [11:27:39]NVStorageSaveData done [11:27:39]OFDSenderStorePacket done [11:27:39]KKMCreateOFDPacket done [11:27:39]NVStorageSaveData kkm_last_timestamp [11:27:39]File name is /storage/kkm_last_timestamp [11:27:39]Write 4 bytes [11:27:39]NVStorageSaveData done [11:27:39]ExternCall_PrintAddStr [11:27:39]wPrintStart [11:27:39]Write to MH i2c: 01 00 00 54 4E A2 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 54 4E 00 00 00 00 00 FF 0F B7 [11:27:39]RasterBufferAndPrint [11:27:39]line Счет N : (3)189969 [11:27:39]line ИНН: 02508201610067 [11:27:39]line Контрольно-Кассовый Чек [11:27:39]line ПРОДАЖА [11:27:39]line Товар: 48743570 [11:27:39]line Сигареты Winston XStyle Blue [11:27:39]line 2.000 * 140.00 [11:27:39]line = 280.00 [11:27:39]line НДС 12% НСП 1% [11:27:39]line > о реализуемом товаре [11:27:39]line ИТОГО: 280.00 [11:27:39]line НСП 1% : 2.48 [11:27:39]line НДС 12% : 29.73 [11:27:39]line Наличными: 280.00 [11:27:39]line Безнал.: 0.00 [11:27:39]line Место: АЗС № 95 "Партнер Нефть" [11:27:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:27:39]line СНО: Общий режим [11:27:39]line Чек 57 18.08.2024 11:27 [11:27:39]line Смена: 466 ФФД: 1.0 [11:27:39]line ЗНМ: 0300000078 [11:27:39]line РНМ: 0000000000092546 [11:27:39]line Версия ККМ: 001 [11:27:39]line ФМ: 0000000000871800 [11:27:39]line ФД: 49791 [11:27:39]line ФПД: 130960923904551 [11:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112746&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49791&fm=130960923904551&tin=02508201610067®Number=0000000000092546&sum=28000 [11:27:39]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00049791 [11:27:39]OFD Sender: To server: pG, [11:27:39]CommunicateWithHost lk.salyk.kg:30040 [11:27:39]ConnectInit lk.salyk.kg [11:27:39]line 0 [11:27:39]written 0, free lines is 4095 [11:27:39]Write to MH i2c: 01 00 00 7C 4E CA [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 7C 4E 00 00 00 00 00 E1 0C BE [11:27:39]RasterBufferAndPrint [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]line [11:27:39]written 0, free lines is 3303 [11:27:39]MH_Cut [11:27:39]Write to MH i2c: D1 01 00 83 4E 01 A3 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 83 4E 00 A2 [11:27:40]Write to MH i2c: 01 00 00 84 4E D2 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** Cut start [11:27:40]*** Purtial cut [11:27:40]*** CUTSNS_PIN = 0 [11:27:40]*** Stage 1: CUTSNS_PIN = 1 [11:27:42]Read from MH i2c: 01 [11:27:42]MH_I2C_Read... [11:27:42]*** Stop cut motor [11:27:42]*** Cut end [11:27:42]Read from MH i2c: 01 07 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 07 00 84 4E 00 00 00 00 00 FF 0F E7 [11:27:42]process_action close_receipt done [11:27:42]requested_data is exist [11:27:42]produce_requested_data [11:27:42]requested_item fm.sn is exist - process it [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 11 00 00 [11:27:42]Write to MH i2c: E2 08 00 85 4E 80 11 00 00 00 00 00 00 4D [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 85 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [11:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:27:42]wFMCommunicate OK [11:27:42]requested_item fd.num is exist - process it [11:27:42]SAM_PROTO_GetFieldsCounters [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 13 00 00 [11:27:42]Write to MH i2c: E2 08 00 86 4E 80 13 00 00 00 00 00 00 50 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 62 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 62 00 86 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_GetFieldsCounters done [11:27:43]requested_item shift.num is exist - process it [11:27:43]requested_item shift.opened is exist - process it [11:27:43]req_shift_opened [11:27:43]FM_GetShiftState [11:27:43]SAM_PROTO_GetShiftState [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 13 01 00 [11:27:43]Write to MH i2c: E2 08 00 87 4E 80 13 01 00 00 00 00 00 52 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0E 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0E 00 87 4E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6F [11:27:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_GetShiftState done [11:27:43]FM_GetShiftState done [11:27:43]req_shift_opened done [11:27:43]requested_item shift.open_date is exist - process it [11:27:43]req_shift_open_date [11:27:43]req_shift_open_date done [11:27:43]produce_requested_data done [11:27:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49791,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [11:27:43]process_action_free close_receipt [11:27:43]json_value_free [11:27:43]json_value_free done [11:27:43]process_json_proto returns [11:27:43]Send response to host [11:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49791,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [11:27:43]free response buf [11:27:43]execute_script done [11:27:43]execute_script returns [11:27:43]free content buf [11:27:43]Sock 7.Close socket [11:27:43]Sock 7.Thread stoped [11:27:44]ConnectInit Can't take IP for lk.salyk.kg [11:27:44]CommunicateWithHost connect error [11:27:44]CommunicateWithHost err = -1 [11:27:44]OFD Sender: Server communicate error [11:27:49]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:27:49]ProducePacketName [11:27:49]name=ofd_packets/00049791 [11:27:49]OFD Sender: To server: pG, [11:27:49]CommunicateWithHost lk.salyk.kg:30040 [11:27:49]ConnectInit lk.salyk.kg [11:27:54]ConnectInit Can't take IP for lk.salyk.kg [11:27:54]CommunicateWithHost connect error [11:27:54]CommunicateWithHost err = -1 [11:27:54]OFD Sender: Server communicate error [11:27:59]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:27:59]ProducePacketName [11:27:59]name=ofd_packets/00049791 [11:27:59]OFD Sender: To server: pG, [11:27:59]CommunicateWithHost lk.salyk.kg:30040 [11:27:59]ConnectInit lk.salyk.kg [11:28:04]ConnectInit Can't take IP for lk.salyk.kg [11:28:04]CommunicateWithHost connect error [11:28:04]CommunicateWithHost err = -1 [11:28:04]OFD Sender: Server communicate error [11:28:09]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00049791 [11:28:09]OFD Sender: To server: pG, [11:28:09]CommunicateWithHost lk.salyk.kg:30040 [11:28:09]ConnectInit lk.salyk.kg [11:28:14]ConnectInit Can't take IP for lk.salyk.kg [11:28:14]CommunicateWithHost connect error [11:28:14]CommunicateWithHost err = -1 [11:28:14]OFD Sender: Server communicate error [11:28:19]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:19]ProducePacketName [11:28:19]name=ofd_packets/00049791 [11:28:19]OFD Sender: To server: pG, [11:28:19]CommunicateWithHost lk.salyk.kg:30040 [11:28:19]ConnectInit lk.salyk.kg [11:28:24]ConnectInit Can't take IP for lk.salyk.kg [11:28:24]CommunicateWithHost connect error [11:28:24]CommunicateWithHost err = -1 [11:28:24]OFD Sender: Server communicate error [11:28:29]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:29]ProducePacketName [11:28:29]name=ofd_packets/00049791 [11:28:29]OFD Sender: To server: pG, [11:28:29]CommunicateWithHost lk.salyk.kg:30040 [11:28:29]ConnectInit lk.salyk.kg [11:28:34]ConnectInit Can't take IP for lk.salyk.kg [11:28:34]CommunicateWithHost connect error [11:28:34]CommunicateWithHost err = -1 [11:28:34]OFD Sender: Server communicate error [11:28:39]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00049791 [11:28:39]OFD Sender: To server: pG, [11:28:39]CommunicateWithHost lk.salyk.kg:30040 [11:28:39]ConnectInit lk.salyk.kg [11:28:44]ConnectInit Can't take IP for lk.salyk.kg [11:28:44]CommunicateWithHost connect error [11:28:44]CommunicateWithHost err = -1 [11:28:44]OFD Sender: Server communicate error [11:28:49]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:49]ProducePacketName [11:28:49]name=ofd_packets/00049791 [11:28:49]OFD Sender: To server: pG, [11:28:49]CommunicateWithHost lk.salyk.kg:30040 [11:28:49]ConnectInit lk.salyk.kg [11:28:54]ConnectInit Can't connect to host [11:28:54]ConnectInit Can't take IP for lk.salyk.kg [11:28:54]CommunicateWithHost connect error [11:28:54]CommunicateWithHost err = -1 [11:28:54]OFD Sender: Server communicate error [11:28:59]ConnectInit Can't connect to host [11:28:59]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:28:59]ProducePacketName [11:28:59]name=ofd_packets/00049791 [11:28:59]OFD Sender: To server: pG, [11:28:59]CommunicateWithHost lk.salyk.kg:30040 [11:28:59]ConnectInit lk.salyk.kg [11:29:04]ConnectInit Can't take IP for lk.salyk.kg [11:29:04]CommunicateWithHost connect error [11:29:04]CommunicateWithHost err = -1 [11:29:04]OFD Sender: Server communicate error [11:29:09]OFD Sender: Processing packet 49791 [packets to send 21, broken 20] [11:29:09]ProducePacketName [11:29:09]name=ofd_packets/00049791 [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: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 49791 [packets to send 21, broken 20] [11:29:19]ProducePacketName [11:29:19]name=ofd_packets/00049791 [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 49791 [packets to send 21, broken 20] [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00049791 [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 49791 [packets to send 21, broken 20] [11:29:39]ProducePacketName [11:29:39]name=ofd_packets/00049791 [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:42]Connected sock=7 [11:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 3E FF 1D 01 54 C2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B2 DA C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 35 04 06 00 77 1B B7 59 4A 27 2D 83 F3 E5 A7 FE 29 84 [11:29:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 58 01 47 00 7B 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C2 00 00 F4 03 04 00 66 86 C1 66 B6 04 01 00 00 AD 2C 88 17 93 F1 9A 5E [11:29:42]CommunicateWithHost err = 0 [11:29:42]CheckOFDResponse [11:29:42]1017 (14) - 77093643461234 [11:29:42]1041 (16) - 0000000000871800 [11:29:42]1040 (4) - 49791 [11:29:42]1012 (4) - 18.08.2024 05:28 [11:29:42]1206 (1) - 0 [11:29:42]OFD Sender: Remove packet 49791 [11:29:42]ProducePacketName [11:29:42]name=ofd_packets/00049791 [11:29:42]NVStorageDeleteData [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:12]accept exits with 10 [11:30:12]New connection [11:30:12]New thread 3066944868 created [11:30:12]Thread 3066801508 joined [11:30:12]Waiting for new connection... [11:30:12] Sock 10.Parse request [11:30:12]Sock 10.Check first char [11:30:12]Sock 10.First char is OK [11:30:12]request: POST /json_proto HTTP/1.0 [11:30:12]Method: POST [11:30:12]URL: /json_proto [11:30:12]Method is POST - this is cgi request [11:30:12]url: /json_proto [11:30:12]query_string will be loaded in cgi processing [11:30:12]execute_cgi json_proto POST (null) [11:30:12]execute_cgi path=json_proto method=POST [11:30:12]POST find Content-Length [11:30:12]Host: 172.17.46.196:8080 [11:30:12]Content-Length: 659 [11:30:12]Content-Type: application/json [11:30:12] [11:30:12]POST finish read [11:30:12]Found Content-Length = 659 [11:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189970", "tax_sys" : 0, "items" : [ { "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:12]execute_script... [11:30:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189970", "tax_sys" : 0, "items" : [ { "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:12]POST & json_proto [11:30:12]process_json_proto [11:30:12]json parsed OK: [11:30:12]protocol is kg_v1.0 [11:30:12]action value=close_receipt [11:30:12]process_action close_receipt [11:30:12]cmd_close_receipt [11:30:12]MH_GetDate [11:30:12]Write to MH i2c: F0 00 00 88 4E C5 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: F0 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: F0 09 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: F0 09 00 88 4E 00 4D DB C1 66 07 E8 5D 66 CF [11:30:12]GetLastDocTimeStamp 1723980466 [11:30:12]current date 1723980621 [11:30:12]FM_GetShiftState [11:30:12]SAM_PROTO_GetShiftState [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 13 01 00 [11:30:12]Write to MH i2c: E2 08 00 89 4E 80 13 01 00 00 00 00 00 54 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0E 00 89 4E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 71 [11:30:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_GetShiftState done [11:30:12]FM_GetShiftState done [11:30:12]opened in 1723939759 [11:30:12]opened+sec_in_day 1724026159 [11:30:12]quantity*price = 9000 [11:30:12]sum+1 = 9001 [11:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 58 18.08.2024 11:30 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49792 ФПД: 172707871271714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113021&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49792&fm=172707871271714&tin=02508201610067®Number=0000000000092546&sum=9000 0 [11:30:13]StoreToDocumentArchive [11:30:13]shift 466 fd 49792 [11:30:13]save to /storage/0466/doc_00049792 [11:30:13]save last doc name /storage/0466/doc_00049792 to /storage/kkm_last_doc_name [11:30:13]save OK [11:30:13]Clear old archive folders... [11:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:30:13]tlvbuf is B6DA6890 [11:30:13]SAM_PROTO_ClearQueue [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 09 00 00 [11:30:13]Write to MH i2c: E2 08 00 96 4E 80 09 00 00 00 00 00 00 56 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 96 4E 00 90 00 58 [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_ClearQueue done [11:30:13]KKMCreateOFDPacket [11:30:13]OFDProtocolAddRootSTLVToBuf [11:30:13]FM_MakeSignedData [11:30:13]FM_MakeSignedData [11:30:13]SAM_PROTO_SignData [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 0D 01 02 [11:30:13]Write to MH i2c: E2 08 00 97 4E 80 0D 01 02 00 00 00 00 5E [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 97 4E 00 90 00 59 [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=255 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 4D DB C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [11:30:13]Write to MH i2c: E2 02 01 98 4E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 4D DB C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 4C [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 98 4E 00 90 00 5A [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=41 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C2 00 00 35 04 06 00 9D 13 AF 51 2B 22 [11:30:14]Write to MH i2c: E2 2C 00 99 4E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C2 00 00 35 04 06 00 9D 13 AF 51 2B 22 00 00 67 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 99 4E 00 90 00 5B [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 03 02 [11:30:14]Write to MH i2c: E2 08 00 9A 4E 80 0D 03 02 00 00 00 00 63 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 0B 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 0B 00 9A 4E 00 DF F8 B7 A1 4C 65 11 B2 90 00 07 [11:30:14]RAPDU: DF F8 B7 A1 4C 65 11 B2 90 00 [11:30:14]wFMCommunicate OK [11:30:14]SAM_PROTO_SignData done [11:30:14]FM_MakeSignedData done [11:30:14]CreateOFDProtocolMessage [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 11 00 00 [11:30:14]Write to MH i2c: E2 08 00 9B 4E 80 11 00 00 00 00 00 00 63 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 17 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 17 00 9B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AE [11:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:30:14]wFMCommunicate OK [11:30:14]CreateOFDProtocolMessage done [11:30:14]OFDSenderStorePacket 49792 [11:30:14]StoreOFDPacket docnum=49792 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 10 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005725D4 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10+0=10 [00:00:09]*** BPK Status Register BPK_RDY = 0x2 [00:00:09]*** SEN State Register SEN_STATE = 0xff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 11 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 0A 00 00 00 00 00 00 00 09 [00:00:10]Current date/time: 01.01.1970 00:00 [00:00:10]FM_Init [00:00:10]wFMConnect [00:00:10]MH_SAM_On [00:00:10]Write to MH i2c: E0 00 00 08 00 E7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_init finished! [00:00:10]*** atr: [00:00:10]*** 0F 3B D5 18 FF 81 91 FE [00:00:10]*** 1F C3 80 73 C8 21 10 0A [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]Read from MH i2c: E0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:10]wFMCommunicate request_size=10 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:00:10]wFMCommunicate OK [00:00:10]Detected FM SN is 0000000000871800 [00:00:10]Stored FM SN is 0000000000871800 [00:00:10]wFMCommunicate request_size=9 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 16 00 00 04 FC 74 01 00 [00:00:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FC 74 01 00 00 00 03 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]FM PIN OK [00:00:10]wFMCommunicate request_size=8 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 00 03 02 00 01 [00:00:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=13 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:10]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:00:10]wFMCommunicate OK [00:00:10]DocumentArchiveInit [00:00:10]Start Httpd... [00:00:10]Httpd thread 3067735396 created [00:00:10]Write to MH i2c: 01 00 00 0F 00 0F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:10]Allocated Socket 5 [00:00:10]Bind OK [00:00:10]Listen OK [00:00:10]httpd running on port 8080 [00:00:10]Waiting for new connection... [00:00:10]MH Int Process started [00:00:10]OFD Sender: Processing packet 49792 [packets to send 21, broken 20] [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00049792 [00:00:10]OFD Sender: To server: pG, [00:00:10]CommunicateWithHost lk.salyk.kg:30040 [00:00:10]ConnectInit lk.salyk.kg [00:00:10]Connected sock=7 [00:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 E2 FC 26 01 42 78 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 4D DB C1 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C2 00 00 35 04 06 00 9D 13 AF 51 2B 22 DF F8 B7 A1 4C 65 11 B2 [00:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 57 85 47 00 21 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C2 00 00 F4 03 04 00 21 96 C1 66 B6 04 01 00 00 27 48 78 0D F8 D9 F2 75 [00:00:10]CommunicateWithHost err = 0 [00:00:10]CheckOFDResponse [00:00:10]1017 (14) - 77093643461234 [00:00:10]1041 (16) - 0000000000871800 [00:00:10]1040 (4) - 49792 [00:00:10]1012 (4) - 18.08.2024 06:35 [00:00:10]1206 (1) - 0 [00:00:10]OFD Sender: Remove packet 49792 [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00049792 [00:00:10]NVStorageDeleteData [00:00:11]OFD Sender: No OFD packet to send [00:00:12]accept exits with 6 [00:00:12]New connection [00:00:12]New thread 3067448676 created [00:00:12]Waiting for new connection... [00:00:12] Sock 6.Parse request [00:00:12]Sock 6.Check first char [00:00:12]Sock 6.First char is OK [00:00:12]request: POST /json_proto HTTP/1.0 [00:00:12]Method: POST [00:00:12]URL: /json_proto [00:00:12]Method is POST - this is cgi request [00:00:12]url: /json_proto [00:00:12]query_string will be loaded in cgi processing [00:00:12]execute_cgi json_proto POST (null) [00:00:12]execute_cgi path=json_proto method=POST [00:00:12]POST find Content-Length [00:00:12]Host: 172.17.46.196:8080 [00:00:12]Content-Length: 215 [00:00:12]Content-Type: application/json [00:00:12] [00:00:12]POST finish read [00:00:12]Found Content-Length = 215 [00:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:12]execute_script... [00:00:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:12]POST & json_proto [00:00:12]process_json_proto [00:00:12]json parsed OK: [00:00:12]protocol is kg_v1.0 [00:00:12]action value=get_value [00:00:12]process_action get_value [00:00:12]cmd_get_value [00:00:12]process_action get_value done [00:00:12]requested_data is exist [00:00:12]produce_requested_data [00:00:12]requested_item kkm.sn is exist - process it [00:00:12]requested_item kkm.ver is exist - process it [00:00:12]requested_item fm.sn is exist - process it [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 11 00 00 [00:00:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 17 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [00:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:00:12]wFMCommunicate OK [00:00:12]requested_item fd.num is exist - process it [00:00:12]SAM_PROTO_GetFieldsCounters [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 13 00 00 [00:00:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 62 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 80 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [00:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 80 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:12]wFMCommunicate OK [00:00:12]SAM_PROTO_GetFieldsCounters done [00:00:12]requested_item shift.num is exist - process it [00:00:12]requested_item shift.opened is exist - process it [00:00:12]req_shift_opened [00:00:12]FM_GetShiftState [00:00:12]SAM_PROTO_GetShiftState [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 13 01 00 [00:00:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 0E 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AC [00:00:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [00:00:12]wFMCommunicate OK [00:00:12]SAM_PROTO_GetShiftState done [00:00:12]FM_GetShiftState done [00:00:12]req_shift_opened done [00:00:12]requested_item shift.open_date is exist - process it [00:00:12]req_shift_open_date [00:00:12]req_shift_open_date done [00:00:12]produce_requested_data done [00:00:12]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49792,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [00:00:12]process_action_free get_value [00:00:12]json_value_free [00:00:12]json_value_free done [00:00:12]process_json_proto returns [00:00:12]Send response to host [00:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49792,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [00:00:12]free response buf [00:00:12]execute_script done [00:00:12]execute_script returns [00:00:12]free content buf [00:00:12]Sock 6.Close socket [00:00:12]Sock 6.Thread stoped [00:00:12]accept exits with 7 [00:00:12]New connection [00:00:12]New thread 3067305316 created [00:00:12]Thread 3067448676 joined [00:00:12]Waiting for new connection... [00:00:12] Sock 7.Parse request [00:00:12]Sock 7.Check first char [00:00:12]Sock 7.First char is OK [00:00:12]request: POST /json_proto HTTP/1.0 [00:00:12]Method: POST [00:00:12]URL: /json_proto [00:00:12]Method is POST - this is cgi request [00:00:12]url: /json_proto [00:00:12]query_string will be loaded in cgi processing [00:00:12]execute_cgi json_proto POST (null) [00:00:12]execute_cgi path=json_proto method=POST [00:00:12]POST find Content-Length [00:00:12]Host: 172.17.46.196:8080 [00:00:12]Content-Length: 331 [00:00:12]Content-Type: application/json [00:00:12] [00:00:12]POST finish read [00:00:12]Found Content-Length = 331 [00:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:12]execute_script... [00:00:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:12]POST & json_proto [00:00:12]process_json_proto [00:00:12]json parsed OK: [00:00:12]protocol is kg_v1.0 [00:00:12]action value=get_value [00:00:12]process_action get_value [00:00:12]cmd_get_value [00:00:12]process_action get_value done [00:00:12]requested_data is exist [00:00:12]produce_requested_data [00:00:12]requested_item fm.sale.total is exist - process it [00:00:12]SAM_PROTO_GetFMData [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 13 03 00 [00:00:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 13 00 00 C0 04 85 04 BC 04 6E 04 04 00 DC BE 00 00 69 04 A0 00 6F 04 04 00 C9 BE 00 00 B1 04 04 00 4A D3 34 3D 70 04 04 00 CE F2 A5 34 72 04 04 00 7C E0 8E 08 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 E3 E8 7F 06 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 3A 94 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 39 [00:00:13]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 DC BE 00 00 69 04 A0 00 6F 04 04 00 C9 BE 00 00 B1 04 04 00 4A D3 34 3D 70 04 04 00 CE F2 A5 34 72 04 04 00 7C E0 8E 08 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 E3 E8 7F 06 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 3A 94 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [00:00:13]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 FD 00 15 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:00:13]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=4 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 17 00 00 [00:00:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 16 00 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [00:00:14]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 DD 00 17 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [00:00:14]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_GetFMData done [00:00:14]requested_item fm.sale_refund.total is exist - process it [00:00:14]requested_item fm.buy.total is exist - process it [00:00:14]requested_item shift.sale.total is exist - process it [00:00:14]SAM_PROTO_GetShiftData [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 13 02 00 [00:00:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 A4 7A 0E 70 04 03 00 48 74 0C 72 04 03 00 5C 06 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9A 89 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 30 [00:00:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 A4 7A 0E 70 04 03 00 48 74 0C 72 04 03 00 5C 06 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9A 89 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 17 00 00 [00:00:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [00:00:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [00:00:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [00:00:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:00:15]wFMCommunicate OK [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 17 00 00 [00:00:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:00:16]Read from MH i2c: E2 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 CB 00 [00:00:16]MH_I2C_Read... [00:00:16]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [00:00:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:16]wFMCommunicate OK [00:00:16]SAM_PROTO_GetShiftData done [00:00:16]requested_item shift.sale.total_cash is exist - process it [00:00:16]requested_item shift.sale_refund.total is exist - process it [00:00:16]requested_item shift.sale_refund.total_cash is exist - process it [00:00:16]requested_item shift.buy.total is exist - process it [00:00:16]requested_item shift.buy.total_cash is exist - process it [00:00:16]produce_requested_data done [00:00:16]produce_requested_data return {"fm.sale.total":10268721.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":9489.00,"shift.sale.total_cash":8162.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:00:16]process_action_free get_value [00:00:16]json_value_free [00:00:16]json_value_free done [00:00:16]process_json_proto returns [00:00:16]Send response to host [00:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10268721.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":9489.00,"shift.sale.total_cash":8162.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:00:16]free response buf [00:00:16]execute_script done [00:00:16]execute_script returns [00:00:16]free content buf [00:00:16]Sock 7.Close socket [00:00:16]Sock 7.Thread stoped [00:00:16]OFD Sender: No OFD packet to send [00:00:17]accept exits with 6 [00:00:17]New connection [00:00:17]New thread 3067448676 created [00:00:17]Thread 3067305316 joined [00:00:17]Waiting for new connection... [00:00:17] Sock 6.Parse request [00:00:17]Sock 6.Check first char [00:00:17]Sock 6.First char is OK [00:00:17]request: POST /json_proto HTTP/1.0 [00:00:17]Method: POST [00:00:17]URL: /json_proto [00:00:17]Method is POST - this is cgi request [00:00:17]url: /json_proto [00:00:17]query_string will be loaded in cgi processing [00:00:17]execute_cgi json_proto POST (null) [00:00:17]execute_cgi path=json_proto method=POST [00:00:17]POST find Content-Length [00:00:17]Host: 172.17.46.196:8080 [00:00:17]Content-Length: 727 [00:00:17]Content-Type: application/json [00:00:17] [00:00:17]POST finish read [00:00:17]Found Content-Length = 727 [00:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189971", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:17]execute_script... [00:00: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 : (3)189971", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:17]POST & json_proto [00:00:17]process_json_proto [00:00:17]json parsed OK: [00:00:17]protocol is kg_v1.0 [00:00:17]action value=close_receipt [00:00:17]process_action close_receipt [00:00:17]cmd_close_receipt [00:00:17]MH_GetDate [00:00:17]Write to MH i2c: F0 00 00 1D 00 0C [00:00:17]Write i2c OK [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 09 00 [00:00:17]MH_I2C_Read... [00:00:17]Read from MH i2c: F0 09 00 1D 00 00 11 00 00 00 00 00 00 00 26 [00:00:17]GetLastDocTimeStamp 1723980621 [00:00:17]current date 17 [00:00:17]curdatesum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 61 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49795 ФПД: 46707611977961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49795&fm=46707611977961&tin=02508201610067®Number=0000000000092546&sum=14000 0 [15:40:04]StoreToDocumentArchive [15:40:04]shift 466 fd 49795 [15:40:04]save to /storage/0466/doc_00049795 [15:40:04]save last doc name /storage/0466/doc_00049795 to /storage/kkm_last_doc_name [15:40:04]save OK [15:40:04]Clear old archive folders... [15:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:40:04]tlvbuf is 0059A590 [15:40:04]SAM_PROTO_ClearQueue [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 09 00 00 [15:40:04]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 03 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:40:04]RAPDU: 90 00 [15:40:04]wFMCommunicate OK [15:40:04]SAM_PROTO_ClearQueue done [15:40:04]KKMCreateOFDPacket [15:40:04]OFDProtocolAddRootSTLVToBuf [15:40:04]FM_MakeSignedData [15:40:04]FM_MakeSignedData [15:40:04]SAM_PROTO_SignData [15:40:04]wFMCommunicate request_size=4 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 0D 01 02 [15:40:04]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:04]Read from MH i2c: E2 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 03 00 [15:40:04]MH_I2C_Read... [15:40:04]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:40:04]RAPDU: 90 00 [15:40:04]wFMCommunicate OK [15:40:04]wFMCommunicate request_size=255 [15:40:04]MH_SAM_APDU [15:40:04]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D3 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [15:40:04]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D3 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 56 [15:40:04]Write i2c OK [15:40:04]MH_I2C_Read... [15:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:05]Read from MH i2c: E2 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 03 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:40:05]RAPDU: 90 00 [15:40:05]wFMCommunicate OK [15:40:05]wFMCommunicate request_size=34 [15:40:05]MH_SAM_APDU [15:40:05]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C2 00 00 35 04 06 00 2A 7A F6 9E C8 E9 [15:40:05]Write to MH i2c: E2 25 00 2E 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C2 00 00 35 04 06 00 2A 7A F6 9E C8 E9 00 00 8F [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:05]Read from MH i2c: E2 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 03 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:40:05]RAPDU: 90 00 [15:40:05]wFMCommunicate OK [15:40:05]wFMCommunicate request_size=4 [15:40:05]MH_SAM_APDU [15:40:05]CAPDU: 80 0D 03 02 [15:40:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:05]Read from MH i2c: E2 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 0B 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: E2 0B 00 2F 00 00 2A AB 10 54 B3 04 20 ED 90 00 A8 [15:40:05]RAPDU: 2A AB 10 54 B3 04 20 ED 90 00 [15:40:05]wFMCommunicate OK [15:40:05]SAM_PROTO_SignData done [15:40:05]FM_MakeSignedData done [15:40:05]CreateOFDProtocolMessage [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 30 00 80 11 00 00 00 00 00 00 AA [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 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [15:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:05]wFMCommunicate OK [15:40:05]CreateOFDProtocolMessage done [15:40:05]OFDSenderStorePacket 49795 [15:40:05]StoreOFDPacket docnum=49795 [15:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 A3 4E 1F 01 DB 22 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D3 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C2 00 00 35 04 06 00 2A 7A F6 9E C8 E9 2A AB 10 54 B3 04 20 ED [15:40:05]CheckFolder [15:40:05]dirname=/storage/ofd_packets [15:40:05]CheckFolder done [15:40:05]ProducePacketName [15:40:05]name=ofd_packets/00049795 [15:40:05]NVStorageSaveData ofd_packets/00049795 [15:40:05]File name is /storage/ofd_packets/00049795 [15:40:05]Write 325 bytes [15:40:05]NVStorageSaveData done [15:40:05]OFDSenderStorePacket done [15:40:05]KKMCreateOFDPacket done [15:40:05]NVStorageSaveData kkm_last_timestamp [15:40:05]File name is /storage/kkm_last_timestamp [15:40:05]Write 4 bytes [15:40:05]NVStorageSaveData done [15:40:05]ExternCall_PrintAddStr [15:40:05]wPrintStart [15:40:05]Write to MH i2c: 01 00 00 31 00 31 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: 01 [15:40:05]MH_I2C_Read... [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 31 00 00 00 00 00 00 FF 0F 46 [15:40:05]RasterBufferAndPrint [15:40:05]line Счет N : (3)189973 [15:40:05]line ИНН: 02508201610067 [15:40:05]line Контрольно-Кассовый Чек [15:40:05]line ПРОДАЖА [15:40:05]line Товар: 48743587 [15:40:05]line Сигареты Winston XStyle Silver [15:40:05]line 1.000 * 140.00 [15:40:05]line = 140.00 [15:40:05]line НДС 12% НСП 1% [15:40:05]line > о реализуемом товаре [15:40:05]line ИТОГО: 140.00 [15:40:05]line НСП 1% : 1.24 [15:40:05]line НДС 12% : 14.87 [15:40:05]line Наличными: 140.00 [15:40:05]line Безнал.: 0.00 [15:40:05]line Место: АЗС № 95 "Партнер Нефть" [15:40:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:05]line СНО: Общий режим [15:40:05]line Чек 61 18.08.2024 15:40 [15:40:05]line Смена: 466 ФФД: 1.0 [15:40:05]line ЗНМ: 0300000078 [15:40:05]line РНМ: 0000000000092546 [15:40:05]line Версия ККМ: 001 [15:40:05]line ФМ: 0000000000871800 [15:40:05]line ФД: 49795 [15:40:05]line ФПД: 46707611977961 [15:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49795&fm=46707611977961&tin=02508201610067®Number=0000000000092546&sum=14000 [15:40:05]line 0 [15:40:05]written 0, free lines is 4095 [15:40:05]OFD Sender: Processing packet 49795 [packets to send 21, broken 20] [15:40:05]ProducePacketName [15:40:05]name=ofd_packets/00049795 [15:40:05]OFD Sender: To server: pG, [15:40:05]CommunicateWithHost lk.salyk.kg:30040 [15:40:05]ConnectInit lk.salyk.kg [15:40:05]Write to MH i2c: 01 00 00 5A 00 5A [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: 01 [15:40:05]MH_I2C_Read... [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 5A 00 00 00 00 00 00 D6 0C 43 [15:40:05]RasterBufferAndPrint [15:40:05]line [15:40:05]line [15:40:05]line [15:40:05]line [15:40:05]line [15:40:05]written 0, free lines is 3309 [15:40:05]MH_Cut [15:40:05]Write to MH i2c: D1 01 00 61 00 01 33 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: D1 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: D1 01 00 [15:40:05]MH_I2C_Read... [15:40:05]Read from MH i2c: D1 01 00 61 00 00 32 [15:40:05]Write to MH i2c: 01 00 00 62 00 62 [15:40:05]Write i2c OK [15:40:05]MH_I2C_Read... [15:40:05]Connected sock=10 [15: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 38 30 30 27 01 00 00 A3 4E 1F 01 DB 22 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D3 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C2 00 00 35 04 06 00 2A 7A F6 9E C8 E9 2A AB 10 54 B3 04 20 ED [15: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 38 30 30 4F 00 00 00 93 60 47 00 77 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C2 00 00 F4 03 04 00 49 C0 C1 66 B6 04 01 00 00 2C 7C 4C EF 8B 17 BD 59 [15:40:06]CommunicateWithHost err = 0 [15:40:06]CheckOFDResponse [15:40:06]1017 (14) - 77093643461234 [15:40:06]1041 (16) - 0000000000871800 [15:40:06]1040 (4) - 49795 [15:40:06]1012 (4) - 18.08.2024 09:35 [15:40:06]1206 (1) - 0 [15:40:06]OFD Sender: Remove packet 49795 [15:40:06]ProducePacketName [15:40:06]name=ofd_packets/00049795 [15:40:06]NVStorageDeleteData [15:40:06]*** Cut start [15:40:06]*** Purtial cut [15:40:06]*** CUTSNS_PIN = 0 [15:40:06]*** Stage 1: CUTSNS_PIN = 1 [15:40:07]OFD Sender: No OFD packet to send [15:40:08]Read from MH i2c: 01 [15:40:08]MH_I2C_Read... [15:40:08]*** Stop cut motor [15:40:08]*** Cut end [15:40:08]Read from MH i2c: 01 07 00 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [15:40:08]process_action close_receipt done [15:40:08]requested_data is exist [15:40:08]produce_requested_data [15:40:08]requested_item fm.sn is exist - process it [15:40:08]wFMCommunicate request_size=4 [15:40:08]MH_SAM_APDU [15:40:08]CAPDU: 80 11 00 00 [15:40:08]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [15:40:08]Write i2c OK [15:40:08]MH_I2C_Read... [15:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:08]Read from MH i2c: E2 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 17 00 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [15:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:08]wFMCommunicate OK [15:40:08]requested_item fd.num is exist - process it [15:40:08]SAM_PROTO_GetFieldsCounters [15:40:08]wFMCommunicate request_size=4 [15:40:08]MH_SAM_APDU [15:40:08]CAPDU: 80 13 00 00 [15:40:08]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [15:40:08]Write i2c OK [15:40:08]MH_I2C_Read... [15:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:08]Read from MH i2c: E2 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 62 00 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 83 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 83 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:08]wFMCommunicate OK [15:40:08]SAM_PROTO_GetFieldsCounters done [15:40:08]requested_item shift.num is exist - process it [15:40:08]requested_item shift.opened is exist - process it [15:40:08]req_shift_opened [15:40:08]FM_GetShiftState [15:40:08]SAM_PROTO_GetShiftState [15:40:08]wFMCommunicate request_size=4 [15:40:08]MH_SAM_APDU [15:40:08]CAPDU: 80 13 01 00 [15:40:08]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [15:40:08]Write i2c OK [15:40:08]MH_I2C_Read... [15:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:08]Read from MH i2c: E2 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 0E 00 [15:40:08]MH_I2C_Read... [15:40:08]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FF [15:40:08]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:08]wFMCommunicate OK [15:40:08]SAM_PROTO_GetShiftState done [15:40:08]FM_GetShiftState done [15:40:08]req_shift_opened done [15:40:08]requested_item shift.open_date is exist - process it [15:40:08]req_shift_open_date [15:40:08]req_shift_open_date done [15:40:08]produce_requested_data done [15:40:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49795,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:08]process_action_free close_receipt [15:40:08]json_value_free [15:40:08]json_value_free done [15:40:08]process_json_proto returns [15:40:08]Send response to host [15:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49795,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:08]free response buf [15:40:08]execute_script done [15:40:08]execute_script returns [15:40:08]free content buf [15:40:08]Sock 5.Close socket [15:40:08]Sock 5.Thread stoped [15:40:12]OFD Sender: No OFD packet to send [15:40:12]accept exits with 9 [15:40:12]New connection [15:40:12]New thread 3067350372 created [15:40:12]Thread 3067493732 joined [15:40:12]Waiting for new connection... [15:40:12] Sock 9.Parse request [15:40:12]Sock 9.Check first char [15:40:12]Sock 9.First char is OK [15:40:12]request: POST /json_proto HTTP/1.0 [15:40:12]Method: POST [15:40:12]URL: /json_proto [15:40:12]Method is POST - this is cgi request [15:40:12]url: /json_proto [15:40:12]query_string will be loaded in cgi processing [15:40:12]execute_cgi json_proto POST (null) [15:40:12]execute_cgi path=json_proto method=POST [15:40:12]POST find Content-Length [15:40:12]Host: 172.17.46.196:8080 [15:40:12]Content-Length: 651 [15:40:12]Content-Type: application/json [15:40:12] [15:40:12]POST finish read [15:40:12]Found Content-Length = 651 [15:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189974", "tax_sys" : 0, "items" : [ { "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:12]execute_script... [15:40: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 : (3)189974", "tax_sys" : 0, "items" : [ { "code": "4870227272612", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:12]POST & json_proto [15:40:12]process_json_proto [15:40:12]json parsed OK: [15:40:12]protocol is kg_v1.0 [15:40:12]action value=close_receipt [15:40:12]process_action close_receipt [15:40:12]cmd_close_receipt [15:40:12]MH_GetDate [15:40:12]Write to MH i2c: F0 00 00 66 00 55 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 09 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 09 00 66 00 00 DD 15 C2 66 27 15 C2 66 DC [15:40:12]GetLastDocTimeStamp 1723995603 [15:40:12]current date 1723995613 [15:40:12]FM_GetShiftState [15:40:12]SAM_PROTO_GetShiftState [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 13 01 00 [15:40:12]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:12]Read from MH i2c: E2 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 0E 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 01 [15:40:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:12]wFMCommunicate OK [15:40:12]SAM_PROTO_GetShiftState done [15:40:12]FM_GetShiftState done [15:40:12]opened in 1723939759 [15:40:12]opened+sec_in_day 1724026159 [15:40:12]quantity*price = 5500 [15:40:12]sum+1 = 5501 [15:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 62 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49796 ФПД: 318602561769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154013&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49796&fm=318602561769&tin=02508201610067®Number=0000000000092546&sum=5500 0 [15:40:13]StoreToDocumentArchive [15:40:13]shift 466 fd 49796 [15:40:13]save to /storage/0466/doc_00049796 [15:40:13]save last doc name /storage/0466/doc_00049796 to /storage/kkm_last_doc_name [15:40:13]save OK [15:40:13]Clear old archive folders... [15:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:40:13]tlvbuf is 00555280 [15:40:13]SAM_PROTO_ClearQueue [15:40:13]wFMCommunicate request_size=4 [15:40:13]MH_SAM_APDU [15:40:13]CAPDU: 80 09 00 00 [15:40:13]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]SAM_PROTO_ClearQueue done [15:40:14]KKMCreateOFDPacket [15:40:14]OFDProtocolAddRootSTLVToBuf [15:40:14]FM_MakeSignedData [15:40:14]FM_MakeSignedData [15:40:14]SAM_PROTO_SignData [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 01 02 [15:40:14]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=255 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [15:40:14]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 D6 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=41 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C2 00 00 35 04 06 00 00 4A 2E 31 48 E9 [15:40:14]Write to MH i2c: E2 2C 00 77 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C2 00 00 35 04 06 00 00 4A 2E 31 48 E9 00 00 D8 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 03 02 [15:40:14]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 0B 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 0B 00 78 00 00 38 F8 A2 40 43 1E 2E 48 90 00 DD [15:40:14]RAPDU: 38 F8 A2 40 43 1E 2E 48 90 00 [15:40:14]wFMCommunicate OK [15:40:14]SAM_PROTO_SignData done [15:40:14]FM_MakeSignedData done [15:40:14]CreateOFDProtocolMessage [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 11 00 00 [15:40:14]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 17 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [15:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:14]wFMCommunicate OK [15:40:14]CreateOFDProtocolMessage done [15:40:14]OFDSenderStorePacket 49796 [15:40:14]StoreOFDPacket docnum=49796 [15:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 2D E8 26 01 F8 8E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C2 00 00 35 04 06 00 00 4A 2E 31 48 E9 38 F8 A2 40 43 1E 2E 48 [15:40:14]CheckFolder [15:40:14]dirname=/storage/ofd_packets [15:40:14]CheckFolder done [15:40:14]ProducePacketName [15:40:14]name=ofd_packets/00049796 [15:40:14]NVStorageSaveData ofd_packets/00049796 [15:40:14]File name is /storage/ofd_packets/00049796 [15:40:14]Write 332 bytes [15:40:14]NVStorageSaveData done [15:40:14]OFDSenderStorePacket done [15:40:14]KKMCreateOFDPacket done [15:40:14]NVStorageSaveData kkm_last_timestamp [15:40:14]File name is /storage/kkm_last_timestamp [15:40:14]Write 4 bytes [15:40:14]NVStorageSaveData done [15:40:14]ExternCall_PrintAddStr [15:40:14]wPrintStart [15:40:14]Write to MH i2c: 01 00 00 7A 00 7A [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 07 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [15:40:14]RasterBufferAndPrint [15:40:14]line Счет N : (3)189974 [15:40:14]line ИНН: 02508201610067 [15:40:14]line Контрольно-Кассовый Чек [15:40:14]line ПРОДАЖА [15:40:14]line Товар: 4870227272612 [15:40:14]line Лимонад Sunbel Тархун 0,5л [15:40:14]line 1.000 * 55.00 [15:40:14]line = 55.00 [15:40:14]line НДС 12% НСП 1% [15:40:14]line > о реализуемом товаре [15:40:14]line ИТОГО: 55.00 [15:40:14]line НСП 1% : 0.49 [15:40:14]line НДС 12% : 5.84 [15:40:14]line Наличными: 55.00 [15:40:14]line Безнал.: 0.00 [15:40:14]line Место: АЗС № 95 "Партнер Нефть" [15:40:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:14]line СНО: Общий режим [15:40:14]line Чек 62 18.08.2024 15:40 [15:40:14]line Смена: 466 ФФД: 1.0 [15:40:14]line ЗНМ: 0300000078 [15:40:14]line РНМ: 0000000000092546 [15:40:14]line Версия ККМ: 001 [15:40:14]line ФМ: 0000000000871800 [15:40:14]line ФД: 49796 [15:40:14]line ФПД: 318602561769 [15:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154013&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49796&fm=318602561769&tin=02508201610067®Number=0000000000092546&sum=5500 [15:40:14]line 0 [15:40:14]written 0, free lines is 4095 [15:40:14]OFD Sender: Processing packet 49796 [packets to send 21, broken 20] [15:40:14]ProducePacketName [15:40:14]name=ofd_packets/00049796 [15:40:14]OFD Sender: To server: pG, [15:40:14]CommunicateWithHost lk.salyk.kg:30040 [15:40:14]ConnectInit lk.salyk.kg [15:40:15]Connected sock=10 [15:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 2D E8 26 01 F8 8E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 31 32 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 DD 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C2 00 00 35 04 06 00 00 4A 2E 31 48 E9 38 F8 A2 40 43 1E 2E 48 [15:40:15]Write to MH i2c: 01 00 00 A2 00 A2 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 08 0D BE [15:40:15]RasterBufferAndPrint [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]written 0, free lines is 3363 [15:40:15]MH_Cut [15:40:15]Write to MH i2c: D1 01 00 A9 00 01 7B [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 01 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 01 00 A9 00 00 7A [15:40:15]Write to MH i2c: 01 00 00 AA 00 AA [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6B CD 47 00 2A 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 38 30 30 10 04 04 00 84 C2 00 00 F4 03 04 00 52 C0 C1 66 B6 04 01 00 00 82 F6 BF DA 70 8B C4 B1 [15:40:15]CommunicateWithHost err = 0 [15:40:15]CheckOFDResponse [15:40:15]1017 (14) - 77093643461234 [15:40:15]1041 (16) - 0000000000871800 [15:40:15]1040 (4) - 49796 [15:40:15]1012 (4) - 18.08.2024 09:35 [15:40:15]1206 (1) - 0 [15:40:15]OFD Sender: Remove packet 49796 [15:40:15]ProducePacketName [15:40:15]name=ofd_packets/00049796 [15:40:15]NVStorageDeleteData [15:40:16]*** Cut start [15:40:16]*** Purtial cut [15:40:16]*** Stage 1: CUTSNS_PIN = 1 [15:40:16]OFD Sender: No OFD packet to send [15:40:16]Read from MH i2c: 01 [15:40:16]MH_I2C_Read... [15:40:16]*** Stop cut motor [15:40:16]*** Cut end [15:40:16]Read from MH i2c: 01 07 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [15:40:16]process_action close_receipt done [15:40:16]requested_data is exist [15:40:16]produce_requested_data [15:40:16]requested_item fm.sn is exist - process it [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 11 00 00 [15:40:16]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 17 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [15:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:16]wFMCommunicate OK [15:40:16]requested_item fd.num is exist - process it [15:40:16]SAM_PROTO_GetFieldsCounters [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 13 00 00 [15:40:16]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 62 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 84 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 84 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:16]wFMCommunicate OK [15:40:16]SAM_PROTO_GetFieldsCounters done [15:40:16]requested_item shift.num is exist - process it [15:40:16]requested_item shift.opened is exist - process it [15:40:16]req_shift_opened [15:40:16]FM_GetShiftState [15:40:16]SAM_PROTO_GetShiftState [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 13 01 00 [15:40:16]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 47 [15:40:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:16]wFMCommunicate OK [15:40:16]SAM_PROTO_GetShiftState done [15:40:16]FM_GetShiftState done [15:40:16]req_shift_opened done [15:40:16]requested_item shift.open_date is exist - process it [15:40:16]req_shift_open_date [15:40:16]req_shift_open_date done [15:40:16]produce_requested_data done [15:40:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49796,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:16]process_action_free close_receipt [15:40:16]json_value_free [15:40:16]json_value_free done [15:40:16]process_json_proto returns [15:40:16]Send response to host [15:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49796,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:16]free response buf [15:40:16]execute_script done [15:40:16]execute_script returns [15:40:16]free content buf [15:40:16]Sock 9.Close socket [15:40:16]Sock 9.Thread stoped [15:40:17]accept exits with 8 [15:40:17]New connection [15:40:17]New thread 3067493732 created [15:40:17]Thread 3067350372 joined [15:40:17]Waiting for new connection... [15:40:17] Sock 8.Parse request [15:40:17]Sock 8.Check first char [15:40:17]Sock 8.First char is OK [15:40:17]request: POST /json_proto HTTP/1.0 [15:40:17]Method: POST [15:40:17]URL: /json_proto [15:40:17]Method is POST - this is cgi request [15:40:17]url: /json_proto [15:40:17]query_string will be loaded in cgi processing [15:40:17]execute_cgi json_proto POST (null) [15:40:17]execute_cgi path=json_proto method=POST [15:40:17]POST find Content-Length [15:40:17]Host: 172.17.46.196:8080 [15:40:17]Content-Length: 675 [15:40:17]Content-Type: application/json [15:40:17] [15:40:17]POST finish read [15:40:17]Found Content-Length = 675 [15:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189975", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:17]execute_script... [15:40: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 : (3)189975", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:17]POST & json_proto [15:40:17]process_json_proto [15:40:17]json parsed OK: [15:40:17]protocol is kg_v1.0 [15:40:17]action value=close_receipt [15:40:17]process_action close_receipt [15:40:17]cmd_close_receipt [15:40:17]MH_GetDate [15:40:17]Write to MH i2c: F0 00 00 AE 00 9D [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: F0 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: F0 09 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: F0 09 00 AE 00 00 E2 15 C2 66 27 15 C2 66 29 [15:40:17]GetLastDocTimeStamp 1723995613 [15:40:17]current date 1723995618 [15:40:17]FM_GetShiftState [15:40:17]SAM_PROTO_GetShiftState [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 13 01 00 [15:40:17]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 49 [15:40:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:18]wFMCommunicate OK [15:40:18]SAM_PROTO_GetShiftState done [15:40:18]FM_GetShiftState done [15:40:18]opened in 1723939759 [15:40:18]opened+sec_in_day 1724026159 [15:40:18]quantity*price = 12000 [15:40:18]sum+1 = 12001 [15:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 63 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49797 ФПД: 187284119511735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154018&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49797&fm=187284119511735&tin=02508201610067®Number=0000000000092546&sum=12000 0 [15:40:19]StoreToDocumentArchive [15:40:19]shift 466 fd 49797 [15:40:19]save to /storage/0466/doc_00049797 [15:40:19]save last doc name /storage/0466/doc_00049797 to /storage/kkm_last_doc_name [15:40:19]save OK [15:40:19]Clear old archive folders... [15:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:40:19]tlvbuf is 005502A0 [15:40:19]SAM_PROTO_ClearQueue [15:40:19]wFMCommunicate request_size=4 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 09 00 00 [15:40:19]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:19]Read from MH i2c: E2 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [15:40:19]RAPDU: 90 00 [15:40:19]wFMCommunicate OK [15:40:19]SAM_PROTO_ClearQueue done [15:40:19]KKMCreateOFDPacket [15:40:19]OFDProtocolAddRootSTLVToBuf [15:40:19]FM_MakeSignedData [15:40:19]FM_MakeSignedData [15:40:19]SAM_PROTO_SignData [15:40:19]wFMCommunicate request_size=4 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 0D 01 02 [15:40:19]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:19]Read from MH i2c: E2 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [15:40:19]RAPDU: 90 00 [15:40:19]wFMCommunicate OK [15:40:19]wFMCommunicate request_size=255 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E2 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [15:40:19]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E2 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 6C [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:19]Read from MH i2c: E2 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [15:40:19]RAPDU: 90 00 [15:40:19]wFMCommunicate OK [15:40:19]wFMCommunicate request_size=46 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C2 00 00 35 04 06 00 AA 55 7B 6A 62 B7 [15:40:19]Write to MH i2c: E2 31 00 BF 00 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C2 00 00 35 04 06 00 AA 55 7B 6A 62 B7 00 00 02 [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:19]Read from MH i2c: E2 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:40:19]RAPDU: 90 00 [15:40:19]wFMCommunicate OK [15:40:19]wFMCommunicate request_size=4 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 0D 03 02 [15:40:19]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:19]Read from MH i2c: E2 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 0B 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: E2 0B 00 C0 00 00 43 C1 37 B8 D5 DB 98 C5 90 00 3C [15:40:19]RAPDU: 43 C1 37 B8 D5 DB 98 C5 90 00 [15:40:19]wFMCommunicate OK [15:40:19]SAM_PROTO_SignData done [15:40:19]FM_MakeSignedData done [15:40:19]CreateOFDProtocolMessage [15:40:19]wFMCommunicate request_size=4 [15:40:19]MH_SAM_APDU [15:40:19]CAPDU: 80 11 00 00 [15:40:19]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:20]Read from MH i2c: E2 17 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [15:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:20]wFMCommunicate OK [15:40:20]CreateOFDProtocolMessage done [15:40:20]OFDSenderStorePacket 49797 [15:40:20]StoreOFDPacket docnum=49797 [15:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 97 E3 2B 01 CF C6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E2 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C2 00 00 35 04 06 00 AA 55 7B 6A 62 B7 43 C1 37 B8 D5 DB 98 C5 [15:40:20]CheckFolder [15:40:20]dirname=/storage/ofd_packets [15:40:20]CheckFolder done [15:40:20]ProducePacketName [15:40:20]name=ofd_packets/00049797 [15:40:20]NVStorageSaveData ofd_packets/00049797 [15:40:20]File name is /storage/ofd_packets/00049797 [15:40:20]Write 337 bytes [15:40:20]NVStorageSaveData done [15:40:20]OFDSenderStorePacket done [15:40:20]KKMCreateOFDPacket done [15:40:20]NVStorageSaveData kkm_last_timestamp [15:40:20]File name is /storage/kkm_last_timestamp [15:40:20]Write 4 bytes [15:40:20]NVStorageSaveData done [15:40:20]ExternCall_PrintAddStr [15:40:20]wPrintStart [15:40:20]Write to MH i2c: 01 00 00 C2 00 C2 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [15:40:20]RasterBufferAndPrint [15:40:20]line Счет N : (3)189975 [15:40:20]line ИНН: 02508201610067 [15:40:20]line Контрольно-Кассовый Чек [15:40:20]line ПРОДАЖА [15:40:20]line Товар: 5449000189332 [15:40:20]line Холодный чай Fuse персик 1л [15:40:20]line 1.000 * 120.00 [15:40:20]line = 120.00 [15:40:20]line НДС 12% НСП 1% [15:40:20]line > о реализуемом товаре [15:40:20]line ИТОГО: 120.00 [15:40:20]line НСП 1% : 1.06 [15:40:20]line НДС 12% : 12.74 [15:40:20]line Наличными: 120.00 [15:40:20]line Безнал.: 0.00 [15:40:20]line Место: АЗС № 95 "Партнер Нефть" [15:40:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:20]line СНО: Общий режим [15:40:20]line Чек 63 18.08.2024 15:40 [15:40:20]line Смена: 466 ФФД: 1.0 [15:40:20]line ЗНМ: 0300000078 [15:40:20]line РНМ: 0000000000092546 [15:40:20]line Версия ККМ: 001 [15:40:20]line ФМ: 0000000000871800 [15:40:20]line ФД: 49797 [15:40:20]line ФПД: 187284119511735 [15:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154018&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49797&fm=187284119511735&tin=02508201610067®Number=0000000000092546&sum=12000 [15:40:20]line 0 [15:40:20]written 0, free lines is 4095 [15:40:20]OFD Sender: Processing packet 49797 [packets to send 21, broken 20] [15:40:20]ProducePacketName [15:40:20]name=ofd_packets/00049797 [15:40:20]OFD Sender: To server: pG, [15:40:20]CommunicateWithHost lk.salyk.kg:30040 [15:40:20]ConnectInit lk.salyk.kg [15:40:20]Connected sock=10 [15:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 97 E3 2B 01 CF C6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 E2 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C2 00 00 35 04 06 00 AA 55 7B 6A 62 B7 43 C1 37 B8 D5 DB 98 C5 [15:40:20]Write to MH i2c: 01 00 00 EA 00 EA [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 04 0D 02 [15:40:20]RasterBufferAndPrint [15:40:20]line [15:40:20]line [15:40:20]line [15:40:20]line [15:40:20]line [15:40:20]written 0, free lines is 3361 [15:40:20]MH_Cut [15:40:20]Write to MH i2c: D1 01 00 F1 00 01 C3 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: D1 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: D1 01 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: D1 01 00 F1 00 00 C2 [15:40:20]Write to MH i2c: 01 00 00 F2 00 F2 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FE BC 47 00 F1 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C2 00 00 F4 03 04 00 57 C0 C1 66 B6 04 01 00 00 4B D1 C3 E6 82 AE 13 84 [15:40:20]CommunicateWithHost err = 0 [15:40:20]CheckOFDResponse [15:40:20]1017 (14) - 77093643461234 [15:40:20]1041 (16) - 0000000000871800 [15:40:20]1040 (4) - 49797 [15:40:20]1012 (4) - 18.08.2024 09:35 [15:40:20]1206 (1) - 0 [15:40:20]OFD Sender: Remove packet 49797 [15:40:20]ProducePacketName [15:40:20]name=ofd_packets/00049797 [15:40:20]NVStorageDeleteData [15:40:21]*** Cut start [15:40:21]*** Purtial cut [15:40:21]*** CUTSNS_PIN = 0 [15:40:21]OFD Sender: No OFD packet to send [15:40:21]*** Stage 1: CUTSNS_PIN = 1 [15:40:23]Read from MH i2c: 01 [15:40:23]MH_I2C_Read... [15:40:23]*** Stop cut motor [15:40:23]*** Cut end [15:40:23]Read from MH i2c: 01 07 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 FF 0F 07 [15:40:23]process_action close_receipt done [15:40:23]requested_data is exist [15:40:23]produce_requested_data [15:40:23]requested_item fm.sn is exist - process it [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 11 00 00 [15:40:23]Write to MH i2c: E2 08 00 F3 00 80 11 00 00 00 00 00 00 6D [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 17 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 17 00 F3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [15:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:23]wFMCommunicate OK [15:40:23]requested_item fd.num is exist - process it [15:40:23]SAM_PROTO_GetFieldsCounters [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 13 00 00 [15:40:23]Write to MH i2c: E2 08 00 F4 00 80 13 00 00 00 00 00 00 70 [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 62 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 62 00 F4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 85 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [15:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 85 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:23]wFMCommunicate OK [15:40:23]SAM_PROTO_GetFieldsCounters done [15:40:23]requested_item shift.num is exist - process it [15:40:23]requested_item shift.opened is exist - process it [15:40:23]req_shift_opened [15:40:23]FM_GetShiftState [15:40:23]SAM_PROTO_GetShiftState [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 13 01 00 [15:40:23]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0E 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8F [15:40:23]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:23]wFMCommunicate OK [15:40:23]SAM_PROTO_GetShiftState done [15:40:23]FM_GetShiftState done [15:40:23]req_shift_opened done [15:40:23]requested_item shift.open_date is exist - process it [15:40:23]req_shift_open_date [15:40:23]req_shift_open_date done [15:40:23]produce_requested_data done [15:40:23]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49797,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:23]process_action_free close_receipt [15:40:23]json_value_free [15:40:23]json_value_free done [15:40:23]process_json_proto returns [15:40:23]Send response to host [15:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49797,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:23]free response buf [15:40:23]execute_script done [15:40:23]execute_script returns [15:40:23]free content buf [15:40:23]Sock 8.Close socket [15:40:23]Sock 8.Thread stoped [15:40:24]accept exits with 9 [15:40:24]New connection [15:40:24]New thread 3067350372 created [15:40:24]Thread 3067493732 joined [15:40:24]Waiting for new connection... [15:40:24] Sock 9.Parse request [15:40:24]Sock 9.Check first char [15:40:24]Sock 9.First char is OK [15:40:24]request: POST /json_proto HTTP/1.0 [15:40:24]Method: POST [15:40:24]URL: /json_proto [15:40:24]Method is POST - this is cgi request [15:40:24]url: /json_proto [15:40:24]query_string will be loaded in cgi processing [15:40:24]execute_cgi json_proto POST (null) [15:40:24]execute_cgi path=json_proto method=POST [15:40:24]POST find Content-Length [15:40:24]Host: 172.17.46.196:8080 [15:40:24]Content-Length: 591 [15:40:24]Content-Type: application/json [15:40:24] [15:40:24]POST finish read [15:40:24]Found Content-Length = 591 [15:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189976", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:24]execute_script... [15:40: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 : (3)189976", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:24]POST & json_proto [15:40:24]process_json_proto [15:40:24]json parsed OK: [15:40:24]protocol is kg_v1.0 [15:40:24]action value=close_receipt [15:40:24]process_action close_receipt [15:40:24]cmd_close_receipt [15:40:24]MH_GetDate [15:40:24]Write to MH i2c: F0 00 00 F6 00 E5 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: F0 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: F0 09 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: F0 09 00 F6 00 00 E9 15 C2 66 27 15 C2 66 78 [15:40:24]GetLastDocTimeStamp 1723995618 [15:40:24]current date 1723995625 [15:40:24]FM_GetShiftState [15:40:24]SAM_PROTO_GetShiftState [15:40:24]wFMCommunicate request_size=4 [15:40:24]MH_SAM_APDU [15:40:24]CAPDU: 80 13 01 00 [15:40:24]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:24]Read from MH i2c: E2 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 0E 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 91 [15:40:24]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:24]wFMCommunicate OK [15:40:24]SAM_PROTO_GetShiftState done [15:40:24]FM_GetShiftState done [15:40:24]opened in 1723939759 [15:40:24]opened+sec_in_day 1724026159 [15:40:24]quantity*price = 4500 [15:40:24]sum+1 = 4501 [15:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 64 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49798 ФПД: 193036743098081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154025&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49798&fm=193036743098081&tin=02508201610067®Number=0000000000092546&sum=4500 0 [15:40:26]StoreToDocumentArchive [15:40:26]shift 466 fd 49798 [15:40:26]save to /storage/0466/doc_00049798 [15:40:26]save last doc name /storage/0466/doc_00049798 to /storage/kkm_last_doc_name [15:40:26]save OK [15:40:26]Clear old archive folders... [15:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:40:26]tlvbuf is 00550170 [15:40:26]SAM_PROTO_ClearQueue [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 09 00 00 [15:40:26]Write to MH i2c: E2 08 00 04 01 80 09 00 00 00 00 00 00 77 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]SAM_PROTO_ClearQueue done [15:40:26]KKMCreateOFDPacket [15:40:26]OFDProtocolAddRootSTLVToBuf [15:40:26]FM_MakeSignedData [15:40:26]FM_MakeSignedData [15:40:26]SAM_PROTO_SignData [15:40:26]wFMCommunicate request_size=4 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 01 02 [15:40:26]Write to MH i2c: E2 08 00 05 01 80 0D 01 02 00 00 00 00 7F [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:26]Read from MH i2c: E2 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [15:40:26]RAPDU: 90 00 [15:40:26]wFMCommunicate OK [15:40:26]wFMCommunicate request_size=255 [15:40:26]MH_SAM_APDU [15:40:26]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [15:40:26]Write to MH i2c: E2 02 01 06 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 6C [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [15:40:27]RAPDU: 90 00 [15:40:27]wFMCommunicate OK [15:40:27]wFMCommunicate request_size=25 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 86 C2 00 00 35 04 06 00 AF 90 DE 80 3E E1 [15:40:27]Write to MH i2c: E2 1C 00 07 01 80 0D 02 02 14 00 30 30 10 04 04 00 86 C2 00 00 35 04 06 00 AF 90 DE 80 3E E1 00 00 65 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [15:40:27]RAPDU: 90 00 [15:40:27]wFMCommunicate OK [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 0D 03 02 [15:40:27]Write to MH i2c: E2 08 00 08 01 80 0D 03 02 00 00 00 00 84 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0B 00 08 01 00 8D 09 78 A5 AE 0F 90 E5 90 00 6A [15:40:27]RAPDU: 8D 09 78 A5 AE 0F 90 E5 90 00 [15:40:27]wFMCommunicate OK [15:40:27]SAM_PROTO_SignData done [15:40:27]FM_MakeSignedData done [15:40:27]CreateOFDProtocolMessage [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 11 00 00 [15:40:27]Write to MH i2c: E2 08 00 09 01 80 11 00 00 00 00 00 00 84 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 09 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [15:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:27]wFMCommunicate OK [15:40:27]CreateOFDProtocolMessage done [15:40:27]OFDSenderStorePacket 49798 [15:40:27]StoreOFDPacket docnum=49798 [15:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 E8 21 16 01 B7 66 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 86 C2 00 00 35 04 06 00 AF 90 DE 80 3E E1 8D 09 78 A5 AE 0F 90 E5 [15:40:27]CheckFolder [15:40:27]dirname=/storage/ofd_packets [15:40:27]CheckFolder done [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00049798 [15:40:27]NVStorageSaveData ofd_packets/00049798 [15:40:27]File name is /storage/ofd_packets/00049798 [15:40:27]Write 316 bytes [15:40:27]NVStorageSaveData done [15:40:27]OFDSenderStorePacket done [15:40:27]KKMCreateOFDPacket done [15:40:27]NVStorageSaveData kkm_last_timestamp [15:40:27]File name is /storage/kkm_last_timestamp [15:40:27]Write 4 bytes [15:40:27]NVStorageSaveData done [15:40:27]ExternCall_PrintAddStr [15:40:27]wPrintStart [15:40:27]Write to MH i2c: 01 00 00 0A 01 0B [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 0A 01 00 00 00 00 00 FF 0F 20 [15:40:27]RasterBufferAndPrint [15:40:27]line Счет N : (3)189976 [15:40:27]line ИНН: 02508201610067 [15:40:27]line Контрольно-Кассовый Чек [15:40:27]line ПРОДАЖА [15:40:27]line Товар: 42069942 [15:40:27]line Жев Orbit White Fresh Mint [15:40:27]line 1.000 * 45.00 [15:40:27]line = 45.00 [15:40:27]line НДС 12% НСП 1% [15:40:27]line > о реализуемом товаре [15:40:27]line ИТОГО: 45.00 [15:40:27]line НСП 1% : 0.40 [15:40:27]line НДС 12% : 4.78 [15:40:27]line Наличными: 45.00 [15:40:27]line Безнал.: 0.00 [15:40:27]line Место: АЗС № 95 "Партнер Нефть" [15:40:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:27]line СНО: Общий режим [15:40:27]line Чек 64 18.08.2024 15:40 [15:40:27]line Смена: 466 ФФД: 1.0 [15:40:27]line ЗНМ: 0300000078 [15:40:27]line РНМ: 0000000000092546 [15:40:27]line Версия ККМ: 001 [15:40:27]line ФМ: 0000000000871800 [15:40:27]line ФД: 49798 [15:40:27]line ФПД: 193036743098081 [15:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154025&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49798&fm=193036743098081&tin=02508201610067®Number=0000000000092546&sum=4500 [15:40:27]line 0 [15:40:27]OFD Sender: Processing packet 49798 [packets to send 21, broken 20] [15:40:27]ProducePacketName [15:40:27]name=ofd_packets/00049798 [15:40:27]OFD Sender: To server: pG, [15:40:27]CommunicateWithHost lk.salyk.kg:30040 [15:40:27]ConnectInit lk.salyk.kg [15:40:27]written 0, free lines is 4095 [15:40:28]Write to MH i2c: 01 00 00 32 01 33 [15:40:28]Write i2c OK [15:40:28]MH_I2C_Read... [15:40:28]Connected sock=10 [15:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 E8 21 16 01 B7 66 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 Read from MH i2c: 01 01 0D [15:40:28]04 MH_I2C_Read... [15:40:28]10 00 30 30 30 30 30 30 Read from MH i2c: 30 01 07 00 [15:40:28]30 MH_I2C_Read... [15:40:28]30 Read from MH i2c: 30 01 30 07 39 00 32 32 35 34 01 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 00 00 EF 0C 35 [15:40:28]RasterBufferAndPrint [15:40:28]line [15:40:28]line [15:40:28]line [15:40:28]line [15:40:28]line [15:40:28]30 30 10 written 0, free lines is 3850 [15:40:28]04 04 00 86 C2 00 00 35 04 06 00 AF 90 DE 80 3E MH_Cut [15:40:28]E1 Write to MH i2c: 8D D1 09 01 78 00 A5 39 AE 01 0F 01 90 0C E5 [15:40:28] [15:40:28]Write i2c OK [15:40:28]MH_I2C_Read... [15:40:28]Read from MH i2c: D1 [15:40:28]MH_I2C_Read... [15:40:28]Read from MH i2c: D1 01 00 [15:40:28]MH_I2C_Read... [15:40:28]Read from MH i2c: D1 01 00 39 01 00 0B [15:40:28]Write to MH i2c: 01 00 00 3A 01 3B [15:40:28]Write i2c OK [15:40:28]MH_I2C_Read... [15:40:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 BD 47 00 DC 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 38 30 30 10 04 04 00 86 C2 00 00 F4 03 04 00 5F C0 C1 66 B6 04 01 00 00 D0 08 A7 55 82 BD 6F 61 [15:40:28]CommunicateWithHost err = 0 [15:40:28]CheckOFDResponse [15:40:28]*** Cut start [15:40:28]1017 (14) - 77093643461234 [15:40:28]1041 (16) - 0000000000871800 [15:40:28]*** Purtial cut [15:40:28]1040 (4) - 49798 [15:40:28]*** Stage 1: CUTSNS_PIN = 1 [15:40:28]1012 (4) - 18.08.2024 09:35 [15:40:28]1206 (1) - 0 [15:40:28]OFD Sender: Remove packet 49798 [15:40:28]ProducePacketName [15:40:28]name=ofd_packets/00049798 [15:40:28]NVStorageDeleteData [15:40:29]Read from MH i2c: 01 [15:40:29]MH_I2C_Read... [15:40:29]*** Stop cut motor [15:40:29]*** Cut end [15:40:29]Read from MH i2c: 01 07 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 FF 0F 50 [15:40:29]process_action close_receipt done [15:40:29]requested_data is exist [15:40:29]produce_requested_data [15:40:29]requested_item fm.sn is exist - process it [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 11 00 00 [15:40:29]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 01 [15:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:29]wFMCommunicate OK [15:40:29]requested_item fd.num is exist - process it [15:40:29]SAM_PROTO_GetFieldsCounters [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 00 00 [15:40:29]Write to MH i2c: E2 08 00 3C 01 80 13 00 00 00 00 00 00 B9 [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]OFD Sender: No OFD packet to send [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:29]Read from MH i2c: E2 62 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 62 00 3C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 86 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 86 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetFieldsCounters done [15:40:29]requested_item shift.num is exist - process it [15:40:29]requested_item shift.opened is exist - process it [15:40:29]req_shift_opened [15:40:29]FM_GetShiftState [15:40:29]SAM_PROTO_GetShiftState [15:40:29]wFMCommunicate request_size=4 [15:40:29]MH_SAM_APDU [15:40:29]CAPDU: 80 13 01 00 [15:40:29]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [15:40:29]Write i2c OK [15:40:29]MH_I2C_Read... [15:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:29]Read from MH i2c: E2 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 [15:40:29]MH_I2C_Read... [15:40:29]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D8 [15:40:29]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:29]wFMCommunicate OK [15:40:29]SAM_PROTO_GetShiftState done [15:40:29]FM_GetShiftState done [15:40:29]req_shift_opened done [15:40:29]requested_item shift.open_date is exist - process it [15:40:29]req_shift_open_date [15:40:29]req_shift_open_date done [15:40:29]produce_requested_data done [15:40:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49798,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:29]process_action_free close_receipt [15:40:29]json_value_free [15:40:29]json_value_free done [15:40:29]process_json_proto returns [15:40:29]Send response to host [15:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49798,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:29]free response buf [15:40:29]execute_script done [15:40:29]execute_script returns [15:40:29]free content buf [15:40:29]Sock 9.Close socket [15:40:29]Sock 9.Thread stoped [15:40:31]accept exits with 8 [15:40:31]New connection [15:40:31]New thread 3067493732 created [15:40:31]Thread 3067350372 joined [15:40:31]Waiting for new connection... [15:40:31] Sock 8.Parse request [15:40:31]Sock 8.Check first char [15:40:31]Sock 8.First char is OK [15:40:31]request: POST /json_proto HTTP/1.0 [15:40:31]Method: POST [15:40:31]URL: /json_proto [15:40:31]Method is POST - this is cgi request [15:40:31]url: /json_proto [15:40:31]query_string will be loaded in cgi processing [15:40:31]execute_cgi json_proto POST (null) [15:40:31]execute_cgi path=json_proto method=POST [15:40:31]POST find Content-Length [15:40:31]Host: 172.17.46.196:8080 [15:40:31]Content-Length: 1108 [15:40:31]Content-Type: application/json [15:40:31] [15:40:31]POST finish read [15:40:31]Found Content-Length = 1108 [15:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189977", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:31]execute_script... [15:40: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 : (3)189977", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 259.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:31]POST & json_proto [15:40:31]process_json_proto [15:40:31]json parsed OK: [15:40:31]protocol is kg_v1.0 [15:40:31]action value=close_receipt [15:40:31]process_action close_receipt [15:40:31]cmd_close_receipt [15:40:31]MH_GetDate [15:40:31]Write to MH i2c: F0 00 00 3E 01 2E [15:40:31]Write i2c OK [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 09 00 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: F0 09 00 3E 01 00 EF 15 C2 66 27 15 C2 66 C7 [15:40:31]GetLastDocTimeStamp 1723995625 [15:40:31]current date 1723995631 [15:40:31]FM_GetShiftState [15:40:31]SAM_PROTO_GetShiftState [15:40:31]wFMCommunicate request_size=4 [15:40:31]MH_SAM_APDU [15:40:31]CAPDU: 80 13 01 00 [15:40:31]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [15:40:31]Write i2c OK [15:40:31]MH_I2C_Read... [15:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:31]Read from MH i2c: E2 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: E2 0E 00 [15:40:31]MH_I2C_Read... [15:40:31]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DA [15:40:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:31]wFMCommunicate OK [15:40:31]SAM_PROTO_GetShiftState done [15:40:31]FM_GetShiftState done [15:40:31]opened in 1723939759 [15:40:31]opened+sec_in_day 1724026159 [15:40:31]quantity*price = 25500 [15:40:31]sum+1 = 25501 [15:40:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 259.00 НСП 1% : 2.29 НДС 12% : 27.50 Наличными: 0.00 Безнал.: 259.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 65 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49799 ФПД: 77980185571738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49799&fm=77980185571738&tin=02508201610067®Number=0000000000092546&sum=25900 0 [15:40:32]StoreToDocumentArchive [15:40:32]shift 466 fd 49799 [15:40:32]save to /storage/0466/doc_00049799 [15:40:32]save last doc name /storage/0466/doc_00049799 to /storage/kkm_last_doc_name [15:40:32]save OK [15:40:32]Clear old archive folders... [15:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=402 [15:40:32]tlvbuf is 005E0110 [15:40:32]SAM_PROTO_ClearQueue [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 09 00 00 [15:40:32]Write to MH i2c: E2 08 00 4C 01 80 09 00 00 00 00 00 00 BF [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_ClearQueue done [15:40:32]KKMCreateOFDPacket [15:40:32]OFDProtocolAddRootSTLVToBuf [15:40:32]FM_MakeSignedData [15:40:32]FM_MakeSignedData [15:40:32]SAM_PROTO_SignData [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 0D 01 02 [15:40:32]Write to MH i2c: E2 08 00 4D 01 80 0D 01 02 00 00 00 00 C7 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [15:40:32]RAPDU: 90 00 [15:40:32]wFMCommunicate OK [15:40:32]wFMCommunicate request_size=255 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 [15:40:33]Write to MH i2c: E2 02 01 4E 01 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 00 91 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=161 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C2 00 00 35 04 06 00 46 EC 2D 42 B1 9A [15:40:33]Write to MH i2c: E2 A4 00 4F 01 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C2 00 00 35 04 06 00 46 EC 2D 42 B1 9A 00 00 EC [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 03 02 [15:40:33]Write to MH i2c: E2 08 00 50 01 80 0D 03 02 00 00 00 00 CC [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0B 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0B 00 50 01 00 42 B8 48 3A 3D 2E ED BE 90 00 5F [15:40:33]RAPDU: 42 B8 48 3A 3D 2E ED BE 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_SignData done [15:40:33]FM_MakeSignedData done [15:40:33]CreateOFDProtocolMessage [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 11 00 00 [15:40:33]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:34]Read from MH i2c: E2 17 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 17 [15:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:34]wFMCommunicate OK [15:40:34]CreateOFDProtocolMessage done [15:40:34]OFDSenderStorePacket 49799 [15:40:34]StoreOFDPacket docnum=49799 [15:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 9E CD 9E 01 D8 CC 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C2 00 00 35 04 06 00 46 EC 2D 42 B1 9A 42 B8 48 3A 3D 2E ED BE [15:40:34]CheckFolder [15:40:34]dirname=/storage/ofd_packets [15:40:34]CheckFolder done [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00049799 [15:40:34]NVStorageSaveData ofd_packets/00049799 [15:40:34]File name is /storage/ofd_packets/00049799 [15:40:34]Write 452 bytes [15:40:34]NVStorageSaveData done [15:40:34]OFDSenderStorePacket done [15:40:34]KKMCreateOFDPacket done [15:40:34]NVStorageSaveData kkm_last_timestamp [15:40:34]File name is /storage/kkm_last_timestamp [15:40:34]Write 4 bytes [15:40:34]NVStorageSaveData done [15:40:34]ExternCall_PrintAddStr [15:40:34]wPrintStart [15:40:34]Write to MH i2c: 01 00 00 52 01 53 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 FF 0F 68 [15:40:34]RasterBufferAndPrint [15:40:34]line Счет N : (3)189977 [15:40:34]line ИНН: 02508201610067 [15:40:34]line Контрольно-Кассовый Чек [15:40:34]line ПРОДАЖА [15:40:34]line Товар: 4600682557456 [15:40:34]line Напиток FLash up energy эн ж/б 0,5/0,45л [15:40:34]line 3.000 * 85.00 [15:40:34]line = 255.00 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line Товар: 2000031750019 [15:40:34]line Пакет Партнер Нефть [15:40:34]line 1.000 * 4.00 [15:40:34]line = 4.00 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line ИТОГО: 259.00 [15:40:34]line НСП 1% : 2.29 [15:40:34]line НДС 12% : 27.50 [15:40:34]line Наличными: 0.00 [15:40:34]line Безнал.: 259.00 [15:40:34]line Место: АЗС № 95 "Партнер Нефть" [15:40:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:34]line СНО: Общий режим [15:40:34]line Чек 65 18.08.2024 15:40 [15:40:34]line Смена: 466 ФФД: 1.0 [15:40:34]line ЗНМ: 0300000078 [15:40:34]line РНМ: 0000000000092546 [15:40:34]line Версия ККМ: 001 [15:40:34]line Платежная система: Бакай Банк [15:40:34]line ФМ: 0000000000871800 [15:40:34]line ФД: 49799 [15:40:34]line ФПД: 77980185571738 [15:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49799&fm=77980185571738&tin=02508201610067®Number=0000000000092546&sum=25900 [15:40:34]line 0 [15:40:34]OFD Sender: Processing packet 49799 [packets to send 21, broken 20] [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00049799 [15:40:34]OFD Sender: To server: pG, [15:40:34]CommunicateWithHost lk.salyk.kg:30040 [15:40:34]ConnectInit lk.salyk.kg [15:40:34]written 0, free lines is 4095 [15:40:34]Connected sock=11 [15: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 38 30 30 A6 01 00 00 9E CD 9E 01 D8 CC 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C2 00 00 35 04 06 00 46 EC 2D 42 B1 9A Write to MH i2c: 42 01 B8 00 48 00 3A 83 3D 01 2E 84 ED [15:40:34]BE [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 2C 0D C4 [15:40:34]RasterBufferAndPrint [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]written 0, free lines is 3409 [15:40:34]MH_Cut [15:40:34]Write to MH i2c: D1 01 00 8A 01 01 5D [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 01 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 01 00 8A 01 00 5C [15:40:34]Write to MH i2c: 01 00 00 8B 01 8C [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15: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 38 30 30 4F 00 00 00 FA 88 47 00 5D 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 38 30 30 10 04 04 00 87 C2 00 00 F4 03 04 00 65 C0 C1 66 B6 04 01 00 00 CC 43 48 38 13 DE 58 6C [15:40:35]CommunicateWithHost err = 0 [15:40:35]CheckOFDResponse [15:40:35]1017 (14) - 77093643461234 [15:40:35]1041 (16) - 0000000000871800 [15:40:35]1040 (4) - 49799 [15:40:35]1012 (4) - 18.08.2024 09:35 [15:40:35]1206 (1) - 0 [15:40:35]OFD Sender: Remove packet 49799 [15:40:35]ProducePacketName [15:40:35]name=ofd_packets/00049799 [15:40:35]NVStorageDeleteData [15:40:35]*** Cut start [15:40:35]*** Purtial cut [15:40:35]*** CUTSNS_PIN = 0 [15:40:35]OFD Sender: No OFD packet to send [15:40:35]*** Stage 1: CUTSNS_PIN = 1 [15:40:37]Read from MH i2c: 01 [15:40:37]MH_I2C_Read... [15:40:37]*** Stop cut motor [15:40:37]*** Cut end [15:40:37]Read from MH i2c: 01 07 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [15:40:37]process_action close_receipt done [15:40:37]requested_data is exist [15:40:37]produce_requested_data [15:40:37]requested_item fm.sn is exist - process it [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 11 00 00 [15:40:37]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 17 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [15:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:37]wFMCommunicate OK [15:40:37]requested_item fd.num is exist - process it [15:40:37]SAM_PROTO_GetFieldsCounters [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 13 00 00 [15:40:37]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 62 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 87 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 87 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_GetFieldsCounters done [15:40:38]requested_item shift.num is exist - process it [15:40:38]requested_item shift.opened is exist - process it [15:40:38]req_shift_opened [15:40:38]FM_GetShiftState [15:40:38]SAM_PROTO_GetShiftState [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 13 01 00 [15:40:38]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0E 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 29 [15:40:38]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_GetShiftState done [15:40:38]FM_GetShiftState done [15:40:38]req_shift_opened done [15:40:38]requested_item shift.open_date is exist - process it [15:40:38]req_shift_open_date [15:40:38]req_shift_open_date done [15:40:38]produce_requested_data done [15:40:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49799,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:38]process_action_free close_receipt [15:40:38]json_value_free [15:40:38]json_value_free done [15:40:38]process_json_proto returns [15:40:38]Send response to host [15:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49799,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:38]free response buf [15:40:38]execute_script done [15:40:38]execute_script returns [15:40:38]free content buf [15:40:38]Sock 8.Close socket [15:40:38]Sock 8.Thread stoped [15:40:39]accept exits with 9 [15:40:39]New connection [15:40:39]New thread 3067350372 created [15:40:39]Thread 3067493732 joined [15:40:39]Waiting for new connection... [15:40:39] Sock 9.Parse request [15:40:39]Sock 9.Check first char [15:40:39]Sock 9.First char is OK [15:40:39]request: POST /json_proto HTTP/1.0 [15:40:39]Method: POST [15:40:39]URL: /json_proto [15:40:39]Method is POST - this is cgi request [15:40:39]url: /json_proto [15:40:39]query_string will be loaded in cgi processing [15:40:39]execute_cgi json_proto POST (null) [15:40:39]execute_cgi path=json_proto method=POST [15:40:39]POST find Content-Length [15:40:39]Host: 172.17.46.196:8080 [15:40:39]Content-Length: 975 [15:40:39]Content-Type: application/json [15:40:39] [15:40:39]POST finish read [15:40:39]Found Content-Length = 975 [15:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189978", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:39]execute_script... [15:40:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189978", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:39]POST & json_proto [15:40:39]process_json_proto [15:40:39]json parsed OK: [15:40:39]protocol is kg_v1.0 [15:40:39]action value=close_receipt [15:40:39]process_action close_receipt [15:40:39]cmd_close_receipt [15:40:39]MH_GetDate [15:40:39]Write to MH i2c: F0 00 00 8F 01 7F [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: F0 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: F0 09 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: F0 09 00 8F 01 00 F7 15 C2 66 27 15 C2 66 20 [15:40:39]GetLastDocTimeStamp 1723995632 [15:40:39]current date 1723995639 [15:40:39]FM_GetShiftState [15:40:39]SAM_PROTO_GetShiftState [15:40:39]wFMCommunicate request_size=4 [15:40:39]MH_SAM_APDU [15:40:39]CAPDU: 80 13 01 00 [15:40:39]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:39]Read from MH i2c: E2 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 0E 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 2B [15:40:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:39]wFMCommunicate OK [15:40:39]SAM_PROTO_GetShiftState done [15:40:39]FM_GetShiftState done [15:40:39]opened in 1723939759 [15:40:39]opened+sec_in_day 1724026159 [15:40:39]quantity*price = 12500 [15:40:39]sum+1 = 12501 [15:40:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.91 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 66 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49800 ФПД: 266153613735892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154040&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49800&fm=266153613735892&tin=02508201610067®Number=0000000000092546&sum=21500 0 [15:40:41]StoreToDocumentArchive [15:40:41]shift 466 fd 49800 [15:40:41]save to /storage/0466/doc_00049800 [15:40:41]save last doc name /storage/0466/doc_00049800 to /storage/kkm_last_doc_name [15:40:41]save OK [15:40:41]Clear old archive folders... [15:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=415 [15:40:41]tlvbuf is 005EE110 [15:40:41]SAM_PROTO_ClearQueue [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 09 00 00 [15:40:41]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [15:40:41]RAPDU: 90 00 [15:40:41]wFMCommunicate OK [15:40:41]SAM_PROTO_ClearQueue done [15:40:41]KKMCreateOFDPacket [15:40:41]OFDProtocolAddRootSTLVToBuf [15:40:41]FM_MakeSignedData [15:40:41]FM_MakeSignedData [15:40:41]SAM_PROTO_SignData [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 0D 01 02 [15:40:41]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [15:40:41]RAPDU: 90 00 [15:40:41]wFMCommunicate OK [15:40:41]wFMCommunicate request_size=255 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [15:40:41]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 56 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [15:40:41]RAPDU: 90 00 [15:40:41]wFMCommunicate OK [15:40:41]wFMCommunicate request_size=174 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C2 00 00 35 04 06 00 F2 10 B7 9A 37 D4 [15:40:42]Write to MH i2c: E2 B1 00 A0 01 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C2 00 00 35 04 06 00 F2 10 B7 9A 37 D4 00 00 F0 [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:42]Read from MH i2c: E2 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 03 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [15:40:42]RAPDU: 90 00 [15:40:42]wFMCommunicate OK [15:40:42]wFMCommunicate request_size=4 [15:40:42]MH_SAM_APDU [15:40:42]CAPDU: 80 0D 03 02 [15:40:42]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:42]Read from MH i2c: E2 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 0B 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 0B 00 A1 01 00 E9 7D 09 87 C2 E4 09 1E 90 00 E1 [15:40:42]RAPDU: E9 7D 09 87 C2 E4 09 1E 90 00 [15:40:42]wFMCommunicate OK [15:40:42]SAM_PROTO_SignData done [15:40:42]FM_MakeSignedData done [15:40:42]CreateOFDProtocolMessage [15:40:42]wFMCommunicate request_size=4 [15:40:42]MH_SAM_APDU [15:40:42]CAPDU: 80 11 00 00 [15:40:42]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 [15:40:42]MH_I2C_Read... [15:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:42]Read from MH i2c: E2 17 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 68 [15:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:42]wFMCommunicate OK [15:40:42]CreateOFDProtocolMessage done [15:40:42]OFDSenderStorePacket 49800 [15:40:42]StoreOFDPacket docnum=49800 [15:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B3 01 00 00 E9 2B AB 01 DD 45 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C2 00 00 35 04 06 00 F2 10 B7 9A 37 D4 E9 7D 09 87 C2 E4 09 1E [15:40:42]CheckFolder [15:40:42]dirname=/storage/ofd_packets [15:40:42]CheckFolder done [15:40:42]ProducePacketName [15:40:42]name=ofd_packets/00049800 [15:40:42]NVStorageSaveData ofd_packets/00049800 [15:40:42]File name is /storage/ofd_packets/00049800 [15:40:42]Write 465 bytes [15:40:42]NVStorageSaveData done [15:40:42]OFDSenderStorePacket done [15:40:42]KKMCreateOFDPacket done [15:40:42]NVStorageSaveData kkm_last_timestamp [15:40:42]File name is /storage/kkm_last_timestamp [15:40:42]Write 4 bytes [15:40:42]NVStorageSaveData done [15:40:42]ExternCall_PrintAddStr [15:40:42]wPrintStart [15:40:42]Write to MH i2c: 01 00 00 A3 01 A4 [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 07 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [15:40:42]RasterBufferAndPrint [15:40:42]line Счет N : (3)189978 [15:40:42]line ИНН: 02508201610067 [15:40:42]line Контрольно-Кассовый Чек [15:40:42]line ПРОДАЖА [15:40:42]line Товар: 4870202522015 [15:40:42]line Напиток Maxi Чай Грушевый 1,2л [15:40:42]line 1.000 * 125.00 [15:40:42]line = 125.00 [15:40:42]line НДС 12% НСП 1% [15:40:42]line > о реализуемом товаре [15:40:42]line Товар: 4650243871828 [15:40:42]line Gorilla эн нап манго-кокос 0,45 ж/б [15:40:42]line 1.000 * 90.00 [15:40:42]line = 90.00 [15:40:42]line НДС 12% НСП 1% [15:40:42]line > о реализуемом товаре [15:40:42]line ИТОГО: 215.00 [15:40:42]line НСП 1% : 1.91 [15:40:42]line НДС 12% : 22.83 [15:40:42]line Наличными: 215.00 [15:40:42]line Безнал.: 0.00 [15:40:42]line Место: АЗС № 95 "Партнер Нефть" [15:40:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:42]line СНО: Общий режим [15:40:42]line Чек 66 18.08.2024 15:40 [15:40:42]line Смена: 466 ФФД: 1.0 [15:40:42]line ЗНМ: 0300000078 [15:40:42]line РНМ: 0000000000092546 [15:40:42]line Версия ККМ: 001 [15:40:42]line ФМ: 0000000000871800 [15:40:42]line ФД: 49800 [15:40:42]line ФПД: 266153613735892 [15:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154040&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49800&fm=266153613735892&tin=02508201610067®Number=0000000000092546&sum=21500 [15:40:42]line 0 [15:40:42]OFD Sender: Processing packet 49800 [packets to send 21, broken 20] [15:40:42]ProducePacketName [15:40:42]name=ofd_packets/00049800 [15:40:42]OFD Sender: To server: pG, [15:40:42]CommunicateWithHost lk.salyk.kg:30040 [15:40:42]ConnectInit lk.salyk.kg [15:40:42]written 0, free lines is 4095 [15:40:42]Connected sock=10 [15:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B3 01 00 00 E9 2B AB 01 DD 45 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C2 00 00 35 04 06 00 F2 10 B7 9A 37 D4 E9 7D 09 87 C2 E4 09 1E [15:40:43]Write to MH i2c: 01 00 00 D3 01 D4 [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: 01 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: 01 07 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 64 0D 4C [15:40:43]RasterBufferAndPrint [15:40:43]line [15:40:43]line [15:40:43]line [15:40:43]line [15:40:43]line [15:40:43]written 0, free lines is 3470 [15:40:43]MH_Cut [15:40:43]Write to MH i2c: D1 01 00 DA 01 01 AD [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: D1 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: D1 01 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: D1 01 00 DA 01 00 AC [15:40:43]Write to MH i2c: 01 00 00 DB 01 DC [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 24 DE 47 00 DB A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C2 00 00 F4 03 04 00 6E C0 C1 66 B6 04 01 00 00 10 03 C0 FA 86 1F 14 C2 [15:40:43]CommunicateWithHost err = 0 [15:40:43]CheckOFDResponse [15:40:43]1017 (14) - 77093643461234 [15:40:43]1041 (16) - 0000000000871800 [15:40:43]1040 (4) - 49800 [15:40:43]1012 (4) - 18.08.2024 09:35 [15:40:43]1206 (1) - 0 [15:40:43]OFD Sender: Remove packet 49800 [15:40:43]ProducePacketName [15:40:43]name=ofd_packets/00049800 [15:40:43]NVStorageDeleteData [15:40:44]*** Cut start [15:40:44]*** Purtial cut [15:40:44]*** Stage 1: CUTSNS_PIN = 1 [15:40:44]Read from MH i2c: 01 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: 01 07 00 [15:40:44]MH_I2C_Read... [15:40:44]*** Stop cut motor [15:40:44]*** Cut end [15:40:44]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [15:40:44]process_action close_receipt done [15:40:44]requested_data is exist [15:40:44]produce_requested_data [15:40:44]requested_item fm.sn is exist - process it [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 11 00 00 [15:40:44]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 17 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [15:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:44]wFMCommunicate OK [15:40:44]requested_item fd.num is exist - process it [15:40:44]SAM_PROTO_GetFieldsCounters [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 13 00 00 [15:40:44]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]OFD Sender: No OFD packet to send [15:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 62 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 88 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 88 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_GetFieldsCounters done [15:40:44]requested_item shift.num is exist - process it [15:40:44]requested_item shift.opened is exist - process it [15:40:44]req_shift_opened [15:40:44]FM_GetShiftState [15:40:44]SAM_PROTO_GetShiftState [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 13 01 00 [15:40:44]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0E 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 79 [15:40:44]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_GetShiftState done [15:40:44]FM_GetShiftState done [15:40:44]req_shift_opened done [15:40:44]requested_item shift.open_date is exist - process it [15:40:44]req_shift_open_date [15:40:44]req_shift_open_date done [15:40:44]produce_requested_data done [15:40:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49800,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:44]process_action_free close_receipt [15:40:44]json_value_free [15:40:44]json_value_free done [15:40:44]process_json_proto returns [15:40:44]Send response to host [15:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49800,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:44]free response buf [15:40:44]execute_script done [15:40:44]execute_script returns [15:40:44]free content buf [15:40:44]Sock 9.Close socket [15:40:44]Sock 9.Thread stoped [15:40:46]accept exits with 8 [15:40:46]New connection [15:40:46]New thread 3067493732 created [15:40:46]Thread 3067350372 joined [15:40:46]Waiting for new connection... [15:40:46] Sock 8.Parse request [15:40:46]Sock 8.Check first char [15:40:46]Sock 8.First char is OK [15:40:46]request: POST /json_proto HTTP/1.0 [15:40:46]Method: POST [15:40:46]URL: /json_proto [15:40:46]Method is POST - this is cgi request [15:40:46]url: /json_proto [15:40:46]query_string will be loaded in cgi processing [15:40:46]execute_cgi json_proto POST (null) [15:40:46]execute_cgi path=json_proto method=POST [15:40:46]POST find Content-Length [15:40:46]Host: 172.17.46.196:8080 [15:40:46]Content-Length: 992 [15:40:46]Content-Type: application/json [15:40:46] [15:40:46]POST finish read [15:40:46]Found Content-Length = 992 [15:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189979", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:46]execute_script... [15:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189979", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:46]POST & json_proto [15:40:46]process_json_proto [15:40:46]json parsed OK: [15:40:46]protocol is kg_v1.0 [15:40:46]action value=close_receipt [15:40:46]process_action close_receipt [15:40:46]cmd_close_receipt [15:40:46]MH_GetDate [15:40:46]Write to MH i2c: F0 00 00 DF 01 CF [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: F0 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: F0 09 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: F0 09 00 DF 01 00 FE 15 C2 66 27 15 C2 66 77 [15:40:46]GetLastDocTimeStamp 1723995640 [15:40:46]current date 1723995646 [15:40:46]FM_GetShiftState [15:40:46]SAM_PROTO_GetShiftState [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 13 01 00 [15:40:46]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 0E 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 7B [15:40:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:46]wFMCommunicate OK [15:40:46]SAM_PROTO_GetShiftState done [15:40:46]FM_GetShiftState done [15:40:46]opened in 1723939759 [15:40:46]opened+sec_in_day 1724026159 [15:40:46]quantity*price = 9000 [15:40:46]sum+1 = 9001 [15:40:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.60 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 67 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49801 ФПД: 235154633362689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154046&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49801&fm=235154633362689&tin=02508201610067®Number=0000000000092546&sum=18000 0 [15:40:48]StoreToDocumentArchive [15:40:48]shift 466 fd 49801 [15:40:48]save to /storage/0466/doc_00049801 [15:40:48]save last doc name /storage/0466/doc_00049801 to /storage/kkm_last_doc_name [15:40:48]save OK [15:40:48]Clear old archive folders... [15:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=422 [15:40:48]tlvbuf is 005F7F50 [15:40:48]SAM_PROTO_ClearQueue [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 09 00 00 [15:40:48]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 03 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [15:40:48]RAPDU: 90 00 [15:40:48]wFMCommunicate OK [15:40:48]SAM_PROTO_ClearQueue done [15:40:48]KKMCreateOFDPacket [15:40:48]OFDProtocolAddRootSTLVToBuf [15:40:48]FM_MakeSignedData [15:40:48]FM_MakeSignedData [15:40:48]SAM_PROTO_SignData [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 0D 01 02 [15:40:48]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 03 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [15:40:48]RAPDU: 90 00 [15:40:48]wFMCommunicate OK [15:40:48]wFMCommunicate request_size=255 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 [15:40:48]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 00 00 D9 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [15:40:49]RAPDU: 90 00 [15:40:49]wFMCommunicate OK [15:40:49]wFMCommunicate request_size=181 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FE 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C2 00 00 35 04 06 00 D5 DF 34 63 8D 01 [15:40:49]Write to MH i2c: E2 B8 00 F0 01 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 OFD Sender: No OFD packet to send [15:40:49]06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FE 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C2 00 00 35 04 06 00 D5 DF 34 63 8D 01 00 00 84 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [15:40:50]RAPDU: 90 00 [15:40:50]wFMCommunicate OK [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 0D 03 02 [15:40:50]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 0B 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 0B 00 F1 01 00 88 33 8E DA 75 3D 61 1C 90 00 C0 [15:40:50]RAPDU: 88 33 8E DA 75 3D 61 1C 90 00 [15:40:50]wFMCommunicate OK [15:40:50]SAM_PROTO_SignData done [15:40:50]FM_MakeSignedData done [15:40:50]CreateOFDProtocolMessage [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 11 00 00 [15:40:50]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 17 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [15:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:50]wFMCommunicate OK [15:40:50]CreateOFDProtocolMessage done [15:40:50]OFDSenderStorePacket 49801 [15:40:50]StoreOFDPacket docnum=49801 [15:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BA 01 00 00 4F 0C B2 01 0F 9B 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FE 15 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C2 00 00 35 04 06 00 D5 DF 34 63 8D 01 88 33 8E DA 75 3D 61 1C [15:40:50]CheckFolder [15:40:50]dirname=/storage/ofd_packets [15:40:50]CheckFolder done [15:40:50]ProducePacketName [15:40:50]name=ofd_packets/00049801 [15:40:50]NVStorageSaveData ofd_packets/00049801 [15:40:50]File name is /storage/ofd_packets/00049801 [15:40:50]Write 472 bytes [15:40:50]NVStorageSaveData done [15:40:50]OFDSenderStorePacket done [15:40:50]KKMCreateOFDPacket done [15:40:50]NVStorageSaveData kkm_last_timestamp [15:40:50]File name is /storage/kkm_last_timestamp [15:40:50]Write 4 bytes [15:40:50]NVStorageSaveData done [15:40:50]ExternCall_PrintAddStr [15:40:50]wPrintStart [15:40:50]Write to MH i2c: 01 00 00 F3 01 F4 [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 07 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [15:40:50]RasterBufferAndPrint [15:40:50]line Счет N : (3)189979 [15:40:50]line ИНН: 02508201610067 [15:40:50]line Контрольно-Кассовый Чек [15:40:50]line ПРОДАЖА [15:40:50]line Товар: 4870022003305 [15:40:50]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:40:50]line 1.000 * 90.00 [15:40:50]line = 90.00 [15:40:50]line НДС 12% НСП 1% [15:40:50]line > о реализуемом товаре [15:40:50]line Товар: 4660085515163 [15:40:50]line Шок Батончик Сникерс супер 95/80г [15:40:50]line 1.000 * 90.00 [15:40:50]line = 90.00 [15:40:50]line НДС 12% НСП 1% [15:40:50]line > о реализуемом товаре [15:40:50]line ИТОГО: 180.00 [15:40:50]line НСП 1% : 1.60 [15:40:50]line НДС 12% : 19.12 [15:40:50]line Наличными: 180.00 [15:40:50]line Безнал.: 0.00 [15:40:50]line Место: АЗС № 95 "Партнер Нефть" [15:40:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:50]line СНО: Общий режим [15:40:50]line Чек 67 18.08.2024 15:40 [15:40:50]line Смена: 466 ФФД: 1.0 [15:40:50]line ЗНМ: 0300000078 [15:40:50]line РНМ: 0000000000092546 [15:40:50]line Версия ККМ: 001 [15:40:50]line ФМ: 0000000000871800 [15:40:50]line ФД: 49801 [15:40:50]line ФПД: 235154633362689 [15:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154046&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49801&fm=235154633362689&tin=02508201610067®Number=0000000000092546&sum=18000 [15:40:50]OFD Sender: Processing packet 49801 [packets to send 21, broken 20] [15:40:50]ProducePacketName [15:40:50]line 0 [15:40:50]name=ofd_packets/00049801 [15:40:50]OFD Sender: To server: pG, [15:40:50]CommunicateWithHost lk.salyk.kg:30040 [15:40:50]ConnectInit lk.salyk.kg [15:40:50]written 0, free lines is 4095 [15:40:50]Connected sock=11 [15:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BA 01 00 00 4F 0C B2 01 0F 9B 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 Write to MH i2c: 81 01 D1 00 83 00 D0 23 BF 02 D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 25 [15:40:51]08 Write i2c OK [15:40:51]00 MH_I2C_Read... [15:40:51]03 Read from MH i2c: E8 01 03 [15:40:51]00 MH_I2C_Read... [15:40:51]00 00 00 00 37 04 06 00 28 Read from MH i2c: 23 01 00 07 00 00 00 [15:40:51]00 MH_I2C_Read... [15:40:51]13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 Read from MH i2c: 00 01 00 07 00 00 39 23 04 02 06 00 00 00 00 00 00 00 00 00 00 F0 00 0C 00 1F 04 02 00 01 00 12 04 04 00 43 00 28 00 [15:40:51]00 RasterBufferAndPrint [15:40:51]F4 line [15:40:51]03 line [15:40:51]04 line [15:40:51]00 FE 15 C2 66 0E 04 04 00 D2 01 00 00 line [15:40:51]B9 line [15:40:51]04 01 written 0, free lines is 3608 [15:40:51]00 01 0D 04 10 00 30 30 30 30 30 30 MH_Cut [15:40:51]30 Write to MH i2c: 30 D1 30 01 30 00 30 2A 39 02 32 01 35 FE 34 [15:40:51]36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]30 Read from MH i2c: 10 D1 04 [15:40:51]04 MH_I2C_Read... [15:40:51]00 89 C2 00 00 35 04 06 00 D5 DF 34 63 8D 01 88 33 8E DA 75 3D 61 1C [15:40:51]Read from MH i2c: D1 01 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: D1 01 00 2A 02 00 FD [15:40:51]Write to MH i2c: 01 00 00 2B 02 2D [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D8 03 47 00 D6 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C2 00 00 F4 03 04 00 76 C0 C1 66 B6 04 01 00 00 60 B5 57 27 52 BB 62 34 *** Cut start [15:40:51] [15:40:51]CommunicateWithHost err = 0 [15:40:51]CheckOFDResponse [15:40:51]*** Purtial cut [15:40:51]1017 (14) - 77093643461234 [15:40:51]*** CUTSNS_PIN = 0 [15:40:51]1041 (16) - 0000000000871800 [15:40:51]1040 (4) - 49801 [15:40:51]1012 (4) - 18.08.2024 09:35 [15:40:51]1206 (1) - 0 [15:40:51]OFD Sender: Remove packet 49801 [15:40:51]ProducePacketName [15:40:51]name=ofd_packets/00049801 [15:40:51]NVStorageDeleteData [15:40:51]*** Stage 1: CUTSNS_PIN = 1 [15:40:52]OFD Sender: No OFD packet to send [15:40:53]Read from MH i2c: 01 [15:40:53]MH_I2C_Read... [15:40:53]*** Stop cut motor [15:40:53]*** Cut end [15:40:53]Read from MH i2c: 01 07 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [15:40:53]process_action close_receipt done [15:40:53]requested_data is exist [15:40:53]produce_requested_data [15:40:53]requested_item fm.sn is exist - process it [15:40:53]wFMCommunicate request_size=4 [15:40:53]MH_SAM_APDU [15:40:53]CAPDU: 80 11 00 00 [15:40:53]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [15:40:53]Write i2c OK [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 [15:40:53]MH_I2C_Read... [15:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:53]Read from MH i2c: E2 17 00 [15:40:53]MH_I2C_Read... [15:40:53]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [15:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:53]wFMCommunicate OK [15:40:53]requested_item fd.num is exist - process it [15:40:53]SAM_PROTO_GetFieldsCounters [15:40:53]wFMCommunicate request_size=4 [15:40:53]MH_SAM_APDU [15:40:53]CAPDU: 80 13 00 00 [15:40:54]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [15:40:54]Write i2c OK [15:40:54]MH_I2C_Read... [15:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:54]Read from MH i2c: E2 [15:40:54]MH_I2C_Read... [15:40:54]Read from MH i2c: E2 62 00 [15:40:54]MH_I2C_Read... [15:40:54]Read from MH i2c: E2 62 00 2D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 89 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 89 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:54]wFMCommunicate OK [15:40:54]SAM_PROTO_GetFieldsCounters done [15:40:54]requested_item shift.num is exist - process it [15:40:54]requested_item shift.opened is exist - process it [15:40:54]req_shift_opened [15:40:54]FM_GetShiftState [15:40:54]SAM_PROTO_GetShiftState [15:40:54]wFMCommunicate request_size=4 [15:40:54]MH_SAM_APDU [15:40:54]CAPDU: 80 13 01 00 [15:40:54]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [15:40:54]Write i2c OK [15:40:54]MH_I2C_Read... [15:40:54]Read from MH i2c: E2 [15:40:54]MH_I2C_Read... [15:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:54]Read from MH i2c: E2 0E 00 [15:40:54]MH_I2C_Read... [15:40:54]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CA [15:40:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:54]wFMCommunicate OK [15:40:54]SAM_PROTO_GetShiftState done [15:40:54]FM_GetShiftState done [15:40:54]req_shift_opened done [15:40:54]requested_item shift.open_date is exist - process it [15:40:54]req_shift_open_date [15:40:54]req_shift_open_date done [15:40:54]produce_requested_data done [15:40:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49801,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:40:54]process_action_free close_receipt [15:40:54]json_value_free [15:40:54]json_value_free done [15:40:54]process_json_proto returns [15:40:54]Send response to host [15:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49801,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:40:54]free response buf [15:40:54]execute_script done [15:40:54]execute_script returns [15:40:54]free content buf [15:40:54]Sock 8.Close socket [15:40:54]Sock 8.Thread stoped [15:40:55]accept exits with 9 [15:40:55]New connection [15:40:55]New thread 3067350372 created [15:40:55]Thread 3067493732 joined [15:40:55]Waiting for new connection... [15:40:55] Sock 9.Parse request [15:40:55]Sock 9.Check first char [15:40:55]Sock 9.First char is OK [15:40:55]request: POST /json_proto HTTP/1.0 [15:40:55]Method: POST [15:40:55]URL: /json_proto [15:40:55]Method is POST - this is cgi request [15:40:55]url: /json_proto [15:40:55]query_string will be loaded in cgi processing [15:40:55]execute_cgi json_proto POST (null) [15:40:55]execute_cgi path=json_proto method=POST [15:40:55]POST find Content-Length [15:40:55]Host: 172.17.46.196:8080 [15:40:55]Content-Length: 784 [15:40:55]Content-Type: application/json [15:40:55] [15:40:55]POST finish read [15:40:55]Found Content-Length = 784 [15:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189980", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:55]execute_script... [15:40: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 : (3)189980", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:55]POST & json_proto [15:40:55]process_json_proto [15:40:55]json parsed OK: [15:40:55]protocol is kg_v1.0 [15:40:55]action value=close_receipt [15:40:55]process_action close_receipt [15:40:55]cmd_close_receipt [15:40:55]MH_GetDate [15:40:55]Write to MH i2c: F0 00 00 2F 02 20 [15:40:55]Write i2c OK [15:40:55]MH_I2C_Read... [15:40:55]Read from MH i2c: F0 [15:40:55]MH_I2C_Read... [15:40:55]Read from MH i2c: F0 09 00 [15:40:55]MH_I2C_Read... [15:40:55]Read from MH i2c: F0 09 00 2F 02 00 08 16 C2 66 27 15 C2 66 D3 [15:40:55]GetLastDocTimeStamp 1723995646 [15:40:55]current date 1723995656 [15:40:55]FM_GetShiftState [15:40:55]SAM_PROTO_GetShiftState [15:40:55]wFMCommunicate request_size=4 [15:40:55]MH_SAM_APDU [15:40:55]CAPDU: 80 13 01 00 [15:40:55]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [15:40:56]Write i2c OK [15:40:56]MH_I2C_Read... [15:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:56]Read from MH i2c: E2 [15:40:56]MH_I2C_Read... [15:40:56]Read from MH i2c: E2 0E 00 [15:40:56]MH_I2C_Read... [15:40:56]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CC [15:40:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:40:56]wFMCommunicate OK [15:40:56]SAM_PROTO_GetShiftState done [15:40:56]FM_GetShiftState done [15:40:56]opened in 1723939759 [15:40:56]opened+sec_in_day 1724026159 [15:40:56]quantity*price = 14000 [15:40:56]sum+1 = 14001 [15:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 68 18.08.2024 15:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49802 ФПД: 70643570720763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49802&fm=70643570720763&tin=02508201610067®Number=0000000000092546&sum=14000 0 [15:40:58]StoreToDocumentArchive [15:40:58]shift 466 fd 49802 [15:40:58]save to /storage/0466/doc_00049802 [15:40:58]save last doc name /storage/0466/doc_00049802 to /storage/kkm_last_doc_name [15:40:58]save OK [15:40:58]Clear old archive folders... [15:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:40:58]tlvbuf is 005ACC80 [15:40:58]SAM_PROTO_ClearQueue [15:40:58]wFMCommunicate request_size=4 [15:40:58]MH_SAM_APDU [15:40:58]CAPDU: 80 09 00 00 [15:40:58]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [15:40:58]Write i2c OK [15:40:58]MH_I2C_Read... [15:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:58]Read from MH i2c: E2 [15:40:58]MH_I2C_Read... [15:40:58]Read from MH i2c: E2 03 00 [15:40:58]MH_I2C_Read... [15:40:58]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [15:40:58]RAPDU: 90 00 [15:40:58]wFMCommunicate OK [15:40:58]SAM_PROTO_ClearQueue done [15:40:58]KKMCreateOFDPacket [15:40:58]OFDProtocolAddRootSTLVToBuf [15:40:58]FM_MakeSignedData [15:40:58]FM_MakeSignedData [15:40:58]SAM_PROTO_SignData [15:40:58]wFMCommunicate request_size=4 [15:40:58]MH_SAM_APDU [15:40:58]CAPDU: 80 0D 01 02 [15:40:58]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [15:40:58]Write i2c OK [15:40:58]MH_I2C_Read... [15:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:58]Read from MH i2c: E2 [15:40:58]MH_I2C_Read... [15:40:58]Read from MH i2c: E2 03 00 [15:40:58]MH_I2C_Read... [15:40:58]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [15:40:58]RAPDU: 90 00 [15:40:58]wFMCommunicate OK [15:40:58]wFMCommunicate request_size=255 [15:40:58]MH_SAM_APDU [15:40:58]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 08 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [15:40:58]Write to MH i2c: E2 02 01 3F 02 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 08 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 A7 [15:40:58]Write i2c OK [15:40:58]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 03 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [15:40:59]RAPDU: 90 00 [15:40:59]wFMCommunicate OK [15:40:59]wFMCommunicate request_size=34 [15:40:59]MH_SAM_APDU [15:40:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C2 00 00 35 04 06 00 40 3F FC F0 3F FB [15:40:59]Write to MH i2c: E2 25 00 40 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C2 00 00 35 04 06 00 40 3F FC F0 3F FB 00 00 66 [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 03 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [15:40:59]RAPDU: 90 00 [15:40:59]wFMCommunicate OK [15:40:59]wFMCommunicate request_size=4 [15:40:59]MH_SAM_APDU [15:40:59]CAPDU: 80 0D 03 02 [15:40:59]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0B 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0B 00 41 02 00 D0 88 50 6B 62 1F 68 F0 90 00 AB [15:40:59]RAPDU: D0 88 50 6B 62 1F 68 F0 90 00 [15:40:59]wFMCommunicate OK [15:40:59]SAM_PROTO_SignData done [15:40:59]FM_MakeSignedData done [15:40:59]CreateOFDProtocolMessage [15:40:59]wFMCommunicate request_size=4 [15:40:59]MH_SAM_APDU [15:40:59]CAPDU: 80 11 00 00 [15:40:59]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 17 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [15:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:59]wFMCommunicate OK [15:40:59]CreateOFDProtocolMessage done [15:40:59]OFDSenderStorePacket 49802 [15:40:59]StoreOFDPacket docnum=49802 [15:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 DB 78 1F 01 12 CF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 08 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C2 00 00 35 04 06 00 40 3F FC F0 3F FB D0 88 50 6B 62 1F 68 F0 [15:40:59]CheckFolder [15:40:59]dirname=/storage/ofd_packets [15:40:59]CheckFolder done [15:40:59]ProducePacketName [15:40:59]name=ofd_packets/00049802 [15:40:59]NVStorageSaveData ofd_packets/00049802 [15:40:59]File name is /storage/ofd_packets/00049802 [15:40:59]Write 325 bytes [15:40:59]NVStorageSaveData done [15:40:59]OFDSenderStorePacket done [15:40:59]KKMCreateOFDPacket done [15:40:59]NVStorageSaveData kkm_last_timestamp [15:40:59]File name is /storage/kkm_last_timestamp [15:40:59]Write 4 bytes [15:40:59]NVStorageSaveData done [15:40:59]ExternCall_PrintAddStr [15:40:59]wPrintStart [15:40:59]Write to MH i2c: 01 00 00 43 02 45 [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: 01 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: 01 07 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [15:40:59]RasterBufferAndPrint [15:40:59]line Счет N : (3)189980 [15:40:59]line ИНН: 02508201610067 [15:40:59]line Контрольно-Кассовый Чек [15:40:59]line ПРОДАЖА [15:40:59]line Товар: 48743587 [15:40:59]line Сигареты Winston XStyle Silver [15:40:59]line 1.000 * 140.00 [15:40:59]line = 140.00 [15:40:59]line НДС 12% НСП 1% [15:40:59]line > о реализуемом товаре [15:40:59]line ИТОГО: 140.00 [15:40:59]line НСП 1% : 1.24 [15:40:59]line НДС 12% : 14.87 [15:40:59]line Наличными: 0.00 [15:40:59]line Безнал.: 140.00 [15:40:59]OFD Sender: Processing packet 49802 [packets to send 21, broken 20] [15:40:59]line Место: АЗС № 95 "Партнер Нефть" [15:40:59]ProducePacketName [15:40:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:59]name=ofd_packets/00049802 [15:40:59]line СНО: Общий режим [15:40:59]OFD Sender: To server: pG, [15:40:59]line Чек 68 18.08.2024 15:40 [15:40:59]CommunicateWithHost lk.salyk.kg:30040 [15:40:59]line Смена: 466 ФФД: 1.0 [15:40:59]line ЗНМ: 0300000078 [15:40:59]line РНМ: 0000000000092546 [15:40:59]line Версия ККМ: 001 [15:40:59]line Платежная система: O! деньги [15:40:59]line ФМ: 0000000000871800 [15:40:59]line ФД: 49802 [15:40:59]line ФПД: 70643570720763 [15:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49802&fm=70643570720763&tin=02508201610067®Number=0000000000092546&sum=14000 [15:40:59]ConnectInit lk.salyk.kg [15:40:59]line 0 [15:40:59]written 0, free lines is 4095 [15:40:59]Connected sock=10 [15:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 DB 78 1F 01 12 CF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 08 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C2 00 00 Write to MH i2c: 35 01 04 00 06 00 00 6E 40 02 3F FC F0 3F FB D0 88 50 6B 62 1F 70 68 [15:41:00]F0 Write i2c OK [15:41:00] [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 07 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 75 0D F9 [15:41:00]RasterBufferAndPrint [15:41:00]line [15:41:00]line [15:41:00]line [15:41:00]line [15:41:00]line [15:41:00]written 0, free lines is 3487 [15:41:00]MH_Cut [15:41:00]Write to MH i2c: D1 01 00 75 02 01 49 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: D1 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: D1 01 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: D1 01 00 75 02 00 48 [15:41:00]Write to MH i2c: 01 00 00 76 02 78 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C4 6B 47 00 3C 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 38 30 30 10 04 04 00 8A C2 00 00 F4 03 04 00 7F C0 C1 66 B6 04 01 00 00 51 DD C2 4E 7C 6A 6C 32 [15:41:00]CommunicateWithHost err = 0 [15:41:00]CheckOFDResponse [15:41:00]1017 (14) - 77093643461234 [15:41:00]1041 (16) - 0000000000871800 [15:41:00]1040 (4) - 49802 [15:41:00]1012 (4) - 18.08.2024 09:35 [15:41:00]1206 (1) - 0 [15:41:00]OFD Sender: Remove packet 49802 [15:41:00]ProducePacketName [15:41:00]name=ofd_packets/00049802 [15:41:00]NVStorageDeleteData [15:41:00]*** Cut start [15:41:00]*** Purtial cut [15:41:00]*** Stage 1: CUTSNS_PIN = 1 [15:41:01]OFD Sender: No OFD packet to send [15:41:01]Read from MH i2c: *** Stop cut motor [15:41:01]01 *** Cut end [15:41:01] [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 FF 0F 8D [15:41:01]process_action close_receipt done [15:41:01]requested_data is exist [15:41:01]produce_requested_data [15:41:01]requested_item fm.sn is exist - process it [15:41:01]wFMCommunicate request_size=4 [15:41:01]MH_SAM_APDU [15:41:01]CAPDU: 80 11 00 00 [15:41:01]Write to MH i2c: E2 08 00 77 02 80 11 00 00 00 00 00 00 F3 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:01]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 17 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 17 00 77 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [15:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:01]wFMCommunicate OK [15:41:01]requested_item fd.num is exist - process it [15:41:01]SAM_PROTO_GetFieldsCounters [15:41:01]wFMCommunicate request_size=4 [15:41:01]MH_SAM_APDU [15:41:01]CAPDU: 80 13 00 00 [15:41:01]Write to MH i2c: E2 08 00 78 02 80 13 00 00 00 00 00 00 F6 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:01]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 62 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 62 00 78 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8A C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:01]wFMCommunicate OK [15:41:01]SAM_PROTO_GetFieldsCounters done [15:41:01]requested_item shift.num is exist - process it [15:41:01]requested_item shift.opened is exist - process it [15:41:01]req_shift_opened [15:41:01]FM_GetShiftState [15:41:01]SAM_PROTO_GetShiftState [15:41:01]wFMCommunicate request_size=4 [15:41:01]MH_SAM_APDU [15:41:01]CAPDU: 80 13 01 00 [15:41:01]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:01]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 0E 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 15 [15:41:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:01]wFMCommunicate OK [15:41:01]SAM_PROTO_GetShiftState done [15:41:01]FM_GetShiftState done [15:41:01]req_shift_opened done [15:41:01]requested_item shift.open_date is exist - process it [15:41:01]req_shift_open_date [15:41:01]req_shift_open_date done [15:41:01]produce_requested_data done [15:41:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49802,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:01]process_action_free close_receipt [15:41:01]json_value_free [15:41:01]json_value_free done [15:41:01]process_json_proto returns [15:41:01]Send response to host [15:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49802,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:01]free response buf [15:41:01]execute_script done [15:41:02]execute_script returns [15:41:02]free content buf [15:41:02]Sock 9.Close socket [15:41:02]Sock 9.Thread stoped [15:41:03]accept exits with 8 [15:41:03]New connection [15:41:03]New thread 3067493732 created [15:41:03]Thread 3067350372 joined [15:41:03]Waiting for new connection... [15:41:03] Sock 8.Parse request [15:41:03]Sock 8.Check first char [15:41:03]Sock 8.First char is OK [15:41:03]request: POST /json_proto HTTP/1.0 [15:41:03]Method: POST [15:41:03]URL: /json_proto [15:41:03]Method is POST - this is cgi request [15:41:03]url: /json_proto [15:41:03]query_string will be loaded in cgi processing [15:41:03]execute_cgi json_proto POST (null) [15:41:03]execute_cgi path=json_proto method=POST [15:41:03]POST find Content-Length [15:41:03]Host: 172.17.46.196:8080 [15:41:03]Content-Length: 1032 [15:41:03]Content-Type: application/json [15:41:03] [15:41:03]POST finish read [15:41:03]Found Content-Length = 1032 [15:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189981", "tax_sys" : 0, "items" : [ { "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:03]execute_script... [15:41: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 : (3)189981", "tax_sys" : 0, "items" : [ { "code": "745240075981", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 9 LA COSTA", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "745240075936", "name": "\u0410\u0432\u0442\u043E\u043F\u0430\u0440\u0444\u044E\u043C 4 SAUVAGE", "price" : 300.00, "quantity" : 2.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:03]POST & json_proto [15:41:03]process_json_proto [15:41:03]json parsed OK: [15:41:03]protocol is kg_v1.0 [15:41:03]action value=close_receipt [15:41:03]process_action close_receipt [15:41:03]cmd_close_receipt [15:41:03]MH_GetDate [15:41:03]Write to MH i2c: F0 00 00 7A 02 6B [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 09 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 09 00 7A 02 00 0F 16 C2 66 27 15 C2 66 25 [15:41:03]GetLastDocTimeStamp 1723995656 [15:41:03]current date 1723995663 [15:41:03]FM_GetShiftState [15:41:03]SAM_PROTO_GetShiftState [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 13 01 00 [15:41:03]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 17 [15:41:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetShiftState done [15:41:03]FM_GetShiftState done [15:41:03]opened in 1723939759 [15:41:03]opened+sec_in_day 1724026159 [15:41:03]quantity*price = 30000 [15:41:03]sum+1 = 30001 [15:41:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 745240075936 Автопарфюм 4 SAUVAGE 2.000 * 300.00 = 600.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 900.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 69 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49803 ФПД: 184970035819950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49803&fm=184970035819950&tin=02508201610067®Number=0000000000092546&sum=90000 0 [15:41:05]StoreToDocumentArchive [15:41:05]shift 466 fd 49803 [15:41:05]save to /storage/0466/doc_00049803 [15:41:05]save last doc name /storage/0466/doc_00049803 to /storage/kkm_last_doc_name [15:41:05]save OK [15:41:05]Clear old archive folders... [15:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=373 [15:41:05]tlvbuf is 0060D310 [15:41:05]SAM_PROTO_ClearQueue [15:41:05]wFMCommunicate request_size=4 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 09 00 00 [15:41:05]Write to MH i2c: E2 08 00 88 02 80 09 00 00 00 00 00 00 FC [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [15:41:05]RAPDU: 90 00 [15:41:05]wFMCommunicate OK [15:41:05]SAM_PROTO_ClearQueue done [15:41:05]KKMCreateOFDPacket [15:41:05]OFDProtocolAddRootSTLVToBuf [15:41:05]FM_MakeSignedData [15:41:05]FM_MakeSignedData [15:41:05]SAM_PROTO_SignData [15:41:05]wFMCommunicate request_size=4 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 0D 01 02 [15:41:05]Write to MH i2c: E2 08 00 89 02 80 0D 01 02 00 00 00 00 04 [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [15:41:05]RAPDU: 90 00 [15:41:05]wFMCommunicate OK [15:41:05]wFMCommunicate request_size=255 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 [15:41:06]Write to MH i2c: E2 02 01 8A 02 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 OFD Sender: No OFD packet to send [15:41:06]37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 00 00 4B [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 03 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [15:41:06]RAPDU: 90 00 [15:41:06]wFMCommunicate OK [15:41:06]wFMCommunicate request_size=132 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 10 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C2 00 00 35 04 06 00 A8 3A B1 47 75 AE [15:41:07]Write to MH i2c: E2 87 00 8B 02 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 10 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C2 00 00 35 04 06 00 A8 3A B1 47 75 AE 00 00 54 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 0D 03 02 [15:41:07]Write to MH i2c: E2 08 00 8C 02 80 0D 03 02 00 00 00 00 09 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0B 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0B 00 8C 02 00 54 7B 67 08 FE 1A A5 F3 90 00 F8 [15:41:07]RAPDU: 54 7B 67 08 FE 1A A5 F3 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_SignData done [15:41:07]FM_MakeSignedData done [15:41:07]CreateOFDProtocolMessage [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 11 00 00 [15:41:07]Write to MH i2c: E2 08 00 8D 02 80 11 00 00 00 00 00 00 09 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 8D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [15:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:07]wFMCommunicate OK [15:41:07]CreateOFDProtocolMessage done [15:41:07]OFDSenderStorePacket 49803 [15:41:07]StoreOFDPacket docnum=49803 [15:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 FC 2F 81 01 5F A9 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 10 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C2 00 00 35 04 06 00 A8 3A B1 47 75 AE 54 7B 67 08 FE 1A A5 F3 [15:41:07]CheckFolder [15:41:07]dirname=/storage/ofd_packets [15:41:07]CheckFolder done [15:41:07]ProducePacketName [15:41:07]name=ofd_packets/00049803 [15:41:07]NVStorageSaveData ofd_packets/00049803 [15:41:07]File name is /storage/ofd_packets/00049803 [15:41:07]Write 423 bytes [15:41:07]NVStorageSaveData done [15:41:07]OFDSenderStorePacket done [15:41:07]KKMCreateOFDPacket done [15:41:07]NVStorageSaveData kkm_last_timestamp [15:41:07]File name is /storage/kkm_last_timestamp [15:41:07]Write 4 bytes [15:41:07]NVStorageSaveData done [15:41:07]ExternCall_PrintAddStr [15:41:07]wPrintStart [15:41:07]Write to MH i2c: 01 00 00 8E 02 90 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 [15:41:07]MH_I2C_Read... [15:41:07]OFD Sender: Processing packet 49803 [packets to send 21, broken 20] [15:41:07]ProducePacketName [15:41:07]name=ofd_packets/00049803 [15:41:07]OFD Sender: To server: pG, [15:41:07]CommunicateWithHost lk.salyk.kg:30040 [15:41:07]ConnectInit lk.salyk.kg [15:41:07]Read from MH i2c: 01 07 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 07 00 8E 02 00 00 00 00 00 FF 0F A5 [15:41:07]RasterBufferAndPrint [15:41:07]line Счет N : (3)189981 [15:41:07]line ИНН: 02508201610067 [15:41:07]line Контрольно-Кассовый Чек [15:41:07]line ПРОДАЖА [15:41:07]line Товар: 745240075981 [15:41:07]line Автопарфюм 9 LA COSTA [15:41:07]line 1.000 * 300.00 [15:41:07]line = 300.00 [15:41:07]line НДС 12% НСП 1% [15:41:07]line > о реализуемом товаре [15:41:07]line Товар: 745240075936 [15:41:07]line Автопарфюм 4 SAUVAGE [15:41:07]line 2.000 * 300.00 [15:41:07]line = 600.00 [15:41:07]line НДС 12% НСП 1% [15:41:07]line > о реализуемом товаре [15:41:07]line ИТОГО: 900.00 [15:41:07]line НСП 1% : 7.96 [15:41:07]line НДС 12% : 95.58 [15:41:07]line Наличными: 0.00 [15:41:07]line Безнал.: 900.00 [15:41:07]line Место: АЗС № 95 "Партнер Нефть" [15:41:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:07]line СНО: Общий режим [15:41:07]line Чек 69 18.08.2024 15:41 [15:41:07]line Смена: 466 ФФД: 1.0 [15:41:07]line ЗНМ: 0300000078 [15:41:07]line РНМ: 0000000000092546 [15:41:07]line Версия ККМ: 001 [15:41:07]line Платежная система: O! деньги [15:41:07]line ФМ: 0000000000871800 [15:41:07]line ФД: 49803 [15:41:07]line ФПД: 184970035819950 [15:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49803&fm=184970035819950&tin=02508201610067®Number=0000000000092546&sum=90000 [15:41:07]line 0 [15:41:07]written 0, free lines is 4095 [15:41:07]Connected sock=11 [15:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 FC 2F 81 01 5F A9 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 62 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 38 31 06 04 1F 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 39 20 4C 41 20 43 4F 53 54 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 33 36 06 04 1E 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 34 20 53 41 55 56 41 47 45 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 Write to MH i2c: 01 00 00 BE 02 C0 [15:41:08]06 00 56 25 00 00 00 00 07 04 06 00 00 Write i2c OK [15:41:08]00 MH_I2C_Read... [15:41:08]00 00 00 00 39 04 06 Read from MH i2c: 00 01 90 [15:41:08]5F MH_I2C_Read... [15:41:08]01 00 00 00 1F 04 02 00 01 00 12 04 04 Read from MH i2c: 00 01 45 07 00 00 00 [15:41:08]00 MH_I2C_Read... [15:41:08]F4 03 04 00 10 16 C2 66 0E Read from MH i2c: 04 01 04 07 00 00 D2 BE 01 00 00 B9 04 01 00 01 0D 04 02 10 00 00 00 30 00 30 00 30 00 30 C5 30 0C 30 98 30 [15:41:08]30 RasterBufferAndPrint [15:41:08]30 line [15:41:08]30 line [15:41:08]30 line [15:41:08]39 line [15:41:08]32 35 34 36 11 04 10 00 30 30 30 line [15:41:08]30 30 written 0, free lines is 3486 [15:41:08]30 30 30 30 30 38 37 31 38 30 30 MH_Cut [15:41:08]10 Write to MH i2c: D1 04 01 04 00 00 C5 8B C2 00 00 35 04 06 00 A8 3A B1 02 47 01 75 99 AE [15:41:08]54 7B 67 08 FE 1A A5 F3 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 01 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 01 00 C5 02 00 98 [15:41:08]Write to MH i2c: 01 00 00 C6 02 C8 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 63 21 47 00 D7 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C2 00 00 F4 03 04 00 87 C0 C1 66 B6 04 01 00 00 82 E9 07 31 CC E9 58 86 [15:41:09]CommunicateWithHost err = 0 [15:41:09]CheckOFDResponse [15:41:09]1017 (14) - 77093643461234 [15:41:09]1041 (16) - 0000000000871800 [15:41:09]1040 (4) - 49803 [15:41:09]1012 (4) - 18.08.2024 09:36 [15:41:09]1206 (1) - 0 [15:41:09]OFD Sender: Remove packet 49803 [15:41:09]ProducePacketName [15:41:09]name=ofd_packets/00049803 [15:41:09]NVStorageDeleteData [15:41:09]*** Cut start [15:41:09]*** Purtial cut [15:41:09]*** CUTSNS_PIN = 0 [15:41:09]*** Stage 1: CUTSNS_PIN = 1 [15:41:09]OFD Sender: No OFD packet to send [15:41:11]Read from MH i2c: 01 [15:41:11]MH_I2C_Read... [15:41:11]*** Stop cut motor [15:41:11]*** Cut end [15:41:11]Read from MH i2c: 01 07 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [15:41:11]process_action close_receipt done [15:41:11]requested_data is exist [15:41:11]produce_requested_data [15:41:11]requested_item fm.sn is exist - process it [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 11 00 00 [15:41:11]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 17 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8E [15:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:11]wFMCommunicate OK [15:41:11]requested_item fd.num is exist - process it [15:41:11]SAM_PROTO_GetFieldsCounters [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 13 00 00 [15:41:11]Write to MH i2c: E2 08 00 C8 02 80 13 00 00 00 00 00 00 46 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 62 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 62 00 C8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8B C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_GetFieldsCounters done [15:41:11]requested_item shift.num is exist - process it [15:41:11]requested_item shift.opened is exist - process it [15:41:11]req_shift_opened [15:41:11]FM_GetShiftState [15:41:11]SAM_PROTO_GetShiftState [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 13 01 00 [15:41:11]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 65 [15:41:11]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_GetShiftState done [15:41:11]FM_GetShiftState done [15:41:11]req_shift_opened done [15:41:11]requested_item shift.open_date is exist - process it [15:41:11]req_shift_open_date [15:41:11]req_shift_open_date done [15:41:11]produce_requested_data done [15:41:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49803,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:11]process_action_free close_receipt [15:41:11]json_value_free [15:41:11]json_value_free done [15:41:11]process_json_proto returns [15:41:11]Send response to host [15:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49803,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:11]free response buf [15:41:11]execute_script done [15:41:11]execute_script returns [15:41:11]free content buf [15:41:11]Sock 8.Close socket [15:41:11]Sock 8.Thread stoped [15:41:12]accept exits with 9 [15:41:12]New connection [15:41:12]New thread 3067350372 created [15:41:12]Thread 3067493732 joined [15:41:12]Waiting for new connection... [15:41:12] Sock 9.Parse request [15:41:12]Sock 9.Check first char [15:41:12]Sock 9.First char is OK [15:41:12]request: POST /json_proto HTTP/1.0 [15:41:12]Method: POST [15:41:12]URL: /json_proto [15:41:12]Method is POST - this is cgi request [15:41:12]url: /json_proto [15:41:12]query_string will be loaded in cgi processing [15:41:12]execute_cgi json_proto POST (null) [15:41:12]execute_cgi path=json_proto method=POST [15:41:12]POST find Content-Length [15:41:12]Host: 172.17.46.196:8080 [15:41:12]Content-Length: 649 [15:41:12]Content-Type: application/json [15:41:12] [15:41:12]POST finish read [15:41:12]Found Content-Length = 649 [15:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189982", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:12]execute_script... [15:41: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 : (3)189982", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:12]POST & json_proto [15:41:12]process_json_proto [15:41:12]json parsed OK: [15:41:12]protocol is kg_v1.0 [15:41:12]action value=close_receipt [15:41:12]process_action close_receipt [15:41:12]cmd_close_receipt [15:41:12]MH_GetDate [15:41:12]Write to MH i2c: F0 00 00 CA 02 BB [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: F0 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: F0 09 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: F0 09 00 CA 02 00 19 16 C2 66 27 15 C2 66 7F [15:41:13]GetLastDocTimeStamp 1723995664 [15:41:13]current date 1723995673 [15:41:13]FM_GetShiftState [15:41:13]SAM_PROTO_GetShiftState [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 01 00 [15:41:13]Write to MH i2c: E2 08 00 CB 02 80 13 01 00 00 00 00 00 4A [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 CB 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 67 [15:41:13]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetShiftState done [15:41:13]FM_GetShiftState done [15:41:13]opened in 1723939759 [15:41:13]opened+sec_in_day 1724026159 [15:41:13]quantity*price = 8500 [15:41:13]sum+1 = 8501 [15:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 70 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49804 ФПД: 251157657566900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154113&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49804&fm=251157657566900&tin=02508201610067®Number=0000000000092546&sum=8500 0 [15:41:15]StoreToDocumentArchive [15:41:15]shift 466 fd 49804 [15:41:15]save to /storage/0466/doc_00049804 [15:41:15]save last doc name /storage/0466/doc_00049804 to /storage/kkm_last_doc_name [15:41:15]save OK [15:41:15]Clear old archive folders... [15:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:41:15]tlvbuf is 0066E060 [15:41:15]SAM_PROTO_ClearQueue [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 09 00 00 [15:41:15]Write to MH i2c: E2 08 00 D8 02 80 09 00 00 00 00 00 00 4C [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [15:41:15]RAPDU: 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_ClearQueue done [15:41:15]KKMCreateOFDPacket [15:41:15]OFDProtocolAddRootSTLVToBuf [15:41:15]FM_MakeSignedData [15:41:15]FM_MakeSignedData [15:41:15]SAM_PROTO_SignData [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 0D 01 02 [15:41:15]Write to MH i2c: E2 08 00 D9 02 80 0D 01 02 00 00 00 00 54 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [15:41:15]RAPDU: 90 00 [15:41:15]wFMCommunicate OK [15:41:15]wFMCommunicate request_size=255 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [15:41:15]Write to MH i2c: E2 02 01 DA 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 D8 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [15:41:16]RAPDU: 90 00 [15:41:16]wFMCommunicate OK [15:41:16]wFMCommunicate request_size=39 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C2 00 00 35 04 06 00 E4 6D 32 F6 3E B4 [15:41:16]Write to MH i2c: E2 2A 00 DB 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C2 00 00 35 04 06 00 E4 6D 32 F6 3E B4 00 00 C3 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [15:41:16]RAPDU: 90 00 [15:41:16]wFMCommunicate OK [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 0D 03 02 [15:41:16]Write to MH i2c: E2 08 00 DC 02 80 0D 03 02 00 00 00 00 59 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0B 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0B 00 DC 02 00 AB 71 6D F2 AA 77 9A A1 90 00 31 [15:41:16]RAPDU: AB 71 6D F2 AA 77 9A A1 90 00 [15:41:16]wFMCommunicate OK [15:41:16]SAM_PROTO_SignData done [15:41:16]FM_MakeSignedData done [15:41:16]CreateOFDProtocolMessage [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 11 00 00 [15:41:16]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A4 [15:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:16]wFMCommunicate OK [15:41:16]CreateOFDProtocolMessage done [15:41:16]OFDSenderStorePacket 49804 [15:41:16]StoreOFDPacket docnum=49804 [15:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 74 BF 24 01 78 97 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C2 00 00 35 04 06 00 E4 6D 32 F6 3E B4 AB 71 6D F2 AA 77 9A A1 [15:41:16]CheckFolder [15:41:16]dirname=/storage/ofd_packets [15:41:16]CheckFolder done [15:41:16]ProducePacketName [15:41:16]name=ofd_packets/00049804 [15:41:16]NVStorageSaveData ofd_packets/00049804 [15:41:16]File name is /storage/ofd_packets/00049804 [15:41:16]Write 330 bytes [15:41:16]NVStorageSaveData done [15:41:16]OFDSenderStorePacket done [15:41:16]KKMCreateOFDPacket done [15:41:16]NVStorageSaveData kkm_last_timestamp [15:41:16]File name is /storage/kkm_last_timestamp [15:41:16]Write 4 bytes [15:41:16]NVStorageSaveData done [15:41:16]ExternCall_PrintAddStr [15:41:16]wPrintStart [15:41:16]Write to MH i2c: 01 00 00 DE 02 E0 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 [15:41:16]MH_I2C_Read... [15:41:16]OFD Sender: Processing packet 49804 [packets to send 21, broken 20] [15:41:16]ProducePacketName [15:41:16]name=ofd_packets/00049804 [15:41:16]OFD Sender: To server: pG, [15:41:16]CommunicateWithHost lk.salyk.kg:30040 [15:41:16]ConnectInit lk.salyk.kg [15:41:16]Read from MH i2c: 01 07 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 FF 0F F5 [15:41:16]RasterBufferAndPrint [15:41:16]line Счет N : (3)189982 [15:41:16]line ИНН: 02508201610067 [15:41:16]line Контрольно-Кассовый Чек [15:41:16]line ПРОДАЖА [15:41:16]line Товар: 4870227273831 [15:41:16]line Лимонад Sunbel Мохито 1л [15:41:16]line 1.000 * 85.00 [15:41:16]line = 85.00 [15:41:16]line НДС 12% НСП 1% [15:41:16]line > о реализуемом товаре [15:41:16]line ИТОГО: 85.00 [15:41:16]line НСП 1% : 0.75 [15:41:16]line НДС 12% : 9.03 [15:41:16]line Наличными: 85.00 [15:41:16]line Безнал.: 0.00 [15:41:16]line Место: АЗС № 95 "Партнер Нефть" [15:41:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:16]line СНО: Общий режим [15:41:16]line Чек 70 18.08.2024 15:41 [15:41:16]line Смена: 466 ФФД: 1.0 [15:41:16]line ЗНМ: 0300000078 [15:41:16]line РНМ: 0000000000092546 [15:41:16]line Версия ККМ: 001 [15:41:16]line ФМ: 0000000000871800 [15:41:16]line ФД: 49804 [15:41:16]line ФПД: 251157657566900 [15:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154113&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49804&fm=251157657566900&tin=02508201610067®Number=0000000000092546&sum=8500 [15:41:16]line 0 [15:41:16]written 0, free lines is 4095 [15:41:16]Connected sock=8 [15:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 74 BF 24 01 78 97 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C2 00 00 35 04 06 00 E4 6D 32 F6 3E B4 AB 71 6D F2 AA 77 9A A1 [15:41:17]Write to MH i2c: 01 00 00 06 03 09 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 07 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 1B 0E 39 [15:41:17]RasterBufferAndPrint [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]line [15:41:17]written 0, free lines is 3670 [15:41:17]MH_Cut [15:41:17]Write to MH i2c: D1 01 00 0D 03 01 E2 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 01 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: D1 01 00 0D 03 00 E1 [15:41:17]Write to MH i2c: 01 00 00 0E 03 11 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1A 31 47 00 82 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C2 00 00 F4 03 04 00 90 C0 C1 66 B6 04 01 00 00 A1 BC 56 30 12 57 27 32 [15:41:17]CommunicateWithHost err = 0 [15:41:17]CheckOFDResponse [15:41:17]1017 (14) - 77093643461234 [15:41:17]1041 (16) - 0000000000871800 [15:41:17]1040 (4) - 49804 [15:41:17]1012 (4) - 18.08.2024 09:36 [15:41:17]1206 (1) - 0 [15:41:17]OFD Sender: Remove packet 49804 [15:41:17]ProducePacketName [15:41:17]name=ofd_packets/00049804 [15:41:17]NVStorageDeleteData [15:41:17]*** Cut start [15:41:17]*** Purtial cut [15:41:17]*** Stage 1: CUTSNS_PIN = 1 [15:41:18]Read from MH i2c: *** Stop cut motor [15:41:18]01 *** Cut end [15:41:18] [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 07 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [15:41:18]process_action close_receipt done [15:41:18]requested_data is exist [15:41:18]produce_requested_data [15:41:18]requested_item fm.sn is exist - process it [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 11 00 00 [15:41:18]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:18]E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [15:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:18]wFMCommunicate OK [15:41:18]requested_item fd.num is exist - process it [15:41:18]SAM_PROTO_GetFieldsCounters [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 13 00 00 [15:41:18]Write to MH i2c: E2 08 00 10 03 80 13 00 00 00 00 00 00 8F [15:41:18]OFD Sender: No OFD packet to send [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 62 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 62 00 10 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8C C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:18]wFMCommunicate OK [15:41:18]SAM_PROTO_GetFieldsCounters done [15:41:18]requested_item shift.num is exist - process it [15:41:18]requested_item shift.opened is exist - process it [15:41:18]req_shift_opened [15:41:18]FM_GetShiftState [15:41:18]SAM_PROTO_GetShiftState [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 13 01 00 [15:41:18]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0E 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AE [15:41:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:18]wFMCommunicate OK [15:41:18]SAM_PROTO_GetShiftState done [15:41:18]FM_GetShiftState done [15:41:18]req_shift_opened done [15:41:18]requested_item shift.open_date is exist - process it [15:41:18]req_shift_open_date [15:41:18]req_shift_open_date done [15:41:18]produce_requested_data done [15:41:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49804,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:18]process_action_free close_receipt [15:41:18]json_value_free [15:41:18]json_value_free done [15:41:18]process_json_proto returns [15:41:18]Send response to host [15:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49804,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:18]free response buf [15:41:18]execute_script done [15:41:18]execute_script returns [15:41:18]free content buf [15:41:18]Sock 9.Close socket [15:41:18]Sock 9.Thread stoped [15:41:19]accept exits with 10 [15:41:19]New connection [15:41:19]New thread 3067493732 created [15:41:19]Thread 3067350372 joined [15:41:19]Waiting for new connection... [15:41:19] Sock 10.Parse request [15:41:19]Sock 10.Check first char [15:41:19]Sock 10.First char is OK [15:41:19]request: POST /json_proto HTTP/1.0 [15:41:19]Method: POST [15:41:19]URL: /json_proto [15:41:19]Method is POST - this is cgi request [15:41:19]url: /json_proto [15:41:19]query_string will be loaded in cgi processing [15:41:19]execute_cgi json_proto POST (null) [15:41:19]execute_cgi path=json_proto method=POST [15:41:19]POST find Content-Length [15:41:19]Host: 172.17.46.196:8080 [15:41:19]Content-Length: 568 [15:41:19]Content-Type: application/json [15:41:19] [15:41:19]POST finish read [15:41:19]Found Content-Length = 568 [15:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189983", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:19]execute_script... [15:41: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 : (3)189983", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:19]POST & json_proto [15:41:19]process_json_proto [15:41:19]json parsed OK: [15:41:19]protocol is kg_v1.0 [15:41:19]action value=close_receipt [15:41:19]process_action close_receipt [15:41:19]cmd_close_receipt [15:41:19]MH_GetDate [15:41:19]Write to MH i2c: F0 00 00 12 03 04 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: F0 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: F0 09 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: F0 09 00 12 03 00 20 16 C2 66 27 15 C2 66 CF [15:41:19]GetLastDocTimeStamp 1723995673 [15:41:19]current date 1723995680 [15:41:19]FM_GetShiftState [15:41:19]SAM_PROTO_GetShiftState [15:41:19]wFMCommunicate request_size=4 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 13 01 00 [15:41:19]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:20]Read from MH i2c: E2 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: E2 0E 00 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B0 [15:41:20]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:20]wFMCommunicate OK [15:41:20]SAM_PROTO_GetShiftState done [15:41:20]FM_GetShiftState done [15:41:20]opened in 1723939759 [15:41:20]opened+sec_in_day 1724026159 [15:41:20]quantity*price = 13000 [15:41:20]sum+1 = 13001 [15:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 71 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49805 ФПД: 50053983167493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49805&fm=50053983167493&tin=02508201610067®Number=0000000000092546&sum=13000 0 [15:41:22]StoreToDocumentArchive [15:41:22]shift 466 fd 49805 [15:41:22]save to /storage/0466/doc_00049805 [15:41:22]save last doc name /storage/0466/doc_00049805 to /storage/kkm_last_doc_name [15:41:22]save OK [15:41:22]Clear old archive folders... [15:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:41:22]tlvbuf is 0067B080 [15:41:22]SAM_PROTO_ClearQueue [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 09 00 00 [15:41:22]Write to MH i2c: E2 08 00 20 03 80 09 00 00 00 00 00 00 95 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]SAM_PROTO_ClearQueue done [15:41:22]KKMCreateOFDPacket [15:41:22]OFDProtocolAddRootSTLVToBuf [15:41:22]FM_MakeSignedData [15:41:22]FM_MakeSignedData [15:41:22]SAM_PROTO_SignData [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 01 02 [15:41:22]Write to MH i2c: E2 08 00 21 03 80 0D 01 02 00 00 00 00 9D [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [15:41:22]RAPDU: 90 00 [15:41:22]wFMCommunicate OK [15:41:22]wFMCommunicate request_size=255 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 20 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C2 00 00 35 04 06 00 [15:41:22]Write to MH i2c: E2 02 01 22 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 20 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C2 00 00 35 04 06 00 00 00 76 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:23]Read from MH i2c: E2 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 03 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [15:41:23]RAPDU: 90 00 [15:41:23]wFMCommunicate OK [15:41:23]wFMCommunicate request_size=11 [15:41:23]MH_SAM_APDU [15:41:23]CAPDU: 80 0D 02 02 06 2D 86 19 E2 E4 05 [15:41:23]Write to MH i2c: E2 0E 00 23 03 80 0D 02 02 06 00 2D 86 19 E2 E4 05 00 00 43 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:23]Read from MH i2c: E2 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 03 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [15:41:23]RAPDU: 90 00 [15:41:23]wFMCommunicate OK [15:41:23]wFMCommunicate request_size=4 [15:41:23]MH_SAM_APDU [15:41:23]CAPDU: 80 0D 03 02 [15:41:23]Write to MH i2c: E2 08 00 24 03 80 0D 03 02 00 00 00 00 A2 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:23]Read from MH i2c: E2 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 0B 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 0B 00 24 03 00 0E 8B CE 64 3F A0 94 83 90 00 64 [15:41:23]RAPDU: 0E 8B CE 64 3F A0 94 83 90 00 [15:41:23]wFMCommunicate OK [15:41:23]SAM_PROTO_SignData done [15:41:23]FM_MakeSignedData done [15:41:23]CreateOFDProtocolMessage [15:41:23]wFMCommunicate request_size=4 [15:41:23]MH_SAM_APDU [15:41:23]CAPDU: 80 11 00 00 [15:41:23]Write to MH i2c: E2 08 00 25 03 80 11 00 00 00 00 00 00 A2 [15:41:23]OFD Sender: No OFD packet to send [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:23]Read from MH i2c: E2 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 17 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: E2 17 00 25 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 ED [15:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:23]wFMCommunicate OK [15:41:23]CreateOFDProtocolMessage done [15:41:23]OFDSenderStorePacket 49805 [15:41:23]StoreOFDPacket docnum=49805 [15:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 DE 85 08 01 F5 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 20 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C2 00 00 35 04 06 00 2D 86 19 E2 E4 05 0E 8B CE 64 3F A0 94 83 [15:41:23]CheckFolder [15:41:23]dirname=/storage/ofd_packets [15:41:23]CheckFolder done [15:41:23]ProducePacketName [15:41:23]name=ofd_packets/00049805 [15:41:23]NVStorageSaveData ofd_packets/00049805 [15:41:23]File name is /storage/ofd_packets/00049805 [15:41:23]Write 302 bytes [15:41:23]NVStorageSaveData done [15:41:23]OFDSenderStorePacket done [15:41:23]KKMCreateOFDPacket done [15:41:23]NVStorageSaveData kkm_last_timestamp [15:41:23]File name is /storage/kkm_last_timestamp [15:41:23]Write 4 bytes [15:41:23]NVStorageSaveData done [15:41:23]ExternCall_PrintAddStr [15:41:23]wPrintStart [15:41:23]Write to MH i2c: 01 00 00 26 03 29 [15:41:23]Write i2c OK [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 07 00 [15:41:23]MH_I2C_Read... [15:41:23]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [15:41:23]RasterBufferAndPrint [15:41:23]line Счет N : (3)189983 [15:41:23]line ИНН: 02508201610067 [15:41:23]line Контрольно-Кассовый Чек [15:41:23]line ПРОДАЖА [15:41:23]line Товар: 48744539 [15:41:23]line LD Compact Blue [15:41:23]line 1.000 * 130.00 [15:41:23]line = 130.00 [15:41:23]line НДС 12% НСП 1% [15:41:23]line > о реализуемом товаре [15:41:23]OFD Sender: Processing packet 49805 [packets to send 21, broken 20] [15:41:23]line ИТОГО: 130.00 [15:41:23]ProducePacketName [15:41:23]line НСП 1% : 1.15 [15:41:23]name=ofd_packets/00049805 [15:41:23]OFD Sender: To server: pG, [15:41:23]CommunicateWithHost lk.salyk.kg:30040 [15:41:23]line НДС 12% : 13.80 [15:41:23]ConnectInit lk.salyk.kg [15:41:23]line Наличными: 130.00 [15:41:23]line Безнал.: 0.00 [15:41:23]line Место: АЗС № 95 "Партнер Нефть" [15:41:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:23]line СНО: Общий режим [15:41:23]line Чек 71 18.08.2024 15:41 [15:41:23]line Смена: 466 ФФД: 1.0 [15:41:23]line ЗНМ: 0300000078 [15:41:23]line РНМ: 0000000000092546 [15:41:23]line Версия ККМ: 001 [15:41:23]line ФМ: 0000000000871800 [15:41:23]line ФД: 49805 [15:41:23]line ФПД: 50053983167493 [15:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49805&fm=50053983167493&tin=02508201610067®Number=0000000000092546&sum=13000 [15:41:23]line 0 [15:41:23]written 0, free lines is 4095 [15:41:24]Write to MH i2c: 01 00 00 4E 03 51 [15:41:24]Write i2c OK [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: 01 [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: 01 07 00 [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FD 0C 61 [15:41:24]RasterBufferAndPrint [15:41:24]line [15:41:24]line [15:41:24]line [15:41:24]line [15:41:24]line [15:41:24]written 0, free lines is 3391 [15:41:24]MH_Cut [15:41:24]Write to MH i2c: D1 01 00 55 03 01 2A [15:41:24]Write i2c OK [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: D1 [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: D1 01 00 [15:41:24]MH_I2C_Read... [15:41:24]Read from MH i2c: D1 01 00 55 03 00 29 [15:41:24]Write to MH i2c: 01 00 00 56 03 59 [15:41:24]Write i2c OK [15:41:24]MH_I2C_Read... [15:41:25]*** Cut start [15:41:25]*** Purtial cut [15:41:25]*** CUTSNS_PIN = 0 [15:41:25]*** Stage 1: CUTSNS_PIN = 1 [15:41:27]Read from MH i2c: *** Stop cut motor [15:41:27]01 *** Cut end [15:41:27] [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: 01 07 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 FF 0F 6E [15:41:27]process_action close_receipt done [15:41:27]requested_data is exist [15:41:27]produce_requested_data [15:41:27]requested_item fm.sn is exist - process it [15:41:27]wFMCommunicate request_size=4 [15:41:27]MH_SAM_APDU [15:41:27]CAPDU: 80 11 00 00 [15:41:27]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [15:41:27]Write i2c OK [15:41:27]MH_I2C_Read... [15:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:27]Read from MH i2c: E2 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 17 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [15:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:27]wFMCommunicate OK [15:41:27]requested_item fd.num is exist - process it [15:41:27]SAM_PROTO_GetFieldsCounters [15:41:27]wFMCommunicate request_size=4 [15:41:27]MH_SAM_APDU [15:41:27]CAPDU: 80 13 00 00 [15:41:27]Write to MH i2c: E2 08 00 58 03 80 13 00 00 00 00 00 00 D7 [15:41:27]Write i2c OK [15:41:27]MH_I2C_Read... [15:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:27]Read from MH i2c: E2 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 62 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 62 00 58 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:41:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8D C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:27]wFMCommunicate OK [15:41:27]SAM_PROTO_GetFieldsCounters done [15:41:27]requested_item shift.num is exist - process it [15:41:27]requested_item shift.opened is exist - process it [15:41:27]req_shift_opened [15:41:27]FM_GetShiftState [15:41:27]SAM_PROTO_GetShiftState [15:41:27]wFMCommunicate request_size=4 [15:41:27]MH_SAM_APDU [15:41:27]CAPDU: 80 13 01 00 [15:41:27]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [15:41:27]Write i2c OK [15:41:27]MH_I2C_Read... [15:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:27]Read from MH i2c: E2 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 0E 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F6 [15:41:27]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:27]wFMCommunicate OK [15:41:27]SAM_PROTO_GetShiftState done [15:41:27]FM_GetShiftState done [15:41:27]req_shift_opened done [15:41:27]requested_item shift.open_date is exist - process it [15:41:27]req_shift_open_date [15:41:27]req_shift_open_date done [15:41:27]produce_requested_data done [15:41:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49805,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:27]process_action_free close_receipt [15:41:27]json_value_free [15:41:27]json_value_free done [15:41:27]process_json_proto returns [15:41:27]Send response to host [15:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49805,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:27]free response buf [15:41:27]execute_script done [15:41:27]execute_script returns [15:41:27]free content buf [15:41:27]Sock 10.Close socket [15:41:27]Sock 10.Thread stoped [15:41:29]accept exits with 8 [15:41:29]New connection [15:41:29]New thread 3067350372 created [15:41:29]Thread 3067493732 joined [15:41:29]Waiting for new connection... [15:41:29] Sock 8.Parse request [15:41:29]Sock 8.Check first char [15:41:29]Sock 8.First char is OK [15:41:29]request: POST /json_proto HTTP/1.0 [15:41:29]Method: POST [15:41:29]URL: /json_proto [15:41:29]Method is POST - this is cgi request [15:41:29]url: /json_proto [15:41:29]query_string will be loaded in cgi processing [15:41:29]execute_cgi json_proto POST (null) [15:41:29]execute_cgi path=json_proto method=POST [15:41:29]POST find Content-Length [15:41:29]Host: 172.17.46.196:8080 [15:41:29]Content-Length: 1065 [15:41:29]Content-Type: application/json [15:41:29] [15:41:29]POST finish read [15:41:29]Found Content-Length = 1065 [15:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189984", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:29]execute_script... [15:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189984", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:29]POST & json_proto [15:41:29]process_json_proto [15:41:29]json parsed OK: [15:41:29]protocol is kg_v1.0 [15:41:29]action value=close_receipt [15:41:29]process_action close_receipt [15:41:29]cmd_close_receipt [15:41:29]MH_GetDate [15:41:29]Write to MH i2c: F0 00 00 5A 03 4C [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 5A 03 00 29 16 C2 66 27 15 C2 66 20 [15:41:29]GetLastDocTimeStamp 1723995680 [15:41:29]current date 1723995689 [15:41:29]FM_GetShiftState [15:41:29]SAM_PROTO_GetShiftState [15:41:29]wFMCommunicate request_size=4 [15:41:29]MH_SAM_APDU [15:41:29]CAPDU: 80 13 01 00 [15:41:29]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:29]Read from MH i2c: E2 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F8 [15:41:29]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:29]wFMCommunicate OK [15:41:29]SAM_PROTO_GetShiftState done [15:41:29]FM_GetShiftState done [15:41:29]opened in 1723939759 [15:41:29]opened+sec_in_day 1724026159 [15:41:29]quantity*price = 9000 [15:41:29]sum+1 = 9001 [15:41:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.04 НДС 12% : 24.43 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 72 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49806 ФПД: 2376240663615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154130&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49806&fm=2376240663615&tin=02508201610067®Number=0000000000092546&sum=23000 0 [15:41:31]StoreToDocumentArchive [15:41:31]shift 466 fd 49806 [15:41:31]save to /storage/0466/doc_00049806 [15:41:31]save last doc name /storage/0466/doc_00049806 to /storage/kkm_last_doc_name [15:41:31]save OK [15:41:31]Clear old archive folders... [15:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=396 [15:41:31]tlvbuf is 006A5600 [15:41:31]SAM_PROTO_ClearQueue [15:41:31]wFMCommunicate request_size=4 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 09 00 00 [15:41:31]Write to MH i2c: E2 08 00 68 03 80 09 00 00 00 00 00 00 DD [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [15:41:31]RAPDU: 90 00 [15:41:31]wFMCommunicate OK [15:41:31]SAM_PROTO_ClearQueue done [15:41:31]KKMCreateOFDPacket [15:41:31]OFDProtocolAddRootSTLVToBuf [15:41:31]FM_MakeSignedData [15:41:31]FM_MakeSignedData [15:41:31]SAM_PROTO_SignData [15:41:31]wFMCommunicate request_size=4 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 0D 01 02 [15:41:31]Write to MH i2c: E2 08 00 69 03 80 0D 01 02 00 00 00 00 E5 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [15:41:31]RAPDU: 90 00 [15:41:31]wFMCommunicate OK [15:41:31]wFMCommunicate request_size=255 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF [15:41:32]Write to MH i2c: E2 02 01 6A 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 00 00 69 [15:41:32]Write i2c OK [15:41:32]MH_I2C_Read... [15:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:32]Read from MH i2c: E2 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: E2 03 00 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [15:41:32]RAPDU: 90 00 [15:41:32]wFMCommunicate OK [15:41:32]wFMCommunicate request_size=155 [15:41:32]MH_SAM_APDU [15:41:32]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2A 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C2 00 00 35 04 06 00 02 29 42 FB 0C 3F [15:41:33]Write to MH i2c: E2 9E 00 6B 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2A 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C2 00 00 35 04 06 00 02 29 42 FB 0C 3F 00 00 5E [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 03 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [15:41:33]RAPDU: 90 00 [15:41:33]wFMCommunicate OK [15:41:33]wFMCommunicate request_size=4 [15:41:33]MH_SAM_APDU [15:41:33]CAPDU: 80 0D 03 02 [15:41:33]Write to MH i2c: E2 08 00 6C 03 80 0D 03 02 00 00 00 00 EA [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0B 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0B 00 6C 03 00 C4 51 45 07 B4 B9 C9 35 90 00 B7 [15:41:33]RAPDU: C4 51 45 07 B4 B9 C9 35 90 00 [15:41:33]wFMCommunicate OK [15:41:33]SAM_PROTO_SignData done [15:41:33]FM_MakeSignedData done [15:41:33]CreateOFDProtocolMessage [15:41:33]wFMCommunicate request_size=4 [15:41:33]MH_SAM_APDU [15:41:33]CAPDU: 80 11 00 00 [15:41:33]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 17 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [15:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:33]wFMCommunicate OK [15:41:33]CreateOFDProtocolMessage done [15:41:33]OFDSenderStorePacket 49806 [15:41:33]StoreOFDPacket docnum=49806 [15:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 2B 12 98 01 9D DD 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2A 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C2 00 00 35 04 06 00 02 29 42 FB 0C 3F C4 51 45 07 B4 B9 C9 35 [15:41:33]CheckFolder [15:41:33]dirname=/storage/ofd_packets [15:41:33]CheckFolder done [15:41:33]ProducePacketName [15:41:33]name=ofd_packets/00049806 [15:41:33]NVStorageSaveData ofd_packets/00049806 [15:41:33]File name is /storage/ofd_packets/00049806 [15:41:33]Write 446 bytes [15:41:33]NVStorageSaveData done [15:41:33]OFDSenderStorePacket done [15:41:33]KKMCreateOFDPacket done [15:41:33]NVStorageSaveData kkm_last_timestamp [15:41:33]File name is /storage/kkm_last_timestamp [15:41:33]Write 4 bytes [15:41:33]NVStorageSaveData done [15:41:33]ExternCall_PrintAddStr [15:41:33]wPrintStart [15:41:33]Write to MH i2c: 01 00 00 6E 03 71 [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: 01 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: 01 07 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: 01 07 00 6E 03 00 00 00 00 00 FF 0F 86 [15:41:33]RasterBufferAndPrint [15:41:33]line Счет N : (3)189984 [15:41:33]line ИНН: 02508201610067 [15:41:33]line Контрольно-Кассовый Чек [15:41:33]line ПРОДАЖА [15:41:33]line Товар: 4870022003305 [15:41:33]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:41:33]line 1.000 * 90.00 [15:41:33]line = 90.00 [15:41:33]line НДС 12% НСП 1% [15:41:33]line > о реализуемом товаре [15:41:33]line Товар: 48743570 [15:41:33]line Сигареты Winston XStyle Blue [15:41:33]line 1.000 * 140.00 [15:41:33]line = 140.00 [15:41:33]line НДС 12% НСП 1% [15:41:33]line > о реализуемом товаре [15:41:33]line ИТОГО: 230.00 [15:41:33]line НСП 1% : 2.04 [15:41:33]line НДС 12% : 24.43 [15:41:33]line Наличными: 0.00 [15:41:33]line Безнал.: 230.00 [15:41:33]line Место: АЗС № 95 "Партнер Нефть" [15:41:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:33]line СНО: Общий режим [15:41:33]line Чек 72 18.08.2024 15:41 [15:41:33]line Смена: 466 ФФД: 1.0 [15:41:33]line ЗНМ: 0300000078 [15:41:33]line РНМ: 0000000000092546 [15:41:33]line Версия ККМ: 001 [15:41:33]line Платежная система: O! деньги [15:41:33]line ФМ: 0000000000871800 [15:41:33]line ФД: 49806 [15:41:33]line ФПД: 2376240663615 [15:41:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154130&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49806&fm=2376240663615&tin=02508201610067®Number=0000000000092546&sum=23000 [15:41:33]line 0 [15:41:33]written 0, free lines is 4095 [15:41:34]Write to MH i2c: 01 00 00 9F 03 A2 [15:41:34]Write i2c OK [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: 01 [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: 01 07 00 [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 73 0C 28 [15:41:34]RasterBufferAndPrint [15:41:34]line [15:41:34]line [15:41:34]line [15:41:34]line [15:41:34]line [15:41:34]written 0, free lines is 3258 [15:41:34]MH_Cut [15:41:34]Write to MH i2c: D1 01 00 A6 03 01 7B [15:41:34]Write i2c OK [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: D1 [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: D1 01 00 [15:41:34]MH_I2C_Read... [15:41:34]Read from MH i2c: D1 01 00 A6 03 00 7A [15:41:34]Write to MH i2c: 01 00 00 A7 03 AA [15:41:34]Write i2c OK [15:41:34]MH_I2C_Read... [15:41:35]*** Cut start [15:41:35]*** Purtial cut [15:41:35]*** Stage 1: CUTSNS_PIN = 1 [15:41:35]Read from MH i2c: 01 [15:41:35]MH_I2C_Read... [15:41:35]*** Stop cut motor [15:41:35]*** Cut end [15:41:35]Read from MH i2c: 01 07 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [15:41:35]process_action close_receipt done [15:41:35]requested_data is exist [15:41:35]produce_requested_data [15:41:35]requested_item fm.sn is exist - process it [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 11 00 00 [15:41:35]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [15:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:35]wFMCommunicate OK [15:41:35]requested_item fd.num is exist - process it [15:41:35]SAM_PROTO_GetFieldsCounters [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 13 00 00 [15:41:35]Write to MH i2c: E2 08 00 A9 03 80 13 00 00 00 00 00 00 28 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 62 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 62 00 A9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8E C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:36]wFMCommunicate OK [15:41:36]SAM_PROTO_GetFieldsCounters done [15:41:36]requested_item shift.num is exist - process it [15:41:36]requested_item shift.opened is exist - process it [15:41:36]req_shift_opened [15:41:36]FM_GetShiftState [15:41:36]SAM_PROTO_GetShiftState [15:41:36]wFMCommunicate request_size=4 [15:41:36]MH_SAM_APDU [15:41:36]CAPDU: 80 13 01 00 [15:41:36]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:36]Read from MH i2c: E2 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: E2 0E 00 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 47 [15:41:36]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:36]wFMCommunicate OK [15:41:36]SAM_PROTO_GetShiftState done [15:41:36]FM_GetShiftState done [15:41:36]req_shift_opened done [15:41:36]requested_item shift.open_date is exist - process it [15:41:36]req_shift_open_date [15:41:36]req_shift_open_date done [15:41:36]produce_requested_data done [15:41:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49806,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:36]process_action_free close_receipt [15:41:36]json_value_free [15:41:36]json_value_free done [15:41:36]process_json_proto returns [15:41:36]Send response to host [15:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49806,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:36]free response buf [15:41:36]execute_script done [15:41:36]execute_script returns [15:41:36]free content buf [15:41:36]Sock 8.Close socket [15:41:36]Sock 8.Thread stoped [15:41:37]accept exits with 10 [15:41:37]New connection [15:41:37]New thread 3067493732 created [15:41:37]Thread 3067350372 joined [15:41:37]Waiting for new connection... [15:41:37] Sock 10.Parse request [15:41:37]Sock 10.Check first char [15:41:37]Sock 10.First char is OK [15:41:37]request: POST /json_proto HTTP/1.0 [15:41:37]Method: POST [15:41:37]URL: /json_proto [15:41:37]Method is POST - this is cgi request [15:41:37]url: /json_proto [15:41:37]query_string will be loaded in cgi processing [15:41:37]execute_cgi json_proto POST (null) [15:41:37]execute_cgi path=json_proto method=POST [15:41:37]POST find Content-Length [15:41:37]Host: 172.17.46.196:8080 [15:41:37]Content-Length: 641 [15:41:37]Content-Type: application/json [15:41:37] [15:41:37]POST finish read [15:41:37]Found Content-Length = 641 [15:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189985", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:37]execute_script... [15:41: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 : (3)189985", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:37]POST & json_proto [15:41:37]process_json_proto [15:41:37]json parsed OK: [15:41:37]protocol is kg_v1.0 [15:41:37]action value=close_receipt [15:41:37]process_action close_receipt [15:41:37]cmd_close_receipt [15:41:37]MH_GetDate [15:41:37]Write to MH i2c: F0 00 00 AB 03 9D [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: F0 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: F0 09 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: F0 09 00 AB 03 00 32 16 C2 66 27 15 C2 66 7A [15:41:38]GetLastDocTimeStamp 1723995690 [15:41:38]current date 1723995698 [15:41:38]FM_GetShiftState [15:41:38]SAM_PROTO_GetShiftState [15:41:38]wFMCommunicate request_size=4 [15:41:38]MH_SAM_APDU [15:41:38]CAPDU: 80 13 01 00 [15:41:38]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [15:41:38]Write i2c OK [15:41:38]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0E 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 49 [15:41:38]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:38]wFMCommunicate OK [15:41:38]SAM_PROTO_GetShiftState done [15:41:38]FM_GetShiftState done [15:41:38]opened in 1723939759 [15:41:38]opened+sec_in_day 1724026159 [15:41:38]quantity*price = 4000 [15:41:38]sum+1 = 4001 [15:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 73 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49807 ФПД: 671645573605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49807&fm=671645573605&tin=02508201610067®Number=0000000000092546&sum=4000 0 [15:41:40]StoreToDocumentArchive [15:41:40]shift 466 fd 49807 [15:41:40]save to /storage/0466/doc_00049807 [15:41:40]save last doc name /storage/0466/doc_00049807 to /storage/kkm_last_doc_name [15:41:40]save OK [15:41:40]Clear old archive folders... [15:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:41:40]tlvbuf is 006C14A0 [15:41:40]SAM_PROTO_ClearQueue [15:41:40]wFMCommunicate request_size=4 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 09 00 00 [15:41:40]Write to MH i2c: E2 08 00 B9 03 80 09 00 00 00 00 00 00 2E [15:41:40]Write i2c OK [15:41:40]MH_I2C_Read... [15:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:40]Read from MH i2c: E2 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 03 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [15:41:40]RAPDU: 90 00 [15:41:40]wFMCommunicate OK [15:41:40]SAM_PROTO_ClearQueue done [15:41:40]KKMCreateOFDPacket [15:41:40]OFDProtocolAddRootSTLVToBuf [15:41:40]FM_MakeSignedData [15:41:40]FM_MakeSignedData [15:41:40]SAM_PROTO_SignData [15:41:40]wFMCommunicate request_size=4 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 0D 01 02 [15:41:40]Write to MH i2c: E2 08 00 BA 03 80 0D 01 02 00 00 00 00 36 [15:41:40]Write i2c OK [15:41:40]MH_I2C_Read... [15:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:40]Read from MH i2c: E2 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 03 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [15:41:40]RAPDU: 90 00 [15:41:40]wFMCommunicate OK [15:41:40]wFMCommunicate request_size=255 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [15:41:40]Write to MH i2c: E2 02 01 BB 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E3 [15:41:41]Write i2c OK [15:41:41]MH_I2C_Read... [15:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:41]Read from MH i2c: E2 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 03 00 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [15:41:41]RAPDU: 90 00 [15:41:41]wFMCommunicate OK [15:41:41]wFMCommunicate request_size=31 [15:41:41]MH_SAM_APDU [15:41:41]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 8F C2 00 00 35 04 06 00 00 9C 61 32 21 E5 [15:41:41]Write to MH i2c: E2 22 00 BC 03 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 8F C2 00 00 35 04 06 00 00 9C 61 32 21 E5 00 00 E2 [15:41:41]Write i2c OK [15:41:41]MH_I2C_Read... [15:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:41]Read from MH i2c: E2 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 03 00 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [15:41:41]RAPDU: 90 00 [15:41:41]wFMCommunicate OK [15:41:41]wFMCommunicate request_size=4 [15:41:41]MH_SAM_APDU [15:41:41]CAPDU: 80 0D 03 02 [15:41:41]Write to MH i2c: E2 08 00 BD 03 80 0D 03 02 00 00 00 00 3B [15:41:41]Write i2c OK [15:41:41]MH_I2C_Read... [15:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:41]Read from MH i2c: E2 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 0B 00 [15:41:41]MH_I2C_Read... [15:41:41]Read from MH i2c: E2 0B 00 BD 03 00 B3 39 E0 09 AA 96 E4 5E 90 00 93 [15:41:41]RAPDU: B3 39 E0 09 AA 96 E4 5E 90 00 [15:41:41]wFMCommunicate OK [15:41:41]SAM_PROTO_SignData done [15:41:41]FM_MakeSignedData done [15:41:41]CreateOFDProtocolMessage [15:41:41]wFMCommunicate request_size=4 [15:41:41]MH_SAM_APDU [15:41:41]CAPDU: 80 11 00 00 [15:41:41]Write to MH i2c: E2 08 00 BE 03 80 11 00 00 00 00 00 00 3B [15:41:41]Write i2c OK [15:41:41]MH_I2C_Read... [15:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:42]Read from MH i2c: E2 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 17 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 17 00 BE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [15:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:42]wFMCommunicate OK [15:41:42]CreateOFDProtocolMessage done [15:41:42]OFDSenderStorePacket 49807 [15:41:42]StoreOFDPacket docnum=49807 [15:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 39 F6 1C 01 60 71 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C2 00 00 35 04 06 00 00 9C 61 32 21 E5 B3 39 E0 09 AA 96 E4 5E [15:41:42]CheckFolder [15:41:42]dirname=/storage/ofd_packets [15:41:42]CheckFolder done [15:41:42]ProducePacketName [15:41:42]name=ofd_packets/00049807 [15:41:42]NVStorageSaveData ofd_packets/00049807 [15:41:42]File name is /storage/ofd_packets/00049807 [15:41:42]Write 322 bytes [15:41:42]NVStorageSaveData done [15:41:42]OFDSenderStorePacket done [15:41:42]KKMCreateOFDPacket done [15:41:42]NVStorageSaveData kkm_last_timestamp [15:41:42]File name is /storage/kkm_last_timestamp [15:41:42]Write 4 bytes [15:41:42]NVStorageSaveData done [15:41:42]ExternCall_PrintAddStr [15:41:42]wPrintStart [15:41:42]Write to MH i2c: 01 00 00 BF 03 C2 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 07 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 FF 0F D7 [15:41:42]RasterBufferAndPrint [15:41:42]line Счет N : (3)189985 [15:41:42]line ИНН: 02508201610067 [15:41:42]line Контрольно-Кассовый Чек [15:41:42]line ПРОДАЖА [15:41:42]line Товар: 40822426 [15:41:42]line Вода Бонаква 0,5л б/г [15:41:42]line 1.000 * 40.00 [15:41:42]line = 40.00 [15:41:42]line НДС 12% НСП 1% [15:41:42]line > о реализуемом товаре [15:41:42]line ИТОГО: 40.00 [15:41:42]line НСП 1% : 0.35 [15:41:42]line НДС 12% : 4.25 [15:41:42]line Наличными: 40.00 [15:41:42]line Безнал.: 0.00 [15:41:42]line Место: АЗС № 95 "Партнер Нефть" [15:41:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:42]line СНО: Общий режим [15:41:42]line Чек 73 18.08.2024 15:41 [15:41:42]line Смена: 466 ФФД: 1.0 [15:41:42]line ЗНМ: 0300000078 [15:41:42]line РНМ: 0000000000092546 [15:41:42]line Версия ККМ: 001 [15:41:42]line ФМ: 0000000000871800 [15:41:42]line ФД: 49807 [15:41:42]line ФПД: 671645573605 [15:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49807&fm=671645573605&tin=02508201610067®Number=0000000000092546&sum=4000 [15:41:42]line 0 [15:41:42]written 0, free lines is 4095 [15:41:42]Write to MH i2c: 01 00 00 E7 03 EA [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 07 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 05 0D 03 [15:41:42]RasterBufferAndPrint [15:41:42]line [15:41:42]line [15:41:42]line [15:41:42]line [15:41:42]line [15:41:42]written 0, free lines is 3409 [15:41:42]MH_Cut [15:41:42]Write to MH i2c: D1 01 00 EE 03 01 C3 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: D1 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: D1 01 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: D1 01 00 EE 03 00 C2 [15:41:42]Write to MH i2c: 01 00 00 EF 03 F2 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:43]*** Cut start [15:41:43]*** Purtial cut [15:41:43]*** CUTSNS_PIN = 0 [15:41:43]*** Stage 1: CUTSNS_PIN = 1 [15:41:45]Read from MH i2c: 01 [15:41:45]MH_I2C_Read... [15:41:45]*** Stop cut motor [15:41:45]*** Cut end [15:41:45]Read from MH i2c: 01 07 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [15:41:45]process_action close_receipt done [15:41:45]requested_data is exist [15:41:45]produce_requested_data [15:41:45]requested_item fm.sn is exist - process it [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 11 00 00 [15:41:45]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:45]Read from MH i2c: E2 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 17 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [15:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:45]wFMCommunicate OK [15:41:45]requested_item fd.num is exist - process it [15:41:45]SAM_PROTO_GetFieldsCounters [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 13 00 00 [15:41:45]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:45]Read from MH i2c: E2 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 62 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetFieldsCounters done [15:41:46]requested_item shift.num is exist - process it [15:41:46]requested_item shift.opened is exist - process it [15:41:46]req_shift_opened [15:41:46]FM_GetShiftState [15:41:46]SAM_PROTO_GetShiftState [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 13 01 00 [15:41:46]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8F [15:41:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetShiftState done [15:41:46]FM_GetShiftState done [15:41:46]req_shift_opened done [15:41:46]requested_item shift.open_date is exist - process it [15:41:46]req_shift_open_date [15:41:46]req_shift_open_date done [15:41:46]produce_requested_data done [15:41:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49807,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:46]process_action_free close_receipt [15:41:46]json_value_free [15:41:46]json_value_free done [15:41:46]process_json_proto returns [15:41:46]Send response to host [15:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49807,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:46]free response buf [15:41:46]execute_script done [15:41:46]execute_script returns [15:41:46]free content buf [15:41:46]Sock 10.Close socket [15:41:46]Sock 10.Thread stoped [15:41:47]accept exits with 8 [15:41:47]New connection [15:41:47]New thread 3067350372 created [15:41:47]Thread 3067493732 joined [15:41:47]Waiting for new connection... [15:41:47] Sock 8.Parse request [15:41:47]Sock 8.Check first char [15:41:47]Sock 8.First char is OK [15:41:47]request: POST /json_proto HTTP/1.0 [15:41:47]Method: POST [15:41:47]URL: /json_proto [15:41:47]Method is POST - this is cgi request [15:41:47]url: /json_proto [15:41:47]query_string will be loaded in cgi processing [15:41:47]execute_cgi json_proto POST (null) [15:41:47]execute_cgi path=json_proto method=POST [15:41:47]POST find Content-Length [15:41:47]Host: 172.17.46.196:8080 [15:41:47]Content-Length: 782 [15:41:47]Content-Type: application/json [15:41:47] [15:41:47]POST finish read [15:41:47]Found Content-Length = 782 [15:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189986", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:47]execute_script... [15:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189986", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:47]POST & json_proto [15:41:47]process_json_proto [15:41:47]json parsed OK: [15:41:47]protocol is kg_v1.0 [15:41:47]action value=close_receipt [15:41:47]process_action close_receipt [15:41:47]cmd_close_receipt [15:41:47]MH_GetDate [15:41:47]Write to MH i2c: F0 00 00 F3 03 E5 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 09 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 09 00 F3 03 00 3C 16 C2 66 27 15 C2 66 CC [15:41:47]GetLastDocTimeStamp 1723995698 [15:41:47]current date 1723995708 [15:41:47]FM_GetShiftState [15:41:47]SAM_PROTO_GetShiftState [15:41:47]wFMCommunicate request_size=4 [15:41:47]MH_SAM_APDU [15:41:47]CAPDU: 80 13 01 00 [15:41:47]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0E 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 91 [15:41:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_GetShiftState done [15:41:48]FM_GetShiftState done [15:41:48]opened in 1723939759 [15:41:48]opened+sec_in_day 1724026159 [15:41:48]quantity*price = 14000 [15:41:48]sum+1 = 14001 [15:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 74 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49808 ФПД: 225040085079854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154148&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49808&fm=225040085079854&tin=02508201610067®Number=0000000000092546&sum=14000 0 [15:41:50]StoreToDocumentArchive [15:41:50]shift 466 fd 49808 [15:41:50]save to /storage/0466/doc_00049808 [15:41:50]save last doc name /storage/0466/doc_00049808 to /storage/kkm_last_doc_name [15:41:50]save OK [15:41:50]Clear old archive folders... [15:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:41:50]tlvbuf is 006A7540 [15:41:50]SAM_PROTO_ClearQueue [15:41:50]wFMCommunicate request_size=4 [15:41:50]MH_SAM_APDU [15:41:50]CAPDU: 80 09 00 00 [15:41:50]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [15:41:50]Write i2c OK [15:41:50]MH_I2C_Read... [15:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:50]Read from MH i2c: E2 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: E2 03 00 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [15:41:50]RAPDU: 90 00 [15:41:50]wFMCommunicate OK [15:41:50]SAM_PROTO_ClearQueue done [15:41:50]KKMCreateOFDPacket [15:41:50]OFDProtocolAddRootSTLVToBuf [15:41:50]FM_MakeSignedData [15:41:50]FM_MakeSignedData [15:41:50]SAM_PROTO_SignData [15:41:50]wFMCommunicate request_size=4 [15:41:50]MH_SAM_APDU [15:41:50]CAPDU: 80 0D 01 02 [15:41:50]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [15:41:50]Write i2c OK [15:41:50]MH_I2C_Read... [15:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:50]Read from MH i2c: E2 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: E2 03 00 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [15:41:50]RAPDU: 90 00 [15:41:50]wFMCommunicate OK [15:41:50]wFMCommunicate request_size=255 [15:41:50]MH_SAM_APDU [15:41:50]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3C 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [15:41:50]Write to MH i2c: E2 02 01 03 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3C 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 0C [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 03 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [15:41:51]RAPDU: 90 00 [15:41:51]wFMCommunicate OK [15:41:51]wFMCommunicate request_size=32 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C2 00 00 35 04 06 00 CC AC 3A 54 D7 2E [15:41:51]Write to MH i2c: E2 23 00 04 04 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C2 00 00 35 04 06 00 CC AC 3A 54 D7 2E 00 00 34 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 03 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [15:41:51]RAPDU: 90 00 [15:41:51]wFMCommunicate OK [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 0D 03 02 [15:41:51]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0B 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0B 00 05 04 00 63 2D 5C 29 B2 59 6B 34 90 00 44 [15:41:51]RAPDU: 63 2D 5C 29 B2 59 6B 34 90 00 [15:41:51]wFMCommunicate OK [15:41:51]SAM_PROTO_SignData done [15:41:51]FM_MakeSignedData done [15:41:51]CreateOFDProtocolMessage [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 11 00 00 [15:41:51]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 17 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [15:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:52]wFMCommunicate OK [15:41:52]CreateOFDProtocolMessage done [15:41:52]OFDSenderStorePacket 49808 [15:41:52]StoreOFDPacket docnum=49808 [15:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 5F 26 1D 01 5F 22 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3C 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C2 00 00 35 04 06 00 CC AC 3A 54 D7 2E 63 2D 5C 29 B2 59 6B 34 [15:41:52]CheckFolder [15:41:52]dirname=/storage/ofd_packets [15:41:52]CheckFolder done [15:41:52]ProducePacketName [15:41:52]name=ofd_packets/00049808 [15:41:52]NVStorageSaveData ofd_packets/00049808 [15:41:52]File name is /storage/ofd_packets/00049808 [15:41:52]Write 323 bytes [15:41:52]NVStorageSaveData done [15:41:52]OFDSenderStorePacket done [15:41:52]KKMCreateOFDPacket done [15:41:52]NVStorageSaveData kkm_last_timestamp [15:41:52]File name is /storage/kkm_last_timestamp [15:41:52]Write 4 bytes [15:41:52]NVStorageSaveData done [15:41:52]ExternCall_PrintAddStr [15:41:52]wPrintStart [15:41:52]Write to MH i2c: 01 00 00 07 04 0B [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 07 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [15:41:52]RasterBufferAndPrint [15:41:52]line Счет N : (3)189986 [15:41:52]line ИНН: 02508201610067 [15:41:52]line Контрольно-Кассовый Чек [15:41:52]line ПРОДАЖА [15:41:52]line Товар: 48743570 [15:41:52]line Сигареты Winston XStyle Blue [15:41:52]line 1.000 * 140.00 [15:41:52]line = 140.00 [15:41:52]line НДС 12% НСП 1% [15:41:52]line > о реализуемом товаре [15:41:52]line ИТОГО: 140.00 [15:41:52]line НСП 1% : 1.24 [15:41:52]line НДС 12% : 14.87 [15:41:52]line Наличными: 0.00 [15:41:52]line Безнал.: 140.00 [15:41:52]line Место: АЗС № 95 "Партнер Нефть" [15:41:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:52]line СНО: Общий режим [15:41:52]line Чек 74 18.08.2024 15:41 [15:41:52]line Смена: 466 ФФД: 1.0 [15:41:52]line ЗНМ: 0300000078 [15:41:52]line РНМ: 0000000000092546 [15:41:52]line Версия ККМ: 001 [15:41:52]line Платежная система: O! деньги [15:41:52]line ФМ: 0000000000871800 [15:41:52]line ФД: 49808 [15:41:52]line ФПД: 225040085079854 [15:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154148&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49808&fm=225040085079854&tin=02508201610067®Number=0000000000092546&sum=14000 [15:41:52]line 0 [15:41:52]written 0, free lines is 4095 [15:41:52]Write to MH i2c: 01 00 00 31 04 35 [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 07 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 E2 0C 2A [15:41:52]RasterBufferAndPrint [15:41:52]line [15:41:52]line [15:41:52]line [15:41:52]line [15:41:52]line [15:41:52]written 0, free lines is 3373 [15:41:52]MH_Cut [15:41:52]Write to MH i2c: D1 01 00 38 04 01 0E [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: D1 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: D1 01 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: D1 01 00 38 04 00 0D [15:41:52]Write to MH i2c: 01 00 00 39 04 3D [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:53]*** Cut start [15:41:53]*** Purtial cut [15:41:53]*** Stage 1: CUTSNS_PIN = 1 [15:41:53]Read from MH i2c: 01 [15:41:53]MH_I2C_Read... [15:41:53]*** Stop cut motor [15:41:53]*** Cut end [15:41:53]Read from MH i2c: 01 07 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [15:41:53]process_action close_receipt done [15:41:53]requested_data is exist [15:41:53]produce_requested_data [15:41:53]requested_item fm.sn is exist - process it [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 11 00 00 [15:41:53]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 17 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 03 [15:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:53]wFMCommunicate OK [15:41:53]requested_item fd.num is exist - process it [15:41:53]SAM_PROTO_GetFieldsCounters [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 13 00 00 [15:41:53]Write to MH i2c: E2 08 00 3B 04 80 13 00 00 00 00 00 00 BB [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 62 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 62 00 3B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:54]wFMCommunicate OK [15:41:54]SAM_PROTO_GetFieldsCounters done [15:41:54]requested_item shift.num is exist - process it [15:41:54]requested_item shift.opened is exist - process it [15:41:54]req_shift_opened [15:41:54]FM_GetShiftState [15:41:54]SAM_PROTO_GetShiftState [15:41:54]wFMCommunicate request_size=4 [15:41:54]MH_SAM_APDU [15:41:54]CAPDU: 80 13 01 00 [15:41:54]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:54]Read from MH i2c: E2 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: E2 0E 00 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DA [15:41:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:54]wFMCommunicate OK [15:41:54]SAM_PROTO_GetShiftState done [15:41:54]FM_GetShiftState done [15:41:54]req_shift_opened done [15:41:54]requested_item shift.open_date is exist - process it [15:41:54]req_shift_open_date [15:41:54]req_shift_open_date done [15:41:54]produce_requested_data done [15:41:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49808,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:41:54]process_action_free close_receipt [15:41:54]json_value_free [15:41:54]json_value_free done [15:41:54]process_json_proto returns [15:41:54]Send response to host [15:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49808,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:41:54]free response buf [15:41:54]execute_script done [15:41:54]execute_script returns [15:41:54]free content buf [15:41:54]Sock 8.Close socket [15:41:54]Sock 8.Thread stoped [15:41:55]accept exits with 10 [15:41:55]New connection [15:41:55]New thread 3067493732 created [15:41:55]Thread 3067350372 joined [15:41:55]Waiting for new connection... [15:41:55] Sock 10.Parse request [15:41:55]Sock 10.Check first char [15:41:55]Sock 10.First char is OK [15:41:55]request: POST /json_proto HTTP/1.0 [15:41:55]Method: POST [15:41:55]URL: /json_proto [15:41:55]Method is POST - this is cgi request [15:41:55]url: /json_proto [15:41:55]query_string will be loaded in cgi processing [15:41:55]execute_cgi json_proto POST (null) [15:41:55]execute_cgi path=json_proto method=POST [15:41:55]POST find Content-Length [15:41:55]Host: 172.17.46.196:8080 [15:41:55]Content-Length: 742 [15:41:55]Content-Type: application/json [15:41:55] [15:41:55]POST finish read [15:41:55]Found Content-Length = 742 [15:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189987", "tax_sys" : 0, "items" : [ { "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:55]execute_script... [15:41: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 : (3)189987", "tax_sys" : 0, "items" : [ { "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:55]POST & json_proto [15:41:55]process_json_proto [15:41:55]json parsed OK: [15:41:55]protocol is kg_v1.0 [15:41:55]action value=close_receipt [15:41:55]process_action close_receipt [15:41:55]cmd_close_receipt [15:41:55]MH_GetDate [15:41:55]Write to MH i2c: F0 00 00 3D 04 30 [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: F0 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: F0 09 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: F0 09 00 3D 04 00 44 16 C2 66 27 15 C2 66 1F [15:41:55]GetLastDocTimeStamp 1723995708 [15:41:55]current date 1723995716 [15:41:55]FM_GetShiftState [15:41:55]SAM_PROTO_GetShiftState [15:41:55]wFMCommunicate request_size=4 [15:41:55]MH_SAM_APDU [15:41:55]CAPDU: 80 13 01 00 [15:41:55]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:55]Read from MH i2c: E2 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 0E 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DC [15:41:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:41:56]wFMCommunicate OK [15:41:56]SAM_PROTO_GetShiftState done [15:41:56]FM_GetShiftState done [15:41:56]opened in 1723939759 [15:41:56]opened+sec_in_day 1724026159 [15:41:56]quantity*price = 5900 [15:41:56]sum+1 = 5901 [15:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 75 18.08.2024 15:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49809 ФПД: 216915294334269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154156&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49809&fm=216915294334269&tin=02508201610067®Number=0000000000092546&sum=5900 0 [15:41:58]StoreToDocumentArchive [15:41:58]shift 466 fd 49809 [15:41:58]save to /storage/0466/doc_00049809 [15:41:58]save last doc name /storage/0466/doc_00049809 to /storage/kkm_last_doc_name [15:41:58]save OK [15:41:58]Clear old archive folders... [15:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=309 [15:41:58]tlvbuf is 005F9570 [15:41:58]SAM_PROTO_ClearQueue [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 09 00 00 [15:41:58]Write to MH i2c: E2 08 00 4B 04 80 09 00 00 00 00 00 00 C1 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 03 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [15:41:58]RAPDU: 90 00 [15:41:58]wFMCommunicate OK [15:41:58]SAM_PROTO_ClearQueue done [15:41:58]KKMCreateOFDPacket [15:41:58]OFDProtocolAddRootSTLVToBuf [15:41:58]FM_MakeSignedData [15:41:58]FM_MakeSignedData [15:41:58]SAM_PROTO_SignData [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 0D 01 02 [15:41:58]Write to MH i2c: E2 08 00 4C 04 80 0D 01 02 00 00 00 00 C9 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 03 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [15:41:58]RAPDU: 90 00 [15:41:58]wFMCommunicate OK [15:41:58]wFMCommunicate request_size=255 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 44 16 C2 66 0E 04 04 00 D2 01 00 00 [15:41:58]Write to MH i2c: E2 02 01 4D 04 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 44 16 C2 66 0E 04 04 00 D2 01 00 00 00 00 C2 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]wFMCommunicate request_size=68 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C2 00 00 35 04 06 00 C5 48 87 10 AD 3D [15:41:59]Write to MH i2c: E2 47 00 4E 04 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C2 00 00 35 04 06 00 C5 48 87 10 AD 3D 00 00 B9 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 0D 03 02 [15:41:59]Write to MH i2c: E2 08 00 4F 04 80 0D 03 02 00 00 00 00 CE [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 4F 04 00 C8 3C E6 3C 2D BD A6 1E 90 00 A3 [15:42:00]RAPDU: C8 3C E6 3C 2D BD A6 1E 90 00 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_SignData done [15:42:00]FM_MakeSignedData done [15:42:00]CreateOFDProtocolMessage [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 11 00 00 [15:42:00]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 19 [15:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:00]wFMCommunicate OK [15:42:00]CreateOFDProtocolMessage done [15:42:00]OFDSenderStorePacket 49809 [15:42:00]StoreOFDPacket docnum=49809 [15:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 49 01 00 00 A4 2E 41 01 BC 60 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 44 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C2 00 00 35 04 06 00 C5 48 87 10 AD 3D C8 3C E6 3C 2D BD A6 1E [15:42:00]CheckFolder [15:42:00]dirname=/storage/ofd_packets [15:42:00]CheckFolder done [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00049809 [15:42:00]NVStorageSaveData ofd_packets/00049809 [15:42:00]File name is /storage/ofd_packets/00049809 [15:42:00]Write 359 bytes [15:42:00]NVStorageSaveData done [15:42:00]OFDSenderStorePacket done [15:42:00]KKMCreateOFDPacket done [15:42:00]NVStorageSaveData kkm_last_timestamp [15:42:00]File name is /storage/kkm_last_timestamp [15:42:00]Write 4 bytes [15:42:00]NVStorageSaveData done [15:42:00]ExternCall_PrintAddStr [15:42:00]wPrintStart [15:42:00]Write to MH i2c: 01 00 00 51 04 55 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [15:42:00]RasterBufferAndPrint [15:42:00]line Счет N : (3)189987 [15:42:00]line ИНН: 02508201610067 [15:42:00]line Контрольно-Кассовый Чек [15:42:00]line ПРОДАЖА [15:42:00]line Товар: 4630056952563 [15:42:00]line Печ Юбилейное Торжество молочное 120г [15:42:00]line 1.000 * 59.00 [15:42:00]line = 59.00 [15:42:00]line НДС 12% НСП 1% [15:42:00]line > о реализуемом товаре [15:42:00]line ИТОГО: 59.00 [15:42:00]line НСП 1% : 0.52 [15:42:00]line НДС 12% : 6.26 [15:42:00]line Наличными: 59.00 [15:42:00]line Безнал.: 0.00 [15:42:00]line Место: АЗС № 95 "Партнер Нефть" [15:42:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:42:00]line СНО: Общий режим [15:42:00]line Чек 75 18.08.2024 15:41 [15:42:00]line Смена: 466 ФФД: 1.0 [15:42:00]line ЗНМ: 0300000078 [15:42:00]line РНМ: 0000000000092546 [15:42:00]line Версия ККМ: 001 [15:42:00]line ФМ: 0000000000871800 [15:42:00]line ФД: 49809 [15:42:00]line ФПД: 216915294334269 [15:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154156&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49809&fm=216915294334269&tin=02508201610067®Number=0000000000092546&sum=5900 [15:42:00]line 0 [15:42:00]written 0, free lines is 4095 [15:42:00]Write to MH i2c: 01 00 00 7A 04 7E [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 F6 0C 87 [15:42:00]RasterBufferAndPrint [15:42:00]line [15:42:00]line [15:42:00]line [15:42:00]line [15:42:00]line [15:42:00]written 0, free lines is 3400 [15:42:00]MH_Cut [15:42:00]Write to MH i2c: D1 01 00 81 04 01 57 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: D1 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: D1 01 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: D1 01 00 81 04 00 56 [15:42:00]Write to MH i2c: 01 00 00 82 04 86 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:01]*** Cut start [15:42:01]*** Purtial cut [15:42:01]*** CUTSNS_PIN = 0 [15:42:01]*** Stage 1: CUTSNS_PIN = 1 [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [15:42:03]*** Stop cut motor [15:42:03]*** Cut end [15:42:03]Read from MH i2c: 01 07 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [15:42:03]process_action close_receipt done [15:42:03]requested_data is exist [15:42:03]produce_requested_data [15:42:03]requested_item fm.sn is exist - process it [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 11 00 00 [15:42:03]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [15:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:03]wFMCommunicate OK [15:42:03]requested_item fd.num is exist - process it [15:42:03]SAM_PROTO_GetFieldsCounters [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 13 00 00 [15:42:03]Write to MH i2c: E2 08 00 84 04 80 13 00 00 00 00 00 00 04 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 62 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 62 00 84 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:04]wFMCommunicate OK [15:42:04]SAM_PROTO_GetFieldsCounters done [15:42:04]requested_item shift.num is exist - process it [15:42:04]requested_item shift.opened is exist - process it [15:42:04]req_shift_opened [15:42:04]FM_GetShiftState [15:42:04]SAM_PROTO_GetShiftState [15:42:04]wFMCommunicate request_size=4 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 13 01 00 [15:42:04]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0E 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 23 [15:42:04]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:04]wFMCommunicate OK [15:42:04]SAM_PROTO_GetShiftState done [15:42:04]FM_GetShiftState done [15:42:04]req_shift_opened done [15:42:04]requested_item shift.open_date is exist - process it [15:42:04]req_shift_open_date [15:42:04]req_shift_open_date done [15:42:04]produce_requested_data done [15:42:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49809,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:42:04]process_action_free close_receipt [15:42:04]json_value_free [15:42:04]json_value_free done [15:42:04]process_json_proto returns [15:42:04]Send response to host [15:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49809,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:42:04]free response buf [15:42:04]execute_script done [15:42:04]execute_script returns [15:42:04]free content buf [15:42:04]Sock 10.Close socket [15:42:04]Sock 10.Thread stoped [15:42:05]accept exits with 8 [15:42:05]New connection [15:42:05]New thread 3067350372 created [15:42:05]Thread 3067493732 joined [15:42:05]Waiting for new connection... [15:42:05] Sock 8.Parse request [15:42:05]Sock 8.Check first char [15:42:05]Sock 8.First char is OK [15:42:05]request: POST /json_proto HTTP/1.0 [15:42:05]Method: POST [15:42:05]URL: /json_proto [15:42:05]Method is POST - this is cgi request [15:42:05]url: /json_proto [15:42:05]query_string will be loaded in cgi processing [15:42:05]execute_cgi json_proto POST (null) [15:42:05]execute_cgi path=json_proto method=POST [15:42:05]POST find Content-Length [15:42:05]Host: 172.17.46.196:8080 [15:42:05]Content-Length: 620 [15:42:05]Content-Type: application/json [15:42:05] [15:42:05]POST finish read [15:42:05]Found Content-Length = 620 [15:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189988", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:05]execute_script... [15:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189988", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:05]POST & json_proto [15:42:05]process_json_proto [15:42:05]json parsed OK: [15:42:05]protocol is kg_v1.0 [15:42:05]action value=close_receipt [15:42:05]process_action close_receipt [15:42:05]cmd_close_receipt [15:42:05]MH_GetDate [15:42:05]Write to MH i2c: F0 00 00 86 04 79 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 09 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 09 00 86 04 00 4E 16 C2 66 27 15 C2 66 72 [15:42:05]GetLastDocTimeStamp 1723995716 [15:42:05]current date 1723995726 [15:42:05]FM_GetShiftState [15:42:05]SAM_PROTO_GetShiftState [15:42:05]wFMCommunicate request_size=4 [15:42:05]MH_SAM_APDU [15:42:05]CAPDU: 80 13 01 00 [15:42:05]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 25 [15:42:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetShiftState done [15:42:06]FM_GetShiftState done [15:42:06]opened in 1723939759 [15:42:06]opened+sec_in_day 1724026159 [15:42:06]quantity*price = 4900 [15:42:06]sum+1 = 4901 [15:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 76 18.08.2024 15:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49810 ФПД: 155936781326373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154206&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49810&fm=155936781326373&tin=02508201610067®Number=0000000000092546&sum=4900 0 [15:42:08]StoreToDocumentArchive [15:42:08]shift 466 fd 49810 [15:42:08]save to /storage/0466/doc_00049810 [15:42:08]save last doc name /storage/0466/doc_00049810 to /storage/kkm_last_doc_name [15:42:08]save OK [15:42:08]Clear old archive folders... [15:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:42:08]tlvbuf is 006CE9B0 [15:42:08]SAM_PROTO_ClearQueue [15:42:08]wFMCommunicate request_size=4 [15:42:08]MH_SAM_APDU [15:42:08]CAPDU: 80 09 00 00 [15:42:08]Write to MH i2c: E2 08 00 94 04 80 09 00 00 00 00 00 00 0A [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:08]Read from MH i2c: E2 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 03 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [15:42:08]RAPDU: 90 00 [15:42:08]wFMCommunicate OK [15:42:08]SAM_PROTO_ClearQueue done [15:42:08]KKMCreateOFDPacket [15:42:08]OFDProtocolAddRootSTLVToBuf [15:42:08]FM_MakeSignedData [15:42:08]FM_MakeSignedData [15:42:08]SAM_PROTO_SignData [15:42:08]wFMCommunicate request_size=4 [15:42:08]MH_SAM_APDU [15:42:08]CAPDU: 80 0D 01 02 [15:42:08]Write to MH i2c: E2 08 00 95 04 80 0D 01 02 00 00 00 00 12 [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:08]Read from MH i2c: E2 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 03 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [15:42:08]RAPDU: 90 00 [15:42:08]wFMCommunicate OK [15:42:08]wFMCommunicate request_size=255 [15:42:08]MH_SAM_APDU [15:42:08]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4E 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 [15:42:09]Write to MH i2c: E2 02 01 96 04 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4E 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 00 00 06 [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:09]Read from MH i2c: E2 03 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [15:42:09]RAPDU: 90 00 [15:42:09]wFMCommunicate OK [15:42:09]wFMCommunicate request_size=38 [15:42:09]MH_SAM_APDU [15:42:09]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C2 00 00 35 04 06 00 8D D2 DC 75 58 25 [15:42:09]Write to MH i2c: E2 29 00 97 04 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C2 00 00 35 04 06 00 8D D2 DC 75 58 25 00 00 17 [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 03 00 [15:42:09]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [15:42:10]RAPDU: 90 00 [15:42:10]wFMCommunicate OK [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 0D 03 02 [15:42:10]Write to MH i2c: E2 08 00 98 04 80 0D 03 02 00 00 00 00 17 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0B 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0B 00 98 04 00 8C 46 0C 7E C9 52 C6 E7 90 00 3C [15:42:10]RAPDU: 8C 46 0C 7E C9 52 C6 E7 90 00 [15:42:10]wFMCommunicate OK [15:42:10]SAM_PROTO_SignData done [15:42:10]FM_MakeSignedData done [15:42:10]CreateOFDProtocolMessage [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 11 00 00 [15:42:10]Write to MH i2c: E2 08 00 99 04 80 11 00 00 00 00 00 00 17 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 17 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 17 00 99 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [15:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:10]wFMCommunicate OK [15:42:10]CreateOFDProtocolMessage done [15:42:10]OFDSenderStorePacket 49810 [15:42:10]StoreOFDPacket docnum=49810 [15:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2B 01 00 00 E4 95 23 01 50 B0 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4E 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C2 00 00 35 04 06 00 8D D2 DC 75 58 25 8C 46 0C 7E C9 52 C6 E7 [15:42:10]CheckFolder [15:42:10]dirname=/storage/ofd_packets [15:42:10]CheckFolder done [15:42:10]ProducePacketName [15:42:10]name=ofd_packets/00049810 [15:42:10]NVStorageSaveData ofd_packets/00049810 [15:42:10]File name is /storage/ofd_packets/00049810 [15:42:10]Write 329 bytes [15:42:10]NVStorageSaveData done [15:42:10]OFDSenderStorePacket done [15:42:10]KKMCreateOFDPacket done [15:42:10]NVStorageSaveData kkm_last_timestamp [15:42:10]File name is /storage/kkm_last_timestamp [15:42:10]Write 4 bytes [15:42:10]NVStorageSaveData done [15:42:10]ExternCall_PrintAddStr [15:42:10]wPrintStart [15:42:10]Write to MH i2c: 01 00 00 9A 04 9E [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [15:42:10]RasterBufferAndPrint [15:42:10]line Счет N : (3)189988 [15:42:10]line ИНН: 02508201610067 [15:42:10]line Контрольно-Кассовый Чек [15:42:10]line ПРОДАЖА [15:42:10]line Товар: 46214645 [15:42:10]line Р/ж mentos pure white клуб 16/15,5г [15:42:10]line 1.000 * 49.00 [15:42:10]line = 49.00 [15:42:10]line НДС 12% НСП 1% [15:42:10]line > о реализуемом товаре [15:42:10]line ИТОГО: 49.00 [15:42:10]line НСП 1% : 0.43 [15:42:10]line НДС 12% : 5.20 [15:42:10]line Наличными: 49.00 [15:42:10]line Безнал.: 0.00 [15:42:10]line Место: АЗС № 95 "Партнер Нефть" [15:42:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:42:10]line СНО: Общий режим [15:42:10]line Чек 76 18.08.2024 15:42 [15:42:10]line Смена: 466 ФФД: 1.0 [15:42:10]line ЗНМ: 0300000078 [15:42:10]line РНМ: 0000000000092546 [15:42:10]line Версия ККМ: 001 [15:42:10]line ФМ: 0000000000871800 [15:42:10]line ФД: 49810 [15:42:10]line ФПД: 155936781326373 [15:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154206&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49810&fm=155936781326373&tin=02508201610067®Number=0000000000092546&sum=4900 [15:42:10]line 0 [15:42:10]written 0, free lines is 4095 [15:42:10]Write to MH i2c: 01 00 00 C3 04 C7 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 EC 0C C6 [15:42:10]RasterBufferAndPrint [15:42:10]line [15:42:10]line [15:42:10]line [15:42:10]line [15:42:10]line [15:42:10]written 0, free lines is 3395 [15:42:10]MH_Cut [15:42:11]Write to MH i2c: D1 01 00 CA 04 01 A0 [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 01 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: D1 01 00 CA 04 00 9F [15:42:11]Write to MH i2c: 01 00 00 CB 04 CF [15:42:11]Write i2c OK [15:42:11]MH_I2C_Read... [15:42:11]*** Cut start [15:42:11]*** Purtial cut [15:42:11]*** Stage 1: CUTSNS_PIN = 1 [15:42:11]Read from MH i2c: 01 [15:42:11]MH_I2C_Read... [15:42:11]*** Stop cut motor [15:42:11]*** Cut end [15:42:11]Read from MH i2c: 01 07 00 [15:42:11]MH_I2C_Read... [15:42:11]Read from MH i2c: 01 07 00 CB 04 00 00 00 00 00 FF 0F E4 [15:42:11]process_action close_receipt done [15:42:11]requested_data is exist [15:42:12]produce_requested_data [15:42:12]requested_item fm.sn is exist - process it [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 11 00 00 [15:42:12]Write to MH i2c: E2 08 00 CC 04 80 11 00 00 00 00 00 00 4A [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 17 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 17 00 CC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 95 [15:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:12]wFMCommunicate OK [15:42:12]requested_item fd.num is exist - process it [15:42:12]SAM_PROTO_GetFieldsCounters [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 13 00 00 [15:42:12]Write to MH i2c: E2 08 00 CD 04 80 13 00 00 00 00 00 00 4D [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 62 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 62 00 CD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 92 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [15:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 92 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:12]wFMCommunicate OK [15:42:12]SAM_PROTO_GetFieldsCounters done [15:42:12]requested_item shift.num is exist - process it [15:42:12]requested_item shift.opened is exist - process it [15:42:12]req_shift_opened [15:42:12]FM_GetShiftState [15:42:12]SAM_PROTO_GetShiftState [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 13 01 00 [15:42:12]Write to MH i2c: E2 08 00 CE 04 80 13 01 00 00 00 00 00 4F [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:12]Read from MH i2c: E2 0E 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 0E 00 CE 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6C [15:42:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:12]wFMCommunicate OK [15:42:12]SAM_PROTO_GetShiftState done [15:42:12]FM_GetShiftState done [15:42:12]req_shift_opened done [15:42:12]requested_item shift.open_date is exist - process it [15:42:12]req_shift_open_date [15:42:12]req_shift_open_date done [15:42:12]produce_requested_data done [15:42:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49810,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:42:12]process_action_free close_receipt [15:42:12]json_value_free [15:42:12]json_value_free done [15:42:12]process_json_proto returns [15:42:12]Send response to host [15:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49810,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:42:12]free response buf [15:42:12]execute_script done [15:42:12]execute_script returns [15:42:12]free content buf [15:42:12]Sock 8.Close socket [15:42:12]Sock 8.Thread stoped [15:42:18]accept exits with 10 [15:42:18]New connection [15:42:18]New thread 3067493732 created [15:42:18]Thread 3067350372 joined [15:42:18]Waiting for new connection... [15:42:18] Sock 10.Parse request [15:42:18]Sock 10.Check first char [15:42:18]Sock 10.First char is OK [15:42:18]request: POST /json_proto HTTP/1.0 [15:42:18]Method: POST [15:42:18]URL: /json_proto [15:42:18]Method is POST - this is cgi request [15:42:18]url: /json_proto [15:42:18]query_string will be loaded in cgi processing [15:42:18]execute_cgi json_proto POST (null) [15:42:18]execute_cgi path=json_proto method=POST [15:42:18]POST find Content-Length [15:42:18]Host: 172.17.46.196:8080 [15:42:18]Content-Length: 644 [15:42:18]Content-Type: application/json [15:42:18] [15:42:18]POST finish read [15:42:18]Found Content-Length = 644 [15:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189989", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:18]execute_script... [15:42:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189989", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:18]POST & json_proto [15:42:18]process_json_proto [15:42:18]json parsed OK: [15:42:18]protocol is kg_v1.0 [15:42:18]action value=close_receipt [15:42:18]process_action close_receipt [15:42:18]cmd_close_receipt [15:42:18]MH_GetDate [15:42:18]Write to MH i2c: F0 00 00 CF 04 C2 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 09 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 09 00 CF 04 00 5B 16 C2 66 27 15 C2 66 C8 [15:42:18]GetLastDocTimeStamp 1723995726 [15:42:18]current date 1723995739 [15:42:18]FM_GetShiftState [15:42:18]SAM_PROTO_GetShiftState [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 13 01 00 [15:42:18]Write to MH i2c: E2 08 00 D0 04 80 13 01 00 00 00 00 00 51 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 D0 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6E [15:42:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_GetShiftState done [15:42:18]FM_GetShiftState done [15:42:18]opened in 1723939759 [15:42:18]opened+sec_in_day 1724026159 [15:42:18]quantity*price = 23000 [15:42:18]sum+1 = 23001 [15:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 77 18.08.2024 15:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49811 ФПД: 82142054526139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154219&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49811&fm=82142054526139&tin=02508201610067®Number=0000000000092546&sum=23000 0 [15:42:21]StoreToDocumentArchive [15:42:21]shift 466 fd 49811 [15:42:21]save to /storage/0466/doc_00049811 [15:42:21]save last doc name /storage/0466/doc_00049811 to /storage/kkm_last_doc_name [15:42:21]save OK [15:42:21]Clear old archive folders... [15:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:42:21]tlvbuf is 00717EA0 [15:42:21]SAM_PROTO_ClearQueue [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 09 00 00 [15:42:21]Write to MH i2c: E2 08 00 DD 04 80 09 00 00 00 00 00 00 53 [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 03 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [15:42:21]RAPDU: 90 00 [15:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_ClearQueue done [15:42:21]KKMCreateOFDPacket [15:42:21]OFDProtocolAddRootSTLVToBuf [15:42:21]FM_MakeSignedData [15:42:21]FM_MakeSignedData [15:42:21]SAM_PROTO_SignData [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 0D 01 02 [15:42:21]Write to MH i2c: E2 08 00 DE 04 80 0D 01 02 00 00 00 00 5B [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 03 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [15:42:21]RAPDU: 90 00 [15:42:21]wFMCommunicate OK [15:42:21]wFMCommunicate request_size=255 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5B 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [15:42:21]Write to MH i2c: E2 02 01 DF 04 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5B 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 BB [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]wFMCommunicate request_size=39 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C2 00 00 35 04 06 00 4A B5 2F FB 2C BB [15:42:22]Write to MH i2c: E2 2A 00 E0 04 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C2 00 00 35 04 06 00 4A B5 2F FB 2C BB 00 00 76 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 03 02 [15:42:22]Write to MH i2c: E2 08 00 E1 04 80 0D 03 02 00 00 00 00 60 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0B 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0B 00 E1 04 00 A6 69 19 E8 64 A1 B3 9E 90 00 C7 [15:42:22]RAPDU: A6 69 19 E8 64 A1 B3 9E 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_SignData done [15:42:22]FM_MakeSignedData done [15:42:22]CreateOFDProtocolMessage [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 11 00 00 [15:42:22]Write to MH i2c: E2 08 00 E2 04 80 11 00 00 00 00 00 00 60 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 E2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [15:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:22]wFMCommunicate OK [15:42:22]CreateOFDProtocolMessage done [15:42:22]OFDSenderStorePacket 49811 [15:42:22]StoreOFDPacket docnum=49811 [15:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 F8 1B 24 01 E4 40 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5B 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C2 00 00 35 04 06 00 4A B5 2F FB 2C BB A6 69 19 E8 64 A1 B3 9E [15:42:22]CheckFolder [15:42:22]dirname=/storage/ofd_packets [15:42:22]CheckFolder done [15:42:22]ProducePacketName [15:42:22]name=ofd_packets/00049811 [15:42:22]NVStorageSaveData ofd_packets/00049811 [15:42:23]File name is /storage/ofd_packets/00049811 [15:42:23]Write 330 bytes [15:42:23]NVStorageSaveData done [15:42:23]OFDSenderStorePacket done [15:42:23]KKMCreateOFDPacket done [15:42:23]NVStorageSaveData kkm_last_timestamp [15:42:23]File name is /storage/kkm_last_timestamp [15:42:23]Write 4 bytes [15:42:23]NVStorageSaveData done [15:42:23]ExternCall_PrintAddStr [15:42:23]wPrintStart [15:42:23]Write to MH i2c: 01 00 00 E3 04 E7 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 FF 0F FC [15:42:23]RasterBufferAndPrint [15:42:23]line Счет N : (3)189989 [15:42:23]line ИНН: 02508201610067 [15:42:23]line Контрольно-Кассовый Чек [15:42:23]line ПРОДАЖА [15:42:23]line Товар: 2000036210013 [15:42:23]line Кофе Капучино (GABB TRADE) [15:42:23]line 2.000 * 115.00 [15:42:23]line = 230.00 [15:42:23]line НДС 12% НСП 1% [15:42:23]line > о реализуемом товаре [15:42:23]line ИТОГО: 230.00 [15:42:23]line НСП 1% : 2.03 [15:42:23]line НДС 12% : 24.42 [15:42:23]line Наличными: 230.00 [15:42:23]line Безнал.: 0.00 [15:42:23]line Место: АЗС № 95 "Партнер Нефть" [15:42:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:42:23]line СНО: Общий режим [15:42:23]line Чек 77 18.08.2024 15:42 [15:42:23]line Смена: 466 ФФД: 1.0 [15:42:23]line ЗНМ: 0300000078 [15:42:23]line РНМ: 0000000000092546 [15:42:23]line Версия ККМ: 001 [15:42:23]line ФМ: 0000000000871800 [15:42:23]line ФД: 49811 [15:42:23]line ФПД: 82142054526139 [15:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154219&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49811&fm=82142054526139&tin=02508201610067®Number=0000000000092546&sum=23000 [15:42:23]line 0 [15:42:23]written 0, free lines is 4095 [15:42:23]Write to MH i2c: 01 00 00 0B 05 10 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 16 0D 3A [15:42:23]RasterBufferAndPrint [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]written 0, free lines is 3436 [15:42:23]MH_Cut [15:42:23]Write to MH i2c: D1 01 00 12 05 01 E9 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: D1 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: D1 01 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: D1 01 00 12 05 00 E8 [15:42:23]Write to MH i2c: 01 00 00 13 05 18 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:24]*** Cut start [15:42:24]*** Purtial cut [15:42:24]*** CUTSNS_PIN = 0 [15:42:24]*** Stage 1: CUTSNS_PIN = 1 [15:42:26]Read from MH i2c: 01 [15:42:26]MH_I2C_Read... [15:42:26]*** Stop cut motor [15:42:26]*** Cut end [15:42:26]Read from MH i2c: 01 07 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [15:42:26]process_action close_receipt done [15:42:26]requested_data is exist [15:42:26]produce_requested_data [15:42:26]requested_item fm.sn is exist - process it [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 11 00 00 [15:42:26]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [15:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:26]wFMCommunicate OK [15:42:26]requested_item fd.num is exist - process it [15:42:26]SAM_PROTO_GetFieldsCounters [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 13 00 00 [15:42:26]Write to MH i2c: E2 08 00 15 05 80 13 00 00 00 00 00 00 96 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 62 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 62 00 15 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 93 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 93 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:27]wFMCommunicate OK [15:42:27]SAM_PROTO_GetFieldsCounters done [15:42:27]requested_item shift.num is exist - process it [15:42:27]requested_item shift.opened is exist - process it [15:42:27]req_shift_opened [15:42:27]FM_GetShiftState [15:42:27]SAM_PROTO_GetShiftState [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 13 01 00 [15:42:27]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0E 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B5 [15:42:27]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:27]wFMCommunicate OK [15:42:27]SAM_PROTO_GetShiftState done [15:42:27]FM_GetShiftState done [15:42:27]req_shift_opened done [15:42:27]requested_item shift.open_date is exist - process it [15:42:27]req_shift_open_date [15:42:27]req_shift_open_date done [15:42:27]produce_requested_data done [15:42:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49811,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:42:27]process_action_free close_receipt [15:42:27]json_value_free [15:42:27]json_value_free done [15:42:27]process_json_proto returns [15:42:27]Send response to host [15:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49811,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:42:27]free response buf [15:42:27]execute_script done [15:42:27]execute_script returns [15:42:27]free content buf [15:42:27]Sock 10.Close socket [15:42:27]Sock 10.Thread stoped [15:42:30]accept exits with 8 [15:42:30]New connection [15:42:30]New thread 3067350372 created [15:42:30]Thread 3067493732 joined [15:42:30]Waiting for new connection... [15:42:30] Sock 8.Parse request [15:42:30]Sock 8.Check first char [15:42:30]Sock 8.First char is OK [15:42:30]request: POST /json_proto HTTP/1.0 [15:42:30]Method: POST [15:42:30]URL: /json_proto [15:42:30]Method is POST - this is cgi request [15:42:30]url: /json_proto [15:42:30]query_string will be loaded in cgi processing [15:42:30]execute_cgi json_proto POST (null) [15:42:30]execute_cgi path=json_proto method=POST [15:42:30]POST find Content-Length [15:42:30]Host: 172.17.46.196:8080 [15:42:30]Content-Length: 630 [15:42:30]Content-Type: application/json [15:42:30] [15:42:30]POST finish read [15:42:30]Found Content-Length = 630 [15:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189990", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:30]execute_script... [15:42:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189990", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:30]POST & json_proto [15:42:30]process_json_proto [15:42:30]json parsed OK: [15:42:30]protocol is kg_v1.0 [15:42:30]action value=close_receipt [15:42:30]process_action close_receipt [15:42:30]cmd_close_receipt [15:42:30]MH_GetDate [15:42:30]Write to MH i2c: F0 00 00 17 05 0B [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 09 00 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: F0 09 00 17 05 00 67 16 C2 66 27 15 C2 66 1D [15:42:30]GetLastDocTimeStamp 1723995739 [15:42:30]current date 1723995751 [15:42:30]FM_GetShiftState [15:42:30]SAM_PROTO_GetShiftState [15:42:30]wFMCommunicate request_size=4 [15:42:30]MH_SAM_APDU [15:42:30]CAPDU: 80 13 01 00 [15:42:30]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [15:42:30]Write i2c OK [15:42:30]MH_I2C_Read... [15:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:30]Read from MH i2c: E2 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: E2 0E 00 [15:42:30]MH_I2C_Read... [15:42:30]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B7 [15:42:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:31]wFMCommunicate OK [15:42:31]SAM_PROTO_GetShiftState done [15:42:31]FM_GetShiftState done [15:42:31]opened in 1723939759 [15:42:31]opened+sec_in_day 1724026159 [15:42:31]quantity*price = 5000 [15:42:31]sum+1 = 5001 [15:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 78 18.08.2024 15:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49812 ФПД: 253847972586738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154231&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49812&fm=253847972586738&tin=02508201610067®Number=0000000000092546&sum=5000 0 [15:42:33]StoreToDocumentArchive [15:42:33]shift 466 fd 49812 [15:42:33]save to /storage/0466/doc_00049812 [15:42:33]save last doc name /storage/0466/doc_00049812 to /storage/kkm_last_doc_name [15:42:33]save OK [15:42:33]Clear old archive folders... [15:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:42:33]tlvbuf is 006D2A30 [15:42:33]SAM_PROTO_ClearQueue [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 09 00 00 [15:42:33]Write to MH i2c: E2 08 00 25 05 80 09 00 00 00 00 00 00 9C [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [15:42:33]RAPDU: 90 00 [15:42:33]wFMCommunicate OK [15:42:33]SAM_PROTO_ClearQueue done [15:42:33]KKMCreateOFDPacket [15:42:33]OFDProtocolAddRootSTLVToBuf [15:42:33]FM_MakeSignedData [15:42:33]FM_MakeSignedData [15:42:33]SAM_PROTO_SignData [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 0D 01 02 [15:42:33]Write to MH i2c: E2 08 00 26 05 80 0D 01 02 00 00 00 00 A4 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [15:42:33]RAPDU: 90 00 [15:42:33]wFMCommunicate OK [15:42:33]wFMCommunicate request_size=255 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:42:34]Write to MH i2c: E2 02 01 27 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 82 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:34]Read from MH i2c: E2 03 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [15:42:34]RAPDU: 90 00 [15:42:34]wFMCommunicate OK [15:42:34]wFMCommunicate request_size=28 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 94 C2 00 00 35 04 06 00 E6 DF 96 3B A4 F2 [15:42:34]Write to MH i2c: E2 1F 00 28 05 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 94 C2 00 00 35 04 06 00 E6 DF 96 3B A4 F2 00 00 AE [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:34]Read from MH i2c: E2 03 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [15:42:35]RAPDU: 90 00 [15:42:35]wFMCommunicate OK [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 0D 03 02 [15:42:35]Write to MH i2c: E2 08 00 29 05 80 0D 03 02 00 00 00 00 A9 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0B 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 0B 00 29 05 00 A4 7F FF 92 A4 79 5A 5C 90 00 31 [15:42:35]RAPDU: A4 7F FF 92 A4 79 5A 5C 90 00 [15:42:35]wFMCommunicate OK [15:42:35]SAM_PROTO_SignData done [15:42:35]FM_MakeSignedData done [15:42:35]CreateOFDProtocolMessage [15:42:35]wFMCommunicate request_size=4 [15:42:35]MH_SAM_APDU [15:42:35]CAPDU: 80 11 00 00 [15:42:35]Write to MH i2c: E2 08 00 2A 05 80 11 00 00 00 00 00 00 A9 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:35]Read from MH i2c: E2 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 17 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: E2 17 00 2A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F4 [15:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:35]wFMCommunicate OK [15:42:35]CreateOFDProtocolMessage done [15:42:35]OFDSenderStorePacket 49812 [15:42:35]StoreOFDPacket docnum=49812 [15:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 1E D7 19 01 D8 47 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 67 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C2 00 00 35 04 06 00 E6 DF 96 3B A4 F2 A4 7F FF 92 A4 79 5A 5C [15:42:35]CheckFolder [15:42:35]dirname=/storage/ofd_packets [15:42:35]CheckFolder done [15:42:35]ProducePacketName [15:42:35]name=ofd_packets/00049812 [15:42:35]NVStorageSaveData ofd_packets/00049812 [15:42:35]File name is /storage/ofd_packets/00049812 [15:42:35]Write 319 bytes [15:42:35]NVStorageSaveData done [15:42:35]OFDSenderStorePacket done [15:42:35]KKMCreateOFDPacket done [15:42:35]NVStorageSaveData kkm_last_timestamp [15:42:35]File name is /storage/kkm_last_timestamp [15:42:35]Write 4 bytes [15:42:35]NVStorageSaveData done [15:42:35]ExternCall_PrintAddStr [15:42:35]wPrintStart [15:42:35]Write to MH i2c: 01 00 00 2B 05 30 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [15:42:35]RasterBufferAndPrint [15:42:35]line Счет N : (3)189990 [15:42:35]line ИНН: 02508201610067 [15:42:35]line Контрольно-Кассовый Чек [15:42:35]line ПРОДАЖА [15:42:35]line Товар: 4700000160358 [15:42:35]line Вода Легенда 1л [15:42:35]line 1.000 * 50.00 [15:42:35]line = 50.00 [15:42:35]line НДС 12% НСП 1% [15:42:35]line > о реализуемом товаре [15:42:35]line ИТОГО: 50.00 [15:42:35]line НСП 1% : 0.44 [15:42:35]line НДС 12% : 5.31 [15:42:35]line Наличными: 50.00 [15:42:35]line Безнал.: 0.00 [15:42:35]line Место: АЗС № 95 "Партнер Нефть" [15:42:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:42:35]line СНО: Общий режим [15:42:35]line Чек 78 18.08.2024 15:42 [15:42:35]line Смена: 466 ФФД: 1.0 [15:42:35]line ЗНМ: 0300000078 [15:42:35]line РНМ: 0000000000092546 [15:42:35]line Версия ККМ: 001 [15:42:35]line ФМ: 0000000000871800 [15:42:35]line ФД: 49812 [15:42:35]line ФПД: 253847972586738 [15:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154231&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49812&fm=253847972586738&tin=02508201610067®Number=0000000000092546&sum=5000 [15:42:35]line 0 [15:42:35]written 0, free lines is 4095 [15:42:35]Write to MH i2c: 01 00 00 53 05 58 [15:42:35]Write i2c OK [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 [15:42:35]MH_I2C_Read... [15:42:35]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 16 0D 82 [15:42:35]RasterBufferAndPrint [15:42:35]line [15:42:35]line [15:42:35]line [15:42:35]line [15:42:35]line [15:42:35]written 0, free lines is 3436 [15:42:36]MH_Cut [15:42:36]Write to MH i2c: D1 01 00 5A 05 01 31 [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 01 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: D1 01 00 5A 05 00 30 [15:42:36]Write to MH i2c: 01 00 00 5B 05 60 [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]*** Cut start [15:42:36]*** Purtial cut [15:42:36]*** Stage 1: CUTSNS_PIN = 1 [15:42:36]Read from MH i2c: 01 [15:42:36]MH_I2C_Read... [15:42:36]*** Stop cut motor [15:42:36]*** Cut end [15:42:36]Read from MH i2c: 01 07 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 FF 0F 75 [15:42:36]process_action close_receipt done [15:42:36]requested_data is exist [15:42:36]produce_requested_data [15:42:36]requested_item fm.sn is exist - process it [15:42:36]wFMCommunicate request_size=4 [15:42:36]MH_SAM_APDU [15:42:36]CAPDU: 80 11 00 00 [15:42:36]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [15:42:37]Write i2c OK [15:42:37]MH_I2C_Read... [15:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:37]Read from MH i2c: E2 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 17 00 [15:42:37]MH_I2C_Read... [15:42:37]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 38 30 30 90 00 26 [15:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:37]wFMCommunicate OK [15:42:37]requested_item fd.num is exist - process it [15:42:37]SAM_PROTO_GetFieldsCounters [15:42:37]wFMCommunicate request_size=4 [15:42:37]MH_SAM_APDU [15:42:37]CAPDU: 80 13 00 00 [15:42:37]Write to MH i2c: E2 08 00 5D 05 80 13 00 00 00 00 00 00 DE [15:42:37]Write i2c OK [15:42:37]MH_I2C_Read... [15:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:37]Read from MH i2c: E2 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 62 00 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 62 00 5D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 94 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 94 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:37]wFMCommunicate OK [15:42:37]SAM_PROTO_GetFieldsCounters done [15:42:37]requested_item shift.num is exist - process it [15:42:37]requested_item shift.opened is exist - process it [15:42:37]req_shift_opened [15:42:37]FM_GetShiftState [15:42:37]SAM_PROTO_GetShiftState [15:42:37]wFMCommunicate request_size=4 [15:42:37]MH_SAM_APDU [15:42:37]CAPDU: 80 13 01 00 [15:42:37]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [15:42:37]Write i2c OK [15:42:37]MH_I2C_Read... [15:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:37]Read from MH i2c: E2 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 0E 00 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FD [15:42:37]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:37]wFMCommunicate OK [15:42:37]SAM_PROTO_GetShiftState done [15:42:37]FM_GetShiftState done [15:42:37]req_shift_opened done [15:42:37]requested_item shift.open_date is exist - process it [15:42:37]req_shift_open_date [15:42:37]req_shift_open_date done [15:42:37]produce_requested_data done [15:42:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49812,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:42:37]process_action_free close_receipt [15:42:37]json_value_free [15:42:37]json_value_free done [15:42:37]process_json_proto returns [15:42:37]Send response to host [15:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49812,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:42:37]free response buf [15:42:37]execute_script done [15:42:37]execute_script returns [15:42:37]free content buf [15:42:37]Sock 8.Close socket [15:42:37]Sock 8.Thread stoped [15:42:38]accept exits with 10 [15:42:38]New connection [15:42:38]New thread 3067493732 created [15:42:38]Thread 3067350372 joined [15:42:38]Waiting for new connection... [15:42:38] Sock 10.Parse request [15:42:38]Sock 10.Check first char [15:42:38]Sock 10.First char is OK [15:42:38]request: POST /json_proto HTTP/1.0 [15:42:38]Method: POST [15:42:38]URL: /json_proto [15:42:38]Method is POST - this is cgi request [15:42:38]url: /json_proto [15:42:38]query_string will be loaded in cgi processing [15:42:38]execute_cgi json_proto POST (null) [15:42:38]execute_cgi path=json_proto method=POST [15:42:38]POST find Content-Length [15:42:38]Host: 172.17.46.196:8080 [15:42:38]Content-Length: 809 [15:42:38]Content-Type: application/json [15:42:38] [15:42:38]POST finish read [15:42:38]Found Content-Length = 809 [15:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189991", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:38]execute_script... [15:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189991", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:38]POST & json_proto [15:42:38]process_json_proto [15:42:38]json parsed OK: [15:42:38]protocol is kg_v1.0 [15:42:38]action value=close_receipt [15:42:38]process_action close_receipt [15:42:38]cmd_close_receipt [15:42:38]MH_GetDate [15:42:38]Write to MH i2c: F0 00 00 5F 05 53 [15:42:38]Write i2c OK [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: F0 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: F0 09 00 [15:42:38]MH_I2C_Read... [15:42:38]Read from MH i2c: F0 09 00 5F 05 00 6F 16 C2 66 27 15 C2 66 6D [15:42:38]GetLastDocTimeStamp 1723995751 [15:42:38]current date 1723995759 [15:42:38]FM_GetShiftState [15:42:38]SAM_PROTO_GetShiftState [15:42:38]wFMCommunicate request_size=4 [15:42:38]MH_SAM_APDU [15:42:38]CAPDU: 80 13 01 00 [15:42:38]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [15:42:39]Write i2c OK [15:42:39]MH_I2C_Read... [15:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:39]Read from MH i2c: E2 [15:42:39]MH_I2C_Read... [15:42:39]Read from MH i2c: E2 0E 00 [15:42:39]MH_I2C_Read... [15:42:39]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FF [15:42:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:39]wFMCommunicate OK [15:42:39]SAM_PROTO_GetShiftState done [15:42:39]FM_GetShiftState done [15:42:39]opened in 1723939759 [15:42:39]opened+sec_in_day 1724026159 [15:42:39]quantity*price = 8000 [15:42:39]sum+1 = 8001 [15:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 79 18.08.2024 15:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49813 ФПД: 176741431997363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154239&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49813&fm=176741431997363&tin=02508201610067®Number=0000000000092546&sum=8000 0 [15:42:41]StoreToDocumentArchive [15:42:41]shift 466 fd 49813 [15:42:41]save to /storage/0466/doc_00049813 [15:42:41]save last doc name /storage/0466/doc_00049813 to /storage/kkm_last_doc_name [15:42:41]save OK [15:42:41]Clear old archive folders... [15:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:42:41]tlvbuf is B6F5E540 [15:42:41]SAM_PROTO_ClearQueue [15:42:41]wFMCommunicate request_size=4 [15:42:41]MH_SAM_APDU [15:42:41]CAPDU: 80 09 00 00 [15:42:41]Write to MH i2c: E2 08 00 6D 05 80 09 00 00 00 00 00 00 E4 [15:42:41]Write i2c OK [15:42:41]MH_I2C_Read... [15:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:42]Read from MH i2c: E2 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: E2 03 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [15:42:42]RAPDU: 90 00 [15:42:42]wFMCommunicate OK [15:42:42]SAM_PROTO_ClearQueue done [15:42:42]KKMCreateOFDPacket [15:42:42]OFDProtocolAddRootSTLVToBuf [15:42:42]FM_MakeSignedData [15:42:42]FM_MakeSignedData [15:42:42]SAM_PROTO_SignData [15:42:42]wFMCommunicate request_size=4 [15:42:42]MH_SAM_APDU [15:42:42]CAPDU: 80 0D 01 02 [15:42:42]Write to MH i2c: E2 08 00 6E 05 80 0D 01 02 00 00 00 00 EC [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:42]Read from MH i2c: E2 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: E2 03 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [15:42:42]RAPDU: 90 00 [15:42:42]wFMCommunicate OK [15:42:42]wFMCommunicate request_size=255 [15:42:42]MH_SAM_APDU [15:42:42]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 6F 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:42:42]Write to MH i2c: E2 02 01 6F 05 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 6F 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 6C [15:42:43]Write i2c OK [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 [15:42:43]MH_I2C_Read... [15:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:43]Read from MH i2c: E2 03 00 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [15:42:43]RAPDU: 90 00 [15:42:43]wFMCommunicate OK [15:42:43]wFMCommunicate request_size=30 [15:42:43]MH_SAM_APDU [15:42:43]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 95 C2 00 00 35 04 06 00 A0 BE D2 45 73 B3 [15:42:43]Write to MH i2c: E2 21 00 70 05 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 95 C2 00 00 35 04 06 00 A0 BE D2 45 73 B3 00 00 D2 [15:42:43]Write i2c OK [15:42:43]MH_I2C_Read... [15:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:43]Read from MH i2c: E2 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 03 00 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [15:42:43]RAPDU: 90 00 [15:42:43]wFMCommunicate OK [15:42:43]wFMCommunicate request_size=4 [15:42:43]MH_SAM_APDU [15:42:43]CAPDU: 80 0D 03 02 [15:42:43]Write to MH i2c: E2 08 00 71 05 80 0D 03 02 00 00 00 00 F1 [15:42:43]Write i2c OK [15:42:43]MH_I2C_Read... [15:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:43]Read from MH i2c: E2 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 0B 00 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 0B 00 71 05 00 F5 D7 B7 F9 DB B5 37 83 90 00 B8 [15:42:43]RAPDU: F5 D7 B7 F9 DB B5 37 83 90 00 [15:42:43]wFMCommunicate OK [15:42:43]SAM_PROTO_SignData done [15:42:43]FM_MakeSignedData done [15:42:43]CreateOFDProtocolMessage [15:42:43]wFMCommunicate request_size=4 [15:42:43]MH_SAM_APDU [15:42:43]CAPDU: 80 11 00 00 [15:42:43]Write to MH i2c: E2 08 00 72 05 80 11 00 00 00 00 00 00 F1 [15:42:43]Write i2c OK [15:42:43]MH_I2C_Read... [15:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:43]Read from MH i2c: E2 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 17 00 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: E2 17 00 72 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [15:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:43]wFMCommunicate OK [15:42:43]CreateOFDProtocolMessage done [15:42:43]OFDSenderStorePacket 49813 [15:42:43]StoreOFDPacket docnum=49813 [15:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 34 71 1B 01 CC DD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 6F 16 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C2 00 00 35 04 06 00 A0 BE D2 45 73 B3 F5 D7 B7 F9 DB B5 37 83 [15:42:43]CheckFolder [15:42:43]dirname=/storage/ofd_packets [15:42:43]CheckFolder done [15:42:43]ProducePacketName [15:42:43]name=ofd_packets/00049813 [15:42:43]NVStorageSaveData ofd_packets/00049813 [15:42:43]File name is /storage/ofd_packets/00049813 [15:42:43]Write 321 bytes [15:42:43]NVStorageSaveData done [15:42:43]OFDSenderStorePacket done [15:42:43]KKMCreateOFDPacket done [15:42:43]NVStorageSaveData kkm_last_timestamp [15:42:43]File name is /storage/kkm_last_timestamp [15:42:43]Write 4 bytes [15:42:43]NVStorageSaveData done [15:42:43]ExternCall_PrintAddStr [15:42:43]wPrintStart [15:42:43]Write to MH i2c: 01 00 00 73 05 78 [15:42:43]Write i2c OK [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: 01 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: 01 07 00 [15:42:43]MH_I2C_Read... [15:42:43]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [15:42:43]RasterBufferAndPrint [15:42:43]line Счет N : (3)189991 [15:42:43]line ИНН: 02508201610067 [15:42:43]line Контрольно-Кассовый Чек [15:42:43]line ПРОДАЖА [15:42:43]line Товар: 4700000160211 [15:42:43]line Вода Легенда 0,5л [15:42:43]line 2.000 * 40.00 [15:42:43]line = 80.00 [15:42:43]line НДС 12% НСП 1% [15:42:43]line > о реализуемом товаре [15:42:43]line ИТОГО: 80.00 [15:42:43]line НСП 1% : 0.71 [15:42:43]line НДС 12% : 8.50 [15:42:43]line Наличными: 0.00 [15:42:43]line Безнал.: 80.00 [15:42:43]line Место: АЗС № 95 "Партнер Нефть" [15:42:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:42:44]line СНО: Общий режим [15:42:44]line Чек 79 18.08.2024 15:42 [15:42:44]line Смена: 466 ФФД: 1.0 [15:42:44]line ЗНМ: 0300000078 [15:42:44]line РНМ: 0000000000092546 [15:42:44]line Версия ККМ: 001 [15:42:44]line Платежная система: Бакай Банк [15:42:44]line ФМ: 0000000000871800 [15:42:44]line ФД: 49813 [15:42:44]line ФПД: 176741431997363 [15:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154239&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49813&fm=176741431997363&tin=02508201610067®Number=0000000000092546&sum=8000 [15:42:44]line 0 [15:42:44]written 0, free lines is 4095 [15:42:44]Write to MH i2c: 01 00 00 9D 05 A2 [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 E7 0C 9C [15:42:44]RasterBufferAndPrint [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]written 0, free lines is 3389 [15:42:44]MH_Cut [15:42:44]Write to MH i2c: D1 01 00 A4 05 01 7B [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 01 00 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 01 00 A4 05 00 7A [15:42:44]Write to MH i2c: 01 00 00 A5 05 AA [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:45]*** Cut start [15:42:45]*** Purtial cut [15:42:45]*** CUTSNS_PIN = 0 [15:42:45]*** Stage 1: CUTSNS_PIN = 1 [15:42:47]Read from MH i2c: 01 [15:42:47]MH_I2C_Read... [15:42:47]*** Stop cut motor [15:42:47]*** Cut end [15:42:47]Read from MH i2c: 01 07 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [15:42:47]process_action close_receipt done [15:42:47]requested_data is exist [15:42:47]produce_requested_data [15:42:47]requested_item fm.sn is exist - process it [15:42:47]wFMCommunicate request_size=4 [15:42:47]MH_SAM_APDU [15:42:47]CAPDU: 80 11 00 00 [15:42:47]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:47]Read from MH i2c: E2 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: E2 17 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [15:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:42:47]wFMCommunicate OK [15:42:47]requested_item fd.num is exist - process it [15:42:47]SAM_PROTO_GetFieldsCounters [15:42:47]wFMCommunicate request_size=4 [15:42:47]MH_SAM_APDU [15:42:47]CAPDU: 80 13 00 00 [15:42:47]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:47]Read from MH i2c: E2 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: E2 62 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: E2 62 00 A7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 95 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [15:42:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 95 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetFieldsCounters done [15:42:48]requested_item shift.num is exist - process it [15:42:48]requested_item shift.opened is exist - process it [15:42:48]req_shift_opened [15:42:48]FM_GetShiftState [15:42:48]SAM_PROTO_GetShiftState [15:42:48]wFMCommunicate request_size=4 [15:42:48]MH_SAM_APDU [15:42:48]CAPDU: 80 13 01 00 [15:42:48]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 47 [15:42:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetShiftState done [15:42:48]FM_GetShiftState done [15:42:48]req_shift_opened done [15:42:48]requested_item shift.open_date is exist - process it [15:42:48]req_shift_open_date [15:42:48]req_shift_open_date done [15:42:48]produce_requested_data done [15:42:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49813,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:42:48]process_action_free close_receipt [15:42:48]json_value_free [15:42:48]json_value_free done [15:42:48]process_json_proto returns [15:42:48]Send response to host [15:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49813,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:42:48]free response buf [15:42:48]execute_script done [15:42:48]execute_script returns [15:42:48]free content buf [15:42:48]Sock 10.Close socket [15:42:48]Sock 10.Thread stoped [15:42:50]accept exits with 8 [15:42:50]New connection [15:42:50]New thread 3067350372 created [15:42:50]Thread 3067493732 joined [15:42:50]Waiting for new connection... [15:42:50] Sock 8.Parse request [15:42:50]Sock 8.Check first char [15:42:50]Sock 8.First char is OK [15:42:50]request: POST /json_proto HTTP/1.0 [15:42:50]Method: POST [15:42:50]URL: /json_proto [15:42:50]Method is POST - this is cgi request [15:42:50]url: /json_proto [15:42:50]query_string will be loaded in cgi processing [15:42:50]execute_cgi json_proto POST (null) [15:42:50]execute_cgi path=json_proto method=POST [15:42:50]POST find Content-Length [15:42:50]Host: 172.17.46.196:8080 [15:42:50]Content-Length: 1524 [15:42:50]Content-Type: application/json [15:42:50] [15:42:50]POST finish read [15:42:50]Found Content-Length = 1524 [15:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189992", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090446", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Kola 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 495.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:50]execute_script... [15:42:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189992", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216090446", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Kola 80\u0433\u0440 (2", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 495.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:50]POST & json_proto [15:42:50]process_json_proto [15:42:50]json parsed OK: [15:42:50]protocol is kg_v1.0 [15:42:50]action value=close_receipt [15:42:50]process_action close_receipt [15:42:50]cmd_close_receipt [15:42:50]MH_GetDate [15:42:50]Write to MH i2c: F0 00 00 A9 05 9D [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 09 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 09 00 A9 05 00 7B 16 C2 66 27 15 C2 66 C3 [15:42:50]GetLastDocTimeStamp 1723995759 [15:42:50]current date 1723995771 [15:42:50]FM_GetShiftState [15:42:50]SAM_PROTO_GetShiftState [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 13 01 00 [15:42:50]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0E 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 49 [15:42:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_GetShiftState done [15:42:50]FM_GetShiftState done [15:42:50]opened in 1723939759 [15:42:50]opened+sec_in_day 1724026159 [15:42:50]quantity*price = 15000 [15:42:50]sum+1 = 15001 [15:42:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227751 Р/ж mentos pure fresh арбуз 54г 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010483 Напиток Let`s Go! с/с яблоко ПЭТ 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8691216090446 Жевательный мармелад HARIBO Kola 80гр (2 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 495.00 НСП 1% : 4.37 НДС 12% : 52.57 Наличными: 495.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 80 18.08.2024 15:42 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49814 ФПД: 206346188660441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154251&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49814&fm=206346188660441&tin=02508201610067®Number=0000000000092546&sum=49500 0 [15:42:53]StoreToDocumentArchive [15:42:53]shift 466 fd 49814 [15:42:53]save to /storage/0466/doc_00049814 [15:42:53]save last doc name /storage/0466/doc_00049814 to /storage/kkm_last_doc_name [15:42:53]save OK [15:42:53]Clear old archive folders... [15:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=657 [15:42:53]tlvbuf is 0064DD40 [15:42:53]SAM_PROTO_ClearQueue [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 09 00 00 [15:42:53]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [15:42:53]RAPDU: 90 00 [15:42:53]wFMCommunicate OK [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 10 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 54000000005725D4 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 579+1723995431=1723996010 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 11 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 6A 17 C2 66 27 15 C2 66 0C [15:46:50]Current date/time: 18.08.2024 15:46 [15:46:50]FM_Init [15:46:50]wFMConnect [15:46:50]MH_SAM_On [15:46:50]Write to MH i2c: E0 00 00 08 00 E7 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_init finished! [15:46:50]*** atr: [15:46:50]*** 0F 3B D5 18 FF 81 91 FE [15:46:50]*** 1F C3 80 73 C8 21 10 0A [15:46:50]*** 00 00 00 00 00 00 00 00 [15:46:50]*** 00 00 00 00 00 00 00 00 [15:46:50]Read from MH i2c: *** 00 00 00 00 00 00 00 00 [15:46:50]E0 [15:46:50]MH_I2C_Read... [15:46:50]*** 00 00 00 00 00 00 00 00 [15:46:50]Read from MH i2c: E0 10 00 [15:46:50]MH_I2C_Read... [15:46:50]*** 00 00 00 00 00 00 00 00 [15:46:50]*** 00 00 00 00 00 00 00 00 [15:46:50]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:46:50]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:46:50]wFMCommunicate request_size=10 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:46:50]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:46:50]RAPDU: 90 00 [15:46:50]wFMCommunicate OK [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 11 00 00 [15:46:50]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [15:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:46:50]wFMCommunicate OK [15:46:50]Detected FM SN is 0000000000871800 [15:46:50]Stored FM SN is 0000000000871800 [15:46:50]wFMCommunicate request_size=9 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 16 00 00 04 FC 74 01 00 [15:46:50]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FC 74 01 00 00 00 03 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:46:50]RAPDU: 90 00 [15:46:50]wFMCommunicate OK [15:46:50]FM PIN OK [15:46:50]wFMCommunicate request_size=8 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 14 04 00 03 02 00 01 [15:46:50]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:46:50]RAPDU: 90 00 [15:46:50]wFMCommunicate OK [15:46:50]wFMCommunicate request_size=13 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:46:50]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:46:50]RAPDU: 90 00 [15:46:50]wFMCommunicate OK [15:46:50]wFMCommunicate request_size=4 [15:46:50]MH_SAM_APDU [15:46:50]CAPDU: 80 11 00 00 [15:46:50]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:50]Read from MH i2c: E2 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [15:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:46:50]wFMCommunicate OK [15:46:50]DocumentArchiveInit [15:46:50]Start Httpd... [15:46:50]Httpd thread 3067485540 created [15:46:50]Write to MH i2c: 01 00 00 0F 00 0F [15:46:50]Write i2c OK [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: 01 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: 01 07 00 [15:46:50]MH_I2C_Read... [15:46:50]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:46:50]MH Int Process started [15:46:50]Allocated Socket 8 [15:46:50]Bind OK [15:46:50]Listen OK [15:46:50]httpd running on port 8080 [15:46:50]Waiting for new connection... [15:46:50]OFD Sender: Processing packet 49823 [packets to send 21, broken 20] [15:46:50]ProducePacketName [15:46:50]name=ofd_packets/00049823 [15:46:50]OFD Sender: To server: pG, [15:46:50]CommunicateWithHost lk.salyk.kg:30040 [15:46:50]ConnectInit lk.salyk.kg [15:46:51]accept exits with 9 [15:46:51]New connection [15:46:51]New thread 3067198820 created [15:46:51]Waiting for new connection... [15:46:51] Sock 9.Parse request [15:46:51]Sock 9.Check first char [15:46:51]Sock 9.First char is OK [15:46:51]request: POST /json_proto HTTP/1.0 [15:46:51]Method: POST [15:46:51]URL: /json_proto [15:46:51]Method is POST - this is cgi request [15:46:51]url: /json_proto [15:46:51]query_string will be loaded in cgi processing [15:46:51]execute_cgi json_proto POST (null) [15:46:51]execute_cgi path=json_proto method=POST [15:46:51]POST find Content-Length [15:46:51]Host: 172.17.46.196:8080 [15:46:51]Content-Length: 215 [15:46:51]Content-Type: application/json [15:46:51] [15:46:51]POST finish read [15:46:51]Found Content-Length = 215 [15:46:51]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" ] } } [15:46:51]execute_script... [15:46:51]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" ] } } [15:46:51]POST & json_proto [15:46:51]process_json_proto [15:46:51]json parsed OK: [15:46:51]protocol is kg_v1.0 [15:46:51]action value=get_value [15:46:51]process_action get_value [15:46:51]cmd_get_value [15:46:51]process_action get_value done [15:46:51]requested_data is exist [15:46:51]produce_requested_data [15:46:51]requested_item kkm.sn is exist - process it [15:46:51]requested_item kkm.ver is exist - process it [15:46:51]requested_item fm.sn is exist - process it [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 11 00 00 [15:46:51]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [15:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:46:51]wFMCommunicate OK [15:46:51]requested_item fd.num is exist - process it [15:46:51]SAM_PROTO_GetFieldsCounters [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 13 00 00 [15:46:51]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 62 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:46:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:51]wFMCommunicate OK [15:46:51]SAM_PROTO_GetFieldsCounters done [15:46:51]requested_item shift.num is exist - process it [15:46:51]requested_item shift.opened is exist - process it [15:46:51]req_shift_opened [15:46:51]FM_GetShiftState [15:46:51]SAM_PROTO_GetShiftState [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 13 01 00 [15:46:51]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:52]Read from MH i2c: E2 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 0E 00 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AC [15:46:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:46:52]wFMCommunicate OK [15:46:52]SAM_PROTO_GetShiftState done [15:46:52]FM_GetShiftState done [15:46:52]req_shift_opened done [15:46:52]requested_item shift.open_date is exist - process it [15:46:52]req_shift_open_date [15:46:52]req_shift_open_date done [15:46:52]produce_requested_data done [15:46:52]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49823,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:46:52]process_action_free get_value [15:46:52]json_value_free [15:46:52]json_value_free done [15:46:52]process_json_proto returns [15:46:52]Send response to host [15:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49823,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:46:52]free response buf [15:46:52]execute_script done [15:46:52]execute_script returns [15:46:52]free content buf [15:46:52]Sock 9.Close socket [15:46:52]Sock 9.Thread stoped [15:46:52]accept exits with 11 [15:46:52]New connection [15:46:52]New thread 3067055460 created [15:46:52]Thread 3067198820 joined [15:46:52]Waiting for new connection... [15:46:52] Sock 11.Parse request [15:46:52]Sock 11.Check first char [15:46:52]Sock 11.First char is OK [15:46:52]request: POST /json_proto HTTP/1.0 [15:46:52]Method: POST [15:46:52]URL: /json_proto [15:46:52]Method is POST - this is cgi request [15:46:52]url: /json_proto [15:46:52]query_string will be loaded in cgi processing [15:46:52]execute_cgi json_proto POST (null) [15:46:52]execute_cgi path=json_proto method=POST [15:46:52]POST find Content-Length [15:46:52]Host: 172.17.46.196:8080 [15:46:52]Content-Length: 331 [15:46:52]Content-Type: application/json [15:46:52] [15:46:52]POST finish read [15:46:52]Found Content-Length = 331 [15:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:46:52]execute_script... [15:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:46:52]POST & json_proto [15:46:52]process_json_proto [15:46:52]json parsed OK: [15:46:52]protocol is kg_v1.0 [15:46:52]action value=get_value [15:46:52]process_action get_value [15:46:52]cmd_get_value [15:46:52]process_action get_value done [15:46:52]requested_data is exist [15:46:52]produce_requested_data [15:46:52]requested_item fm.sale.total is exist - process it [15:46:52]SAM_PROTO_GetFMData [15:46:52]wFMCommunicate request_size=4 [15:46:52]MH_SAM_APDU [15:46:52]CAPDU: 80 13 03 00 [15:46:52]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:46:52]Read from MH i2c: E2 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 FD 00 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 FD 00 13 00 00 C0 04 85 04 BC 04 6E 04 04 00 FB BE 00 00 69 04 A0 00 6F 04 04 00 E8 BE 00 00 B1 04 04 00 36 9E 3C 3D 70 04 04 00 E6 B7 AA 34 72 04 04 00 50 E6 91 08 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 BC BC 80 06 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 DF A5 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 59 [15:46:52]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FB BE 00 00 69 04 A0 00 6F 04 04 00 E8 BE 00 00 B1 04 04 00 36 9E 3C 3D 70 04 04 00 E6 B7 AA 34 72 04 04 00 50 E6 91 08 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 BC BC 80 06 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 DF A5 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [15:46:52]wFMCommunicate OK [15:46:52]wFMCommunicate request_size=4 [15:46:52]MH_SAM_APDU [15:46:52]CAPDU: 80 17 00 00 [15:46:52]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:52]Read from MH i2c: E2 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 FD 00 [15:46:52]MH_I2C_Read... [15:46:52]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [15:46:52]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:46:52]wFMCommunicate OK [15:46:52]wFMCommunicate request_size=4 [15:46:52]MH_SAM_APDU [15:46:52]CAPDU: 80 17 00 00 [15:46:52]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:46:52]Write i2c OK [15:46:52]MH_I2C_Read... [15:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 FD 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 FD 00 15 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [15:46:53]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:46:53]wFMCommunicate OK [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 17 00 00 [15:46:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]Connected sock=6 [15:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AB 01 00 00 EC 8D A3 01 F2 C0 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2F 17 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C2 00 00 35 04 06 00 8F BC BC C0 23 5E 05 58 DB FF 60 F2 27 AE [15:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 FD 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 FD 00 16 00 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [15:46:53]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:46:53]wFMCommunicate OK [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 17 00 00 [15:46:53]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F Read from MH i2c: 00 E2 00 [15:46:53]00 MH_I2C_Read... [15:46:53]31 23 Read from MH i2c: 47 E2 00 77 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C2 00 00 F4 03 04 00 E0 C1 C1 66 B6 04 01 00 00 DC BD 68 D6 93 F6 8E 71 [15:46:53]CommunicateWithHost err = 0 [15:46:53]CheckOFDResponse [15:46:53]1017 (14) - 77093643461234 [15:46:53]1041 (16) - 0000000000871800 [15:46:53]1040 (4) - 49823 [15:46:53]1012 (4) - 18.08.2024 09:41 [15:46:53]1206 (1) - 0 [15:46:53]OFD Sender: Remove packet 49823 [15:46:53]ProducePacketName [15:46:53]name=ofd_packets/00049823 [15:46:53]NVStorageDeleteData [15:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:46:53]DD 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 DD 00 17 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [15:46:53]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:46:53]wFMCommunicate OK [15:46:53]SAM_PROTO_GetFMData done [15:46:53]requested_item fm.sale_refund.total is exist - process it [15:46:53]requested_item fm.buy.total is exist - process it [15:46:53]requested_item shift.sale.total is exist - process it [15:46:53]SAM_PROTO_GetShiftData [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 13 02 00 [15:46:53]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:46:54]Read from MH i2c: E2 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 FD 00 [15:46:54]MH_I2C_Read... [15:46:54]OFD Sender: No OFD packet to send [15:46:54]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 90 45 16 70 04 03 00 60 39 11 72 04 03 00 30 0C 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 5D 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 51 [15:46:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 90 45 16 70 04 03 00 60 39 11 72 04 03 00 30 0C 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 5D 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:46:54]wFMCommunicate OK [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 17 00 00 [15:46:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:54]Read from MH i2c: E2 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 FD 00 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [15:46:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:46:54]wFMCommunicate OK [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 17 00 00 [15:46:54]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:54]Read from MH i2c: E2 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 FD 00 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [15:46:54]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:46:54]wFMCommunicate OK [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 17 00 00 [15:46:54]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 FD 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [15:46:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:46:55]wFMCommunicate OK [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 17 00 00 [15:46:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 CB 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [15:46:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:46:55]wFMCommunicate OK [15:46:55]SAM_PROTO_GetShiftData done [15:46:55]requested_item shift.sale.total_cash is exist - process it [15:46:55]requested_item shift.sale_refund.total is exist - process it [15:46:55]requested_item shift.sale_refund.total_cash is exist - process it [15:46:55]requested_item shift.buy.total is exist - process it [15:46:55]requested_item shift.buy.total_cash is exist - process it [15:46:55]produce_requested_data done [15:46:55]produce_requested_data return {"fm.sale.total":10273828.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":14596.00,"shift.sale.total_cash":11288.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} [15:46:55]process_action_free get_value [15:46:55]json_value_free [15:46:55]json_value_free done [15:46:55]process_json_proto returns [15:46:55]Send response to host [15:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10273828.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":14596.00,"shift.sale.total_cash":11288.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}}} [15:46:55]free response buf [15:46:55]execute_script done [15:46:55]execute_script returns [15:46:55]free content buf [15:46:55]Sock 11.Close socket [15:46:55]Sock 11.Thread stoped [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:05]int [15:47:05]Write to MH i2c: 01 00 00 1D 00 1D [15:47:05]*** FLAG_PRN_KEY set [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 FF 0F 3A [15:47:05]state=0 [15:47:05]Key pressed [15:47:05]Feed [15:47:05]Write to MH i2c: D8 00 00 1E 00 F5 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D8 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D8 01 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D8 01 00 1E 00 00 F6 [15:47:05]int [15:47:05]Write to MH i2c: 01 00 00 1F 00 1F [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 1F 00 00 48 00 00 00 3D 00 AB [15:47:05]state=2 [15:47:05]Key pressed [15:47:05]int [15:47:05]Write to MH i2c: 01 00 00 20 00 20 [15:47:05]*** FLAG_PRN_KEY reset [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 20 00 00 00 00 00 00 FB 0F 31 [15:47:05]state=2 [15:47:05]Stop feed [15:47:07]int [15:47:07]Write to MH i2c: 01 00 00 21 00 21 [15:47:07]*** FLAG_PRN_KEY set [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 21 00 00 08 00 00 00 FF 0F 3E [15:47:07]state=0 [15:47:07]Key pressed [15:47:07]Feed [15:47:07]Write to MH i2c: D8 00 00 22 00 F9 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D8 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D8 01 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D8 01 00 22 00 00 FA [15:47:07]int [15:47:07]Write to MH i2c: 01 00 00 23 00 23 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 23 00 00 48 00 00 00 3C 00 AE [15:47:07]state=2 [15:47:07]Key pressed [15:47:07]int [15:47:07]Write to MH i2c: 01 00 00 24 00 24 [15:47:07]*** FLAG_PRN_KEY reset [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FD 0F 37 [15:47:07]state=2 [15:47:07]Stop feed [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]accept exits with 9 [15:55:09]New connection [15:55:09]New thread 3067198820 created [15:55:09]Thread 3067055460 joined [15:55:09]Waiting for new connection... [15:55:09] Sock 9.Parse request [15:55:09]Sock 9.Check first char [15:55:09]Sock 9.First char is OK [15:55:09]request: POST /json_proto HTTP/1.0 [15:55:09]Method: POST [15:55:09]URL: /json_proto [15:55:09]Method is POST - this is cgi request [15:55:09]url: /json_proto [15:55:09]query_string will be loaded in cgi processing [15:55:09]execute_cgi json_proto POST (null) [15:55:09]execute_cgi path=json_proto method=POST [15:55:09]POST find Content-Length [15:55:09]Host: 172.17.46.196:8080 [15:55:09]Content-Length: 805 [15:55:09]Content-Type: application/json [15:55:09] [15:55:09]POST finish read [15:55:09]Found Content-Length = 805 [15:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190002", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:09]execute_script... [15:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190002", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:09]POST & json_proto [15:55:09]process_json_proto [15:55:09]json parsed OK: [15:55:09]protocol is kg_v1.0 [15:55:09]action value=close_receipt [15:55:09]process_action close_receipt [15:55:09]cmd_close_receipt [15:55:09]MH_GetDate [15:55:09]Write to MH i2c: F0 00 00 25 00 14 [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: F0 09 00 25 00 00 5E 19 C2 66 27 15 C2 66 20 [15:55:09]GetLastDocTimeStamp 1723995951 [15:55:09]current date 1723996510 [15:55:09]FM_GetShiftState [15:55:09]SAM_PROTO_GetShiftState [15:55:09]wFMCommunicate request_size=4 [15:55:09]MH_SAM_APDU [15:55:09]CAPDU: 80 13 01 00 [15:55:09]Write to MH i2c: E2 08 00 26 00 80 13 01 00 00 00 00 00 A3 [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:09]Read from MH i2c: E2 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: E2 0E 00 26 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 C0 [15:55:09]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:55:09]wFMCommunicate OK [15:55:09]SAM_PROTO_GetShiftState done [15:55:09]FM_GetShiftState done [15:55:09]opened in 1723939759 [15:55:09]opened+sec_in_day 1724026159 [15:55:09]quantity*price = 4200 [15:55:09]sum+1 = 4201 [15:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 0.00 Безнал.: 42.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 90 18.08.2024 15:55 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49824 ФПД: 68183768581304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155510&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49824&fm=68183768581304&tin=02508201610067®Number=0000000000092546&sum=4200 0 [15:55:10]StoreToDocumentArchive [15:55:10]shift 466 fd 49824 [15:55:10]save to /storage/0466/doc_00049824 [15:55:10]save last doc name /storage/0466/doc_00049824 to /storage/kkm_last_doc_name [15:55:10]save OK [15:55:10]Clear old archive folders... [15:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:55:10]tlvbuf is 00FA1B30 [15:55:10]SAM_PROTO_ClearQueue [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 09 00 00 [15:55:10]Write to MH i2c: E2 08 00 33 00 80 09 00 00 00 00 00 00 A5 [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 33 00 00 90 00 A7 [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]SAM_PROTO_ClearQueue done [15:55:10]KKMCreateOFDPacket [15:55:10]OFDProtocolAddRootSTLVToBuf [15:55:10]FM_MakeSignedData [15:55:10]FM_MakeSignedData [15:55:10]SAM_PROTO_SignData [15:55:10]wFMCommunicate request_size=4 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 0D 01 02 [15:55:10]Write to MH i2c: E2 08 00 34 00 80 0D 01 02 00 00 00 00 AD [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:10]Read from MH i2c: E2 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 [15:55:10]MH_I2C_Read... [15:55:10]Read from MH i2c: E2 03 00 34 00 00 90 00 A8 [15:55:10]RAPDU: 90 00 [15:55:10]wFMCommunicate OK [15:55:10]wFMCommunicate request_size=255 [15:55:10]MH_SAM_APDU [15:55:10]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [15:55:10]Write to MH i2c: E2 02 01 35 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 F2 [15:55:10]Write i2c OK [15:55:10]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 35 00 00 90 00 A9 [15:55:11]RAPDU: 90 00 [15:55:11]wFMCommunicate OK [15:55:11]wFMCommunicate request_size=34 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C2 00 00 35 04 06 00 3E 03 45 4E 44 B8 [15:55:11]Write to MH i2c: E2 25 00 36 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C2 00 00 35 04 06 00 3E 03 45 4E 44 B8 00 00 9B [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 03 00 36 00 00 90 00 AA [15:55:11]RAPDU: 90 00 [15:55:11]wFMCommunicate OK [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 0D 03 02 [15:55:11]Write to MH i2c: E2 08 00 37 00 80 0D 03 02 00 00 00 00 B2 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 0B 00 37 00 00 A5 AE 16 68 85 D2 A6 C0 90 00 41 [15:55:11]RAPDU: A5 AE 16 68 85 D2 A6 C0 90 00 [15:55:11]wFMCommunicate OK [15:55:11]SAM_PROTO_SignData done [15:55:11]FM_MakeSignedData done [15:55:11]CreateOFDProtocolMessage [15:55:11]wFMCommunicate request_size=4 [15:55:11]MH_SAM_APDU [15:55:11]CAPDU: 80 11 00 00 [15:55:11]Write to MH i2c: E2 08 00 38 00 80 11 00 00 00 00 00 00 B2 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:11]Read from MH i2c: E2 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: E2 17 00 38 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FD [15:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:55:11]wFMCommunicate OK [15:55:11]CreateOFDProtocolMessage done [15:55:11]OFDSenderStorePacket 49824 [15:55:11]StoreOFDPacket docnum=49824 [15:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 F8 E6 1F 01 FD 10 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C2 00 00 35 04 06 00 3E 03 45 4E 44 B8 A5 AE 16 68 85 D2 A6 C0 [15:55:11]CheckFolder [15:55:11]dirname=/storage/ofd_packets [15:55:11]CheckFolder done [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00049824 [15:55:11]NVStorageSaveData ofd_packets/00049824 [15:55:11]File name is /storage/ofd_packets/00049824 [15:55:11]Write 325 bytes [15:55:11]NVStorageSaveData done [15:55:11]OFDSenderStorePacket done [15:55:11]KKMCreateOFDPacket done [15:55:11]NVStorageSaveData kkm_last_timestamp [15:55:11]File name is /storage/kkm_last_timestamp [15:55:11]Write 4 bytes [15:55:11]NVStorageSaveData done [15:55:11]ExternCall_PrintAddStr [15:55:11]wPrintStart [15:55:11]Write to MH i2c: 01 00 00 39 00 39 [15:55:11]OFD Sender: Processing packet 49824 [packets to send 21, broken 20] [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00049824 [15:55:11]OFD Sender: To server: pG, [15:55:11]CommunicateWithHost lk.salyk.kg:30040 [15:55:11]ConnectInit lk.salyk.kg [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [15:55:11]RasterBufferAndPrint [15:55:11]line Счет N : (3)190002 [15:55:11]line ИНН: 02508201610067 [15:55:11]line Контрольно-Кассовый Чек [15:55:11]line ПРОДАЖА [15:55:11]line Товар: 5449000005489 [15:55:11]line Вода Бонаква 1л б/г [15:55:11]line 1.000 * 42.00 [15:55:11]line = 42.00 [15:55:11]line НДС 12% НСП 1% [15:55:11]line > о реализуемом товаре [15:55:11]line ИТОГО: 42.00 [15:55:11]line НСП 1% : 0.37 [15:55:11]line НДС 12% : 4.46 [15:55:11]line Наличными: 0.00 [15:55:11]line Безнал.: 42.00 [15:55:11]line Место: АЗС № 95 "Партнер Нефть" [15:55:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:55:11]line СНО: Общий режим [15:55:11]line Чек 90 18.08.2024 15:55 [15:55:11]line Смена: 466 ФФД: 1.0 [15:55:11]line ЗНМ: 0300000078 [15:55:11]line РНМ: 0000000000092546 [15:55:11]line Версия ККМ: 001 [15:55:11]line Платежная система: O! деньги [15:55:11]line ФМ: 0000000000871800 [15:55:11]line ФД: 49824 [15:55:11]line ФПД: 68183768581304 [15:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155510&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49824&fm=68183768581304&tin=02508201610067®Number=0000000000092546&sum=4200 [15:55:11]line 0 [15:55:11]written 0, free lines is 4095 [15:55:11]Connected sock=7 [15:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 F8 E6 1F 01 FD 10 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C2 00 00 35 04 06 00 3E 03 45 4E 44 B8 A5 AE 16 68 85 D2 A6 C0 [15:55:11]Write to MH i2c: 01 00 00 63 00 63 [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 D4 0C 4A [15:55:11]RasterBufferAndPrint [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]line [15:55:11]written 0, free lines is 3290 [15:55:11]MH_Cut [15:55:11]Write to MH i2c: D1 01 00 6A 00 01 3C [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 [15:55:11]MH_I2C_Read... [15:55:11]Read from MH i2c: D1 01 00 6A 00 00 3B [15:55:11]Write to MH i2c: 01 00 00 6B 00 6B [15:55:11]Write i2c OK [15:55:11]MH_I2C_Read... [15:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 39 39 47 00 DB CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C2 00 00 F4 03 04 00 D2 C3 C1 66 B6 04 01 00 00 D5 C9 36 27 5A 5D B8 AE [15:55:11]CommunicateWithHost err = 0 [15:55:11]CheckOFDResponse [15:55:11]1017 (14) - 77093643461234 [15:55:11]1041 (16) - 0000000000871800 [15:55:11]1040 (4) - 49824 [15:55:11]1012 (4) - 18.08.2024 09:50 [15:55:11]1206 (1) - 0 [15:55:11]OFD Sender: Remove packet 49824 [15:55:11]ProducePacketName [15:55:11]name=ofd_packets/00049824 [15:55:11]NVStorageDeleteData [15:55:12]OFD Sender: No OFD packet to send [15:55:12]*** Cut start [15:55:12]*** Purtial cut [15:55:12]*** CUTSNS_PIN = 0 [15:55:12]*** Stage 1: CUTSNS_PIN = 1 [15:55:14]Read from MH i2c: 01 [15:55:14]MH_I2C_Read... [15:55:14]*** Stop cut motor [15:55:14]*** Cut end [15:55:14]Read from MH i2c: 01 07 00 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: 01 07 00 6B 00 00 00 00 00 00 FF 0F 80 [15:55:14]process_action close_receipt done [15:55:14]requested_data is exist [15:55:14]produce_requested_data [15:55:14]requested_item fm.sn is exist - process it [15:55:14]wFMCommunicate request_size=4 [15:55:14]MH_SAM_APDU [15:55:14]CAPDU: 80 11 00 00 [15:55:14]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [15:55:14]Write i2c OK [15:55:14]MH_I2C_Read... [15:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:14]Read from MH i2c: E2 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 17 00 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [15:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:55:14]wFMCommunicate OK [15:55:14]requested_item fd.num is exist - process it [15:55:14]SAM_PROTO_GetFieldsCounters [15:55:14]wFMCommunicate request_size=4 [15:55:14]MH_SAM_APDU [15:55:14]CAPDU: 80 13 00 00 [15:55:14]Write to MH i2c: E2 08 00 6D 00 80 13 00 00 00 00 00 00 E9 [15:55:14]Write i2c OK [15:55:14]MH_I2C_Read... [15:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:14]Read from MH i2c: E2 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 62 00 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 62 00 6D 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [15: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:14]wFMCommunicate OK [15:55:14]SAM_PROTO_GetFieldsCounters done [15:55:14]requested_item shift.num is exist - process it [15:55:14]requested_item shift.opened is exist - process it [15:55:14]req_shift_opened [15:55:14]FM_GetShiftState [15:55:14]SAM_PROTO_GetShiftState [15:55:14]wFMCommunicate request_size=4 [15:55:14]MH_SAM_APDU [15:55:14]CAPDU: 80 13 01 00 [15:55:14]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [15:55:14]Write i2c OK [15:55:14]MH_I2C_Read... [15:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:14]Read from MH i2c: E2 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 0E 00 [15:55:14]MH_I2C_Read... [15:55:14]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 08 [15:55:14]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:55:14]wFMCommunicate OK [15:55:14]SAM_PROTO_GetShiftState done [15:55:14]FM_GetShiftState done [15:55:14]req_shift_opened done [15:55:14]requested_item shift.open_date is exist - process it [15:55:14]req_shift_open_date [15:55:14]req_shift_open_date done [15:55:14]produce_requested_data done [15:55:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49824,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:55:14]process_action_free close_receipt [15:55:14]json_value_free [15:55:14]json_value_free done [15:55:14]process_json_proto returns [15:55:14]Send response to host [15:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49824,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:55:14]free response buf [15:55:14]execute_script done [15:55:14]execute_script returns [15:55:14]free content buf [15:55:14]Sock 9.Close socket [15:55:14]Sock 9.Thread stoped [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:13]accept exits with 10 [15:56:13]New connection [15:56:13]New thread 3067055460 created [15:56:13]Thread 3067198820 joined [15:56:13]Waiting for new connection... [15:56:13] Sock 10.Parse request [15:56:13]Sock 10.Check first char [15:56:13]Sock 10.First char is OK [15:56:13]request: POST /json_proto HTTP/1.0 [15:56:13]Method: POST [15:56:13]URL: /json_proto [15:56:13]Method is POST - this is cgi request [15:56:13]url: /json_proto [15:56:13]query_string will be loaded in cgi processing [15:56:13]execute_cgi json_proto POST (null) [15:56:13]execute_cgi path=json_proto method=POST [15:56:13]POST find Content-Length [15:56:13]Host: 172.17.46.196:8080 [15:56:13]Content-Length: 885 [15:56:13]Content-Type: application/json [15:56:13] [15:56:13]POST finish read [15:56:13]Found Content-Length = 885 [15:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190003", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 82.00, "quantity" : 2.000, "sum" : 164.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:13]execute_script... [15:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190003", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 82.00, "quantity" : 2.000, "sum" : 164.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:13]POST & json_proto [15:56:13]process_json_proto [15:56:13]json parsed OK: [15:56:13]protocol is kg_v1.0 [15:56:13]action value=close_receipt [15:56:13]process_action close_receipt [15:56:13]cmd_close_receipt [15:56:13]MH_GetDate [15:56:13]Write to MH i2c: F0 00 00 6F 00 5E [15:56:13]Write i2c OK [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 09 00 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 09 00 6F 00 00 9E 19 C2 66 27 15 C2 66 AA [15:56:13]GetLastDocTimeStamp 1723996510 [15:56:13]current date 1723996574 [15:56:13]FM_GetShiftState [15:56:13]SAM_PROTO_GetShiftState [15:56:13]wFMCommunicate request_size=4 [15:56:13]MH_SAM_APDU [15:56:13]CAPDU: 80 13 01 00 [15:56:13]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [15:56:13]Write i2c OK [15:56:13]MH_I2C_Read... [15:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:13]Read from MH i2c: E2 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: E2 0E 00 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 0A [15:56:13]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:56:13]wFMCommunicate OK [15:56:13]SAM_PROTO_GetShiftState done [15:56:13]FM_GetShiftState done [15:56:13]opened in 1723939759 [15:56:13]opened+sec_in_day 1724026159 [15:56:13]quantity*price = 16400 [15:56:13]sum+1 = 16401 [15:56:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 309.00 НСП 1% : 2.73 НДС 12% : 32.82 Наличными: 309.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 91 18.08.2024 15:56 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49825 ФПД: 60259869142467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155614&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49825&fm=60259869142467&tin=02508201610067®Number=0000000000092546&sum=30900 0 [15:56:15]StoreToDocumentArchive [15:56:15]shift 466 fd 49825 [15:56:15]save to /storage/0466/doc_00049825 [15:56:15]save last doc name /storage/0466/doc_00049825 to /storage/kkm_last_doc_name [15:56:15]save OK [15:56:15]Clear old archive folders... [15:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=384 [15:56:15]tlvbuf is B6EE4AA0 [15:56:15]SAM_PROTO_ClearQueue [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 09 00 00 [15:56:15]Write to MH i2c: E2 08 00 7D 00 80 09 00 00 00 00 00 00 EF [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_ClearQueue done [15:56:15]KKMCreateOFDPacket [15:56:15]OFDProtocolAddRootSTLVToBuf [15:56:15]FM_MakeSignedData [15:56:15]FM_MakeSignedData [15:56:15]SAM_PROTO_SignData [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 01 02 [15:56:15]Write to MH i2c: E2 08 00 7E 00 80 0D 01 02 00 00 00 00 F7 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=255 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [15:56:15]Write to MH i2c: E2 02 01 7F 00 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 61 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=143 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 02 02 8A 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C2 00 00 35 04 06 00 36 CE 58 18 2D C3 [15:56:15]Write to MH i2c: E2 92 00 80 00 80 0D 02 02 8A 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C2 00 00 35 04 06 00 36 CE 58 18 2D C3 00 00 24 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 03 02 [15:56:15]Write to MH i2c: E2 08 00 81 00 80 0D 03 02 00 00 00 00 FC [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 81 00 00 BF BB 14 29 88 E3 C2 55 90 00 36 [15:56:15]RAPDU: BF BB 14 29 88 E3 C2 55 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_SignData done [15:56:15]FM_MakeSignedData done [15:56:15]CreateOFDProtocolMessage [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 11 00 00 [15:56:15]Write to MH i2c: E2 08 00 82 00 80 11 00 00 00 00 00 00 FC [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 82 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [15:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:56:15]wFMCommunicate OK [15:56:15]CreateOFDProtocolMessage done [15:56:15]OFDSenderStorePacket 49825 [15:56:15]StoreOFDPacket docnum=49825 [15:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 01 00 00 FF 1A 8C 01 DB 62 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C2 00 00 35 04 06 00 36 CE 58 18 2D C3 BF BB 14 29 88 E3 C2 55 [15:56:15]CheckFolder [15:56:15]dirname=/storage/ofd_packets [15:56:15]CheckFolder done [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00049825 [15:56:15]NVStorageSaveData ofd_packets/00049825 [15:56:15]File name is /storage/ofd_packets/00049825 [15:56:15]Write 434 bytes [15:56:15]NVStorageSaveData done [15:56:15]OFDSenderStorePacket done [15:56:15]KKMCreateOFDPacket done [15:56:15]NVStorageSaveData kkm_last_timestamp [15:56:15]File name is /storage/kkm_last_timestamp [15:56:15]Write 4 bytes [15:56:15]NVStorageSaveData done [15:56:15]ExternCall_PrintAddStr [15:56:15]wPrintStart [15:56:15]Write to MH i2c: 01 00 00 83 00 83 [15:56:15]OFD Sender: Processing packet 49825 [packets to send 21, broken 20] [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00049825 [15:56:15]OFD Sender: To server: pG, [15:56:15]CommunicateWithHost lk.salyk.kg:30040 [15:56:15]ConnectInit lk.salyk.kg [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [15:56:15]RasterBufferAndPrint [15:56:15]line Счет N : (3)190003 [15:56:15]line ИНН: 02508201610067 [15:56:15]line Контрольно-Кассовый Чек [15:56:15]line ПРОДАЖА [15:56:15]line Товар: 4700000483259 [15:56:15]line Напиток Nitro Fresh Мохито [15:56:15]line 2.000 * 82.00 [15:56:15]line = 164.00 [15:56:15]line НДС 12% НСП 1% [15:56:15]line > о реализуемом товаре [15:56:15]line Товар: 48744119 [15:56:15]line Сигареты Winston Xstyle Dual [15:56:15]line 1.000 * 145.00 [15:56:15]line = 145.00 [15:56:15]line НДС 12% НСП 1% [15:56:15]line > о реализуемом товаре [15:56:15]line ИТОГО: 309.00 [15:56:15]line НСП 1% : 2.73 [15:56:15]line НДС 12% : 32.82 [15:56:15]line Наличными: 309.00 [15:56:15]line Безнал.: 0.00 [15:56:15]line Место: АЗС № 95 "Партнер Нефть" [15:56:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:56:15]line СНО: Общий режим [15:56:15]line Чек 91 18.08.2024 15:56 [15:56:15]line Смена: 466 ФФД: 1.0 [15:56:15]line ЗНМ: 0300000078 [15:56:15]line РНМ: 0000000000092546 [15:56:15]line Версия ККМ: 001 [15:56:15]line ФМ: 0000000000871800 [15:56:15]line ФД: 49825 [15:56:15]line ФПД: 60259869142467 [15:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155614&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49825&fm=60259869142467&tin=02508201610067®Number=0000000000092546&sum=30900 [15:56:15]line 0 [15:56:15]written 0, free lines is 4095 [15:56:16]Connected sock=9 [15:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 01 00 00 FF 1A 8C 01 DB 62 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9E 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C2 00 00 35 04 06 00 36 CE 58 18 2D C3 BF BB 14 29 88 E3 C2 55 [15:56:16]Write to MH i2c: 01 00 00 B1 00 B1 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 7C 0C 40 [15:56:16]RasterBufferAndPrint [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]written 0, free lines is 3202 [15:56:16]MH_Cut [15:56:16]Write to MH i2c: D1 01 00 B8 00 01 8A [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 01 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 01 00 B8 00 00 89 [15:56:16]Write to MH i2c: 01 00 00 B9 00 B9 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 85 9D 47 00 7F 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C2 00 00 F4 03 04 00 13 C4 C1 66 B6 04 01 00 00 E6 3F 58 85 F6 66 A7 55 [15:56:16]CommunicateWithHost err = 0 [15:56:16]CheckOFDResponse [15:56:16]1017 (14) - 77093643461234 [15:56:16]1041 (16) - 0000000000871800 [15:56:16]1040 (4) - 49825 [15:56:16]1012 (4) - 18.08.2024 09:51 [15:56:16]1206 (1) - 0 [15:56:16]OFD Sender: Remove packet 49825 [15:56:16]ProducePacketName [15:56:16]name=ofd_packets/00049825 [15:56:16]NVStorageDeleteData [15:56:17]OFD Sender: No OFD packet to send [15:56:17]*** Cut start [15:56:17]*** Purtial cut [15:56:17]*** Stage 1: CUTSNS_PIN = 1 [15:56:17]Read from MH i2c: 01 [15:56:17]MH_I2C_Read... [15:56:17]*** Stop cut motor [15:56:17]*** Cut end [15:56:17]Read from MH i2c: 01 07 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [15:56:17]process_action close_receipt done [15:56:17]requested_data is exist [15:56:17]produce_requested_data [15:56:17]requested_item fm.sn is exist - process it [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 11 00 00 [15:56:17]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 17 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7F [15:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:56:17]wFMCommunicate OK [15:56:17]requested_item fd.num is exist - process it [15:56:17]SAM_PROTO_GetFieldsCounters [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 13 00 00 [15:56:17]Write to MH i2c: E2 08 00 BB 00 80 13 00 00 00 00 00 00 37 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 62 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 62 00 BB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [15:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetFieldsCounters done [15:56:17]requested_item shift.num is exist - process it [15:56:17]requested_item shift.opened is exist - process it [15:56:17]req_shift_opened [15:56:17]FM_GetShiftState [15:56:17]SAM_PROTO_GetShiftState [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 13 01 00 [15:56:17]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 56 [15:56:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetShiftState done [15:56:17]FM_GetShiftState done [15:56:17]req_shift_opened done [15:56:17]requested_item shift.open_date is exist - process it [15:56:17]req_shift_open_date [15:56:17]req_shift_open_date done [15:56:17]produce_requested_data done [15:56:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49825,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:56:17]process_action_free close_receipt [15:56:17]json_value_free [15:56:17]json_value_free done [15:56:17]process_json_proto returns [15:56:17]Send response to host [15:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49825,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:56:17]free response buf [15:56:17]execute_script done [15:56:17]execute_script returns [15:56:17]free content buf [15:56:17]Sock 10.Close socket [15:56:17]Sock 10.Thread stoped [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:15]accept exits with 7 [15:57:15]New connection [15:57:15]New thread 3067198820 created [15:57:15]Thread 3067055460 joined [15:57:15]Waiting for new connection... [15:57:15] Sock 7.Parse request [15:57:15]Sock 7.Check first char [15:57:15]Sock 7.First char is OK [15:57:15]request: POST /json_proto HTTP/1.0 [15:57:15]Method: POST [15:57:15]URL: /json_proto [15:57:15]Method is POST - this is cgi request [15:57:15]url: /json_proto [15:57:15]query_string will be loaded in cgi processing [15:57:15]execute_cgi json_proto POST (null) [15:57:15]execute_cgi path=json_proto method=POST [15:57:15]POST find Content-Length [15:57:15]Host: 172.17.46.196:8080 [15:57:15]Content-Length: 621 [15:57:15]Content-Type: application/json [15:57:15] [15:57:15]POST finish read [15:57:15]Found Content-Length = 621 [15:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190004", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:15]execute_script... [15:57:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190004", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:15]POST & json_proto [15:57:15]process_json_proto [15:57:15]json parsed OK: [15:57:15]protocol is kg_v1.0 [15:57:15]action value=close_receipt [15:57:15]process_action close_receipt [15:57:15]cmd_close_receipt [15:57:15]MH_GetDate [15:57:15]Write to MH i2c: F0 00 00 BD 00 AC [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: F0 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: F0 09 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: F0 09 00 BD 00 00 DC 19 C2 66 27 15 C2 66 36 [15:57:15]GetLastDocTimeStamp 1723996574 [15:57:15]current date 1723996636 [15:57:15]FM_GetShiftState [15:57:15]SAM_PROTO_GetShiftState [15:57:15]wFMCommunicate request_size=4 [15:57:15]MH_SAM_APDU [15:57:15]CAPDU: 80 13 01 00 [15:57:15]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:15]Read from MH i2c: E2 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: E2 0E 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 58 [15:57:15]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:57:15]wFMCommunicate OK [15:57:15]SAM_PROTO_GetShiftState done [15:57:15]FM_GetShiftState done [15:57:15]opened in 1723939759 [15:57:15]opened+sec_in_day 1724026159 [15:57:15]quantity*price = 28000 [15:57:15]sum+1 = 28001 [15:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 92 18.08.2024 15:57 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49826 ФПД: 45659532337850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155716&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49826&fm=45659532337850&tin=02508201610067®Number=0000000000092546&sum=28000 0 [15:57:16]StoreToDocumentArchive [15:57:16]shift 466 fd 49826 [15:57:16]save to /storage/0466/doc_00049826 [15:57:16]save last doc name /storage/0466/doc_00049826 to /storage/kkm_last_doc_name [15:57:16]save OK [15:57:16]Clear old archive folders... [15:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:57:16]tlvbuf is 00FCF120 [15:57:16]SAM_PROTO_ClearQueue [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 09 00 00 [15:57:16]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_ClearQueue done [15:57:16]KKMCreateOFDPacket [15:57:16]OFDProtocolAddRootSTLVToBuf [15:57:16]FM_MakeSignedData [15:57:16]FM_MakeSignedData [15:57:16]SAM_PROTO_SignData [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 0D 01 02 [15:57:16]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]wFMCommunicate request_size=255 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DC 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [15:57:16]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DC 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 64 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [15:57:17]RAPDU: 90 00 [15:57:17]wFMCommunicate OK [15:57:17]wFMCommunicate request_size=32 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C2 00 00 35 04 06 00 29 86 F0 34 A2 BA [15:57:17]Write to MH i2c: E2 23 00 CE 00 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C2 00 00 35 04 06 00 29 86 F0 34 A2 BA 00 00 30 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [15:57:17]RAPDU: 90 00 [15:57:17]wFMCommunicate OK [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 0D 03 02 [15:57:17]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]OFD Sender: No OFD packet to send [15:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0B 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0B 00 CF 00 00 96 13 2B 17 5F 95 DA A8 90 00 AC [15:57:17]RAPDU: 96 13 2B 17 5F 95 DA A8 90 00 [15:57:17]wFMCommunicate OK [15:57:17]SAM_PROTO_SignData done [15:57:17]FM_MakeSignedData done [15:57:17]CreateOFDProtocolMessage [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 11 00 00 [15:57:17]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 17 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 95 [15:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:17]wFMCommunicate OK [15:57:17]CreateOFDProtocolMessage done [15:57:17]OFDSenderStorePacket 49826 [15:57:17]StoreOFDPacket docnum=49826 [15:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 20 DB 1D 01 B0 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DC 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C2 00 00 35 04 06 00 29 86 F0 34 A2 BA 96 13 2B 17 5F 95 DA A8 [15:57:17]CheckFolder [15:57:17]dirname=/storage/ofd_packets [15:57:17]CheckFolder done [15:57:17]ProducePacketName [15:57:17]name=ofd_packets/00049826 [15:57:17]NVStorageSaveData ofd_packets/00049826 [15:57:17]File name is /storage/ofd_packets/00049826 [15:57:17]Write 323 bytes [15:57:17]NVStorageSaveData done [15:57:17]OFDSenderStorePacket done [15:57:17]KKMCreateOFDPacket done [15:57:17]NVStorageSaveData kkm_last_timestamp [15:57:17]File name is /storage/kkm_last_timestamp [15:57:17]Write 4 bytes [15:57:17]NVStorageSaveData done [15:57:17]ExternCall_PrintAddStr [15:57:17]wPrintStart [15:57:17]Write to MH i2c: 01 00 00 D1 00 D1 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 07 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [15:57:17]RasterBufferAndPrint [15:57:17]line Счет N : (3)190004 [15:57:17]line ИНН: 02508201610067 [15:57:17]line Контрольно-Кассовый Чек [15:57:17]line ПРОДАЖА [15:57:17]line Товар: 48747059 [15:57:17]line Сигареты Winston Legend Blue [15:57:17]line 2.000 * 140.00 [15:57:17]line = 280.00 [15:57:17]line НДС 12% НСП 1% [15:57:17]line > о реализуемом товаре [15:57:17]line ИТОГО: 280.00 [15:57:17]line НСП 1% : 2.48 [15:57:17]line НДС 12% : 29.73 [15:57:17]line Наличными: 280.00 [15:57:17]line Безнал.: 0.00 [15:57:17]line Место: АЗС № 95 "Партнер Нефть" [15:57:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:57:17]line СНО: Общий режим [15:57:17]line Чек 92 18.08.2024 15:57 [15:57:17]line Смена: 466 ФФД: 1.0 [15:57:17]line ЗНМ: 0300000078 [15:57:17]line РНМ: 0000000000092546 [15:57:17]line Версия ККМ: 001 [15:57:17]line ФМ: 0000000000871800 [15:57:17]line ФД: 49826 [15:57:17]line ФПД: 45659532337850 [15:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155716&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49826&fm=45659532337850&tin=02508201610067®Number=0000000000092546&sum=28000 [15:57:17]OFD Sender: Processing packet 49826 [packets to send 21, broken 20] [15:57:17]ProducePacketName [15:57:17]name=ofd_packets/00049826 [15:57:17]OFD Sender: To server: pG, [15:57:17]CommunicateWithHost lk.salyk.kg:30040 [15:57:17]ConnectInit lk.salyk.kg [15:57:17]line 0 [15:57:17]written 0, free lines is 4095 [15:57:17]Connected sock=10 [15:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 20 DB 1D 01 B0 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DC 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C2 00 00 35 04 06 00 29 86 F0 34 A2 BA 96 13 2B 17 5F 95 DA A8 [15:57:18]Write to MH i2c: 01 00 00 FA 00 FA [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 07 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 D2 0C DF [15:57:18]RasterBufferAndPrint [15:57:18]line [15:57:18]line [15:57:18]line [15:57:18]line [15:57:18]line [15:57:18]written 0, free lines is 3287 [15:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1D 56 47 00 AF 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C2 00 00 F4 03 04 00 51 C4 C1 66 B6 04 01 00 00 D1 20 AD 3B C9 75 BC D1 [15:57:18]CommunicateWithHost err = 0 [15:57:18]CheckOFDResponse [15:57:18]1017 (14) - 77093643461234 [15:57:18]1041 (16) - 0000000000871800 [15:57:18]1040 (4) - 49826 [15:57:18]1012 (4) - 18.08.2024 09:52 [15:57:18]1206 (1) - 0 [15:57:18]OFD Sender: Remove packet 49826 [15:57:18]ProducePacketName [15:57:18]name=ofd_packets/00049826 [15:57:18]NVStorageDeleteData [15:57:18]MH_Cut [15:57:18]Write to MH i2c: D1 01 00 01 01 01 D4 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: D1 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: D1 01 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: D1 01 00 01 01 00 D3 [15:57:18]Write to MH i2c: 01 00 00 02 01 03 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]OFD Sender: No OFD packet to send [15:57:18]*** Cut start [15:57:18]*** Purtial cut [15:57:18]*** CUTSNS_PIN = 0 [15:57:19]*** Stage 1: CUTSNS_PIN = 1 [15:57:20]Read from MH i2c: 01 [15:57:20]MH_I2C_Read... [15:57:20]*** Stop cut motor [15:57:20]*** Cut end [15:57:20]Read from MH i2c: 01 07 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [15:57:20]process_action close_receipt done [15:57:20]requested_data is exist [15:57:20]produce_requested_data [15:57:20]requested_item fm.sn is exist - process it [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 11 00 00 [15:57:20]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 17 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C9 [15:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:20]wFMCommunicate OK [15:57:20]requested_item fd.num is exist - process it [15:57:20]SAM_PROTO_GetFieldsCounters [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 13 00 00 [15:57:20]Write to MH i2c: E2 08 00 04 01 80 13 00 00 00 00 00 00 81 [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 62 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 62 00 04 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_GetFieldsCounters done [15:57:21]requested_item shift.num is exist - process it [15:57:21]requested_item shift.opened is exist - process it [15:57:21]req_shift_opened [15:57:21]FM_GetShiftState [15:57:21]SAM_PROTO_GetShiftState [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 13 01 00 [15:57:21]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A0 [15:57:21]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_GetShiftState done [15:57:21]FM_GetShiftState done [15:57:21]req_shift_opened done [15:57:21]requested_item shift.open_date is exist - process it [15:57:21]req_shift_open_date [15:57:21]req_shift_open_date done [15:57:21]produce_requested_data done [15:57:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49826,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:57:21]process_action_free close_receipt [15:57:21]json_value_free [15:57:21]json_value_free done [15:57:21]process_json_proto returns [15:57:21]Send response to host [15:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49826,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:57:21]free response buf [15:57:21]execute_script done [15:57:21]execute_script returns [15:57:21]free content buf [15:57:21]Sock 7.Close socket [15:57:21]Sock 7.Thread stoped [15:57:23]OFD Sender: No OFD packet to send [15:57:25]accept exits with 9 [15:57:25]New connection [15:57:25]New thread 3067055460 created [15:57:25]Thread 3067198820 joined [15:57:25]Waiting for new connection... [15:57:25] Sock 9.Parse request [15:57:25]Sock 9.Check first char [15:57:25]Sock 9.First char is OK [15:57:25]request: POST /json_proto HTTP/1.0 [15:57:25]Method: POST [15:57:25]URL: /json_proto [15:57:25]Method is POST - this is cgi request [15:57:25]url: /json_proto [15:57:25]query_string will be loaded in cgi processing [15:57:25]execute_cgi json_proto POST (null) [15:57:25]execute_cgi path=json_proto method=POST [15:57:25]POST find Content-Length [15:57:25]Host: 172.17.46.196:8080 [15:57:25]Content-Length: 807 [15:57:25]Content-Type: application/json [15:57:25] [15:57:25]POST finish read [15:57:25]Found Content-Length = 807 [15:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190005", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]execute_script... [15:57: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 : (3)190005", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]POST & json_proto [15:57:25]process_json_proto [15:57:25]json parsed OK: [15:57:25]protocol is kg_v1.0 [15:57:25]action value=close_receipt [15:57:25]process_action close_receipt [15:57:25]cmd_close_receipt [15:57:25]MH_GetDate [15:57:25]Write to MH i2c: F0 00 00 06 01 F6 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 06 01 00 E6 19 C2 66 27 15 C2 66 8A [15:57:25]GetLastDocTimeStamp 1723996636 [15:57:25]current date 1723996646 [15:57:25]FM_GetShiftState [15:57:25]SAM_PROTO_GetShiftState [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 01 00 [15:57:25]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A2 [15:57:25]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetShiftState done [15:57:25]FM_GetShiftState done [15:57:25]opened in 1723939759 [15:57:25]opened+sec_in_day 1724026159 [15:57:25]quantity*price = 13000 [15:57:25]sum+1 = 13001 [15:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 93 18.08.2024 15:57 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49827 ФПД: 210649979326300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155726&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49827&fm=210649979326300&tin=02508201610067®Number=0000000000092546&sum=13000 0 [15:57:26]StoreToDocumentArchive [15:57:26]shift 466 fd 49827 [15:57:26]save to /storage/0466/doc_00049827 [15:57:26]save last doc name /storage/0466/doc_00049827 to /storage/kkm_last_doc_name [15:57:26]save OK [15:57:26]Clear old archive folders... [15:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:57:26]tlvbuf is 00FD0CD0 [15:57:26]SAM_PROTO_ClearQueue [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 09 00 00 [15:57:26]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_ClearQueue done [15:57:26]KKMCreateOFDPacket [15:57:26]OFDProtocolAddRootSTLVToBuf [15:57:26]FM_MakeSignedData [15:57:26]FM_MakeSignedData [15:57:26]SAM_PROTO_SignData [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 0D 01 02 [15:57:26]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]wFMCommunicate request_size=255 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E6 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [15:57:26]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E6 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 F6 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=41 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C2 00 00 35 04 06 00 BF 95 C5 30 8F 5C [15:57:27]Write to MH i2c: E2 2C 00 17 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C2 00 00 35 04 06 00 BF 95 C5 30 8F 5C 00 00 F2 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 03 02 [15:57:27]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 18 01 00 E3 92 38 91 BD 2A 0C 40 90 00 06 [15:57:27]RAPDU: E3 92 38 91 BD 2A 0C 40 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_SignData done [15:57:27]FM_MakeSignedData done [15:57:27]CreateOFDProtocolMessage [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 11 00 00 [15:57:27]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DF [15:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:27]wFMCommunicate OK [15:57:27]CreateOFDProtocolMessage done [15:57:27]OFDSenderStorePacket 49827 [15:57:27]StoreOFDPacket docnum=49827 [15:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 A2 23 26 01 9E 26 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E6 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C2 00 00 35 04 06 00 BF 95 C5 30 8F 5C E3 92 38 91 BD 2A 0C 40 [15:57:27]CheckFolder [15:57:27]dirname=/storage/ofd_packets [15:57:27]CheckFolder done [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00049827 [15:57:27]NVStorageSaveData ofd_packets/00049827 [15:57:27]File name is /storage/ofd_packets/00049827 [15:57:27]Write 332 bytes [15:57:27]NVStorageSaveData done [15:57:27]OFDSenderStorePacket done [15:57:27]KKMCreateOFDPacket done [15:57:27]NVStorageSaveData kkm_last_timestamp [15:57:27]File name is /storage/kkm_last_timestamp [15:57:27]Write 4 bytes [15:57:27]NVStorageSaveData done [15:57:27]ExternCall_PrintAddStr [15:57:27]wPrintStart [15:57:27]Write to MH i2c: 01 00 00 1A 01 1B [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [15:57:27]RasterBufferAndPrint [15:57:27]line Счет N : (3)190005 [15:57:27]line ИНН: 02508201610067 [15:57:27]line Контрольно-Кассовый Чек [15:57:27]line ПРОДАЖА [15:57:27]line Товар: 2000036220012 [15:57:27]line Кофе Капучино XL(GABB TRADE) [15:57:27]line 1.000 * 130.00 [15:57:27]line = 130.00 [15:57:27]line НДС 12% НСП 1% [15:57:27]line > о реализуемом товаре [15:57:27]line ИТОГО: 130.00 [15:57:27]line НСП 1% : 1.15 [15:57:27]line НДС 12% : 13.80 [15:57:27]line Наличными: 0.00 [15:57:27]line Безнал.: 130.00 [15:57:27]line Место: АЗС № 95 "Партнер Нефть" [15:57:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:57:27]line СНО: Общий режим [15:57:27]line Чек 93 18.08.2024 15:57 [15:57:27]line Смена: 466 ФФД: 1.0 [15:57:27]line ЗНМ: 0300000078 [15:57:27]line РНМ: 0000000000092546 [15:57:27]line Версия ККМ: 001 [15:57:27]line Платежная система: O! деньги [15:57:27]line ФМ: 0000000000871800 [15:57:27]line ФД: 49827 [15:57:27]line ФПД: 210649979326300 [15:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155726&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49827&fm=210649979326300&tin=02508201610067®Number=0000000000092546&sum=13000 [15:57:27]line 0 [15:57:27]OFD Sender: Processing packet 49827 [packets to send 21, broken 20] [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00049827 [15:57:27]OFD Sender: To server: pG, [15:57:27]CommunicateWithHost lk.salyk.kg:30040 [15:57:27]ConnectInit lk.salyk.kg [15:57:27]written 0, free lines is 4095 [15:57:27]Connected sock=7 [15:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 A2 23 26 01 9E 26 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E6 19 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C2 00 00 35 04 06 00 BF 95 C5 30 8F 5C E3 92 38 91 BD 2A 0C 40 [15:57:28]Write to MH i2c: 01 00 00 45 01 46 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 CC 0C 25 [15:57:28]RasterBufferAndPrint [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 26 94 47 00 39 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C2 00 00 F4 03 04 00 5B C4 C1 66 B6 04 01 00 00 DF 18 E4 29 01 20 C9 EB [15:57:28]CommunicateWithHost err = 0 [15:57:28]CheckOFDResponse [15:57:28]1017 (14) - 77093643461234 [15:57:28]1041 (16) - 0000000000871800 [15:57:28]1040 (4) - 49827 [15:57:28]1012 (4) - 18.08.2024 09:52 [15:57:28]1206 (1) - 0 [15:57:28]OFD Sender: Remove packet 49827 [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00049827 [15:57:28]NVStorageDeleteData [15:57:28]written 0, free lines is 3285 [15:57:28]MH_Cut [15:57:28]Write to MH i2c: D1 01 00 4C 01 01 1F [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 4C 01 00 1E [15:57:28]Write to MH i2c: 01 00 00 4D 01 4E [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]OFD Sender: No OFD packet to send [15:57:28]*** Cut start [15:57:28]*** Purtial cut [15:57:28]*** Stage 1: CUTSNS_PIN = 1 [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]*** Stop cut motor [15:57:29]*** Cut end [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [15:57:29]process_action close_receipt done [15:57:29]requested_data is exist [15:57:29]produce_requested_data [15:57:29]requested_item fm.sn is exist - process it [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 11 00 00 [15:57:29]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 14 [15:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:29]wFMCommunicate OK [15:57:29]requested_item fd.num is exist - process it [15:57:29]SAM_PROTO_GetFieldsCounters [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 00 00 [15:57:29]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 4F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [15:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetFieldsCounters done [15:57:29]requested_item shift.num is exist - process it [15:57:29]requested_item shift.opened is exist - process it [15:57:29]req_shift_opened [15:57:29]FM_GetShiftState [15:57:29]SAM_PROTO_GetShiftState [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 01 00 [15:57:29]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EB [15:57:29]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetShiftState done [15:57:29]FM_GetShiftState done [15:57:29]req_shift_opened done [15:57:29]requested_item shift.open_date is exist - process it [15:57:29]req_shift_open_date [15:57:29]req_shift_open_date done [15:57:29]produce_requested_data done [15:57:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49827,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:57:29]process_action_free close_receipt [15:57:29]json_value_free [15:57:29]json_value_free done [15:57:29]process_json_proto returns [15:57:29]Send response to host [15:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49827,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:57:29]free response buf [15:57:29]execute_script done [15:57:29]execute_script returns [15:57:29]free content buf [15:57:29]Sock 9.Close socket [15:57:29]Sock 9.Thread stoped [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:54]accept exits with 10 [15:57:54]New connection [15:57:54]New thread 3067198820 created [15:57:54]Thread 3067055460 joined [15:57:54]Waiting for new connection... [15:57:54] Sock 10.Parse request [15:57:54]Sock 10.Check first char [15:57:54]Sock 10.First char is OK [15:57:54]request: POST /json_proto HTTP/1.0 [15:57:54]Method: POST [15:57:54]URL: /json_proto [15:57:54]Method is POST - this is cgi request [15:57:54]url: /json_proto [15:57:54]query_string will be loaded in cgi processing [15:57:54]execute_cgi json_proto POST (null) [15:57:54]execute_cgi path=json_proto method=POST [15:57:54]POST find Content-Length [15:57:54]Host: 172.17.46.196:8080 [15:57:54]Content-Length: 621 [15:57:54]Content-Type: application/json [15:57:54] [15:57:54]POST finish read [15:57:54]Found Content-Length = 621 [15:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190006", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:54]execute_script... [15:57:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190006", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:54]POST & json_proto [15:57:54]process_json_proto [15:57:54]json parsed OK: [15:57:54]protocol is kg_v1.0 [15:57:54]action value=close_receipt [15:57:54]process_action close_receipt [15:57:54]cmd_close_receipt [15:57:54]MH_GetDate [15:57:54]Write to MH i2c: F0 00 00 51 01 41 [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 09 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 09 00 51 01 00 03 1A C2 66 27 15 C2 66 F3 [15:57:54]GetLastDocTimeStamp 1723996646 [15:57:54]current date 1723996675 [15:57:54]FM_GetShiftState [15:57:54]SAM_PROTO_GetShiftState [15:57:54]wFMCommunicate request_size=4 [15:57:54]MH_SAM_APDU [15:57:54]CAPDU: 80 13 01 00 [15:57:54]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:54]Read from MH i2c: E2 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 ED [15:57:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:57:54]wFMCommunicate OK [15:57:54]SAM_PROTO_GetShiftState done [15:57:54]FM_GetShiftState done [15:57:54]opened in 1723939759 [15:57:54]opened+sec_in_day 1724026159 [15:57:54]quantity*price = 28000 [15:57:54]sum+1 = 28001 [15:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 94 18.08.2024 15:57 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49828 ФПД: 223303322510931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155755&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49828&fm=223303322510931&tin=02508201610067®Number=0000000000092546&sum=28000 0 [15:57:55]StoreToDocumentArchive [15:57:55]shift 466 fd 49828 [15:57:55]save to /storage/0466/doc_00049828 [15:57:55]save last doc name /storage/0466/doc_00049828 to /storage/kkm_last_doc_name [15:57:55]save OK [15:57:55]Clear old archive folders... [15:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:57:55]tlvbuf is 00FE1FA0 [15:57:55]SAM_PROTO_ClearQueue [15:57:55]wFMCommunicate request_size=4 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 09 00 00 [15:57:55]Write to MH i2c: E2 08 00 5F 01 80 09 00 00 00 00 00 00 D2 [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [15:57:55]RAPDU: 90 00 [15:57:55]wFMCommunicate OK [15:57:55]SAM_PROTO_ClearQueue done [15:57:55]KKMCreateOFDPacket [15:57:55]OFDProtocolAddRootSTLVToBuf [15:57:55]FM_MakeSignedData [15:57:55]FM_MakeSignedData [15:57:55]SAM_PROTO_SignData [15:57:55]wFMCommunicate request_size=4 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 0D 01 02 [15:57:55]Write to MH i2c: E2 08 00 60 01 80 0D 01 02 00 00 00 00 DA [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [15:57:55]RAPDU: 90 00 [15:57:55]wFMCommunicate OK [15:57:55]wFMCommunicate request_size=255 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 03 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [15:57:55]Write to MH i2c: E2 02 01 61 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 03 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 37 [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [15:57:56]RAPDU: 90 00 [15:57:56]wFMCommunicate OK [15:57:56]wFMCommunicate request_size=32 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C2 00 00 35 04 06 00 CB 17 DB 37 26 53 [15:57:56]Write to MH i2c: E2 23 00 62 01 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C2 00 00 35 04 06 00 CB 17 DB 37 26 53 00 00 05 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [15:57:56]RAPDU: 90 00 [15:57:56]wFMCommunicate OK [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 0D 03 02 [15:57:56]Write to MH i2c: E2 08 00 63 01 80 0D 03 02 00 00 00 00 DF [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0B 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0B 00 63 01 00 58 3C 08 59 5D A1 64 F7 90 00 2E [15:57:56]RAPDU: 58 3C 08 59 5D A1 64 F7 90 00 [15:57:56]wFMCommunicate OK [15:57:56]SAM_PROTO_SignData done [15:57:56]FM_MakeSignedData done [15:57:56]CreateOFDProtocolMessage [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 11 00 00 [15:57:56]Write to MH i2c: E2 08 00 64 01 80 11 00 00 00 00 00 00 DF [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 64 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [15:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:56]wFMCommunicate OK [15:57:56]CreateOFDProtocolMessage done [15:57:56]OFDSenderStorePacket 49828 [15:57:56]StoreOFDPacket docnum=49828 [15:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 35 34 1D 01 D4 AA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 03 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C2 00 00 35 04 06 00 CB 17 DB 37 26 53 58 3C 08 59 5D A1 64 F7 [15:57:56]CheckFolder [15:57:56]dirname=/storage/ofd_packets [15:57:56]CheckFolder done [15:57:56]ProducePacketName [15:57:56]name=ofd_packets/00049828 [15:57:56]NVStorageSaveData ofd_packets/00049828 [15:57:56]File name is /storage/ofd_packets/00049828 [15:57:56]Write 323 bytes [15:57:56]NVStorageSaveData done [15:57:56]OFDSenderStorePacket done [15:57:56]KKMCreateOFDPacket done [15:57:56]NVStorageSaveData kkm_last_timestamp [15:57:56]File name is /storage/kkm_last_timestamp [15:57:56]Write 4 bytes [15:57:56]NVStorageSaveData done [15:57:56]ExternCall_PrintAddStr [15:57:56]wPrintStart [15:57:56]Write to MH i2c: 01 00 00 65 01 66 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 FF 0F 7B [15:57:56]RasterBufferAndPrint [15:57:56]line Счет N : (3)190006 [15:57:56]line ИНН: 02508201610067 [15:57:56]line Контрольно-Кассовый Чек [15:57:56]line ПРОДАЖА [15:57:56]line Товар: 48743570 [15:57:56]line Сигареты Winston XStyle Blue [15:57:56]line 2.000 * 140.00 [15:57:56]line = 280.00 [15:57:56]line НДС 12% НСП 1% [15:57:56]line > о реализуемом товаре [15:57:56]line ИТОГО: 280.00 [15:57:56]line НСП 1% : 2.48 [15:57:56]line НДС 12% : 29.73 [15:57:56]line Наличными: 280.00 [15:57:56]line Безнал.: 0.00 [15:57:56]line Место: АЗС № 95 "Партнер Нефть" [15:57:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:57:56]line СНО: Общий режим [15:57:56]line Чек 94 18.08.2024 15:57 [15:57:56]line Смена: 466 ФФД: 1.0 [15:57:56]line ЗНМ: 0300000078 [15:57:56]line РНМ: 0000000000092546 [15:57:56]line Версия ККМ: 001 [15:57:56]line ФМ: 0000000000871800 [15:57:56]line ФД: 49828 [15:57:56]line ФПД: 223303322510931 [15:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155755&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49828&fm=223303322510931&tin=02508201610067®Number=0000000000092546&sum=28000 [15:57:56]OFD Sender: Processing packet 49828 [packets to send 21, broken 20] [15:57:56]ProducePacketName [15:57:56]name=ofd_packets/00049828 [15:57:56]OFD Sender: To server: pG, [15:57:56]CommunicateWithHost lk.salyk.kg:30040 [15:57:56]ConnectInit lk.salyk.kg [15:57:56]line 0 [15:57:56]written 0, free lines is 4095 [15:57:56]Connected sock=9 [15:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 35 34 1D 01 D4 AA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 03 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C2 00 00 35 04 06 00 CB 17 DB 37 26 53 58 3C 08 59 5D A1 64 F7 [15:57:57]Write to MH i2c: 01 00 00 8D 01 8E [15:57:57]Write i2c OK [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: 01 [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: 01 07 00 [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 E5 0C 86 [15:57:57]RasterBufferAndPrint [15:57:57]line [15:57:57]line [15:57:57]line [15:57:57]line [15:57:57]line [15: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 38 30 30 4F 00 00 00 13 C8 47 00 24 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C2 00 00 F4 03 04 00 78 C4 C1 66 B6 04 01 00 00 9B 5F DC E7 7A B9 D2 FE [15:57:57]CommunicateWithHost err = 0 [15:57:57]CheckOFDResponse [15:57:57]1017 (14) - 77093643461234 [15:57:57]1041 (16) - 0000000000871800 [15:57:57]1040 (4) - 49828 [15:57:57]1012 (4) - 18.08.2024 09:52 [15:57:57]1206 (1) - 0 [15:57:57]OFD Sender: Remove packet 49828 [15:57:57]ProducePacketName [15:57:57]name=ofd_packets/00049828 [15:57:57]NVStorageDeleteData [15:57:57]written 0, free lines is 3315 [15:57:57]MH_Cut [15:57:57]Write to MH i2c: D1 01 00 94 01 01 67 [15:57:57]Write i2c OK [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: D1 [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: D1 01 00 [15:57:57]MH_I2C_Read... [15:57:57]Read from MH i2c: D1 01 00 94 01 00 66 [15:57:57]Write to MH i2c: 01 00 00 95 01 96 [15:57:57]Write i2c OK [15:57:57]MH_I2C_Read... [15:57:57]OFD Sender: No OFD packet to send [15:57:57]*** Cut start [15:57:57]*** Purtial cut [15:57:57]*** CUTSNS_PIN = 0 [15:57:58]*** Stage 1: CUTSNS_PIN = 1 [15:57:59]Read from MH i2c: 01 [15:57:59]MH_I2C_Read... [15:57:59]*** Stop cut motor [15:57:59]*** Cut end [15:57:59]Read from MH i2c: 01 07 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [15:57:59]process_action close_receipt done [15:57:59]requested_data is exist [15:57:59]produce_requested_data [15:57:59]requested_item fm.sn is exist - process it [15:57:59]wFMCommunicate request_size=4 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 11 00 00 [15:57:59]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:59]Read from MH i2c: E2 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 17 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5C [15:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:57:59]wFMCommunicate OK [15:57:59]requested_item fd.num is exist - process it [15:57:59]SAM_PROTO_GetFieldsCounters [15:57:59]wFMCommunicate request_size=4 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 13 00 00 [15:57:59]Write to MH i2c: E2 08 00 97 01 80 13 00 00 00 00 00 00 14 [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 62 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 62 00 97 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_GetFieldsCounters done [15:58:00]requested_item shift.num is exist - process it [15:58:00]requested_item shift.opened is exist - process it [15:58:00]req_shift_opened [15:58:00]FM_GetShiftState [15:58:00]SAM_PROTO_GetShiftState [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 13 01 00 [15:58:00]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 33 [15:58:00]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_GetShiftState done [15:58:00]FM_GetShiftState done [15:58:00]req_shift_opened done [15:58:00]requested_item shift.open_date is exist - process it [15:58:00]req_shift_open_date [15:58:00]req_shift_open_date done [15:58:00]produce_requested_data done [15:58:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49828,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [15:58:00]process_action_free close_receipt [15:58:00]json_value_free [15:58:00]json_value_free done [15:58:00]process_json_proto returns [15:58:00]Send response to host [15:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49828,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [15:58:00]free response buf [15:58:00]execute_script done [15:58:00]execute_script returns [15:58:00]free content buf [15:58:00]Sock 10.Close socket [15:58:00]Sock 10.Thread stoped [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:55]accept exits with 7 [16:00:55]New connection [16:00:55]New thread 3067055460 created [16:00:55]Thread 3067198820 joined [16:00:55]Waiting for new connection... [16:00:55] Sock 7.Parse request [16:00:55]Sock 7.Check first char [16:00:55]Sock 7.First char is OK [16:00:55]request: POST /json_proto HTTP/1.0 [16:00:55]Method: POST [16:00:55]URL: /json_proto [16:00:55]Method is POST - this is cgi request [16:00:55]url: /json_proto [16:00:55]query_string will be loaded in cgi processing [16:00:55]execute_cgi json_proto POST (null) [16:00:55]execute_cgi path=json_proto method=POST [16:00:55]POST find Content-Length [16:00:55]Host: 172.17.46.196:8080 [16:00:55]Content-Length: 1125 [16:00:55]Content-Type: application/json [16:00:55] [16:00:55]POST finish read [16:00:55]Found Content-Length = 1125 [16:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190007", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:55]execute_script... [16:00: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 : (3)190007", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:55]POST & json_proto [16:00:55]process_json_proto [16:00:55]json parsed OK: [16:00:55]protocol is kg_v1.0 [16:00:55]action value=close_receipt [16:00:55]process_action close_receipt [16:00:55]cmd_close_receipt [16:00:55]MH_GetDate [16:00:55]Write to MH i2c: F0 00 00 99 01 89 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: F0 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: F0 09 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: F0 09 00 99 01 00 B8 1A C2 66 27 15 C2 66 F0 [16:00:55]GetLastDocTimeStamp 1723996675 [16:00:55]current date 1723996856 [16:00:55]FM_GetShiftState [16:00:55]SAM_PROTO_GetShiftState [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 13 01 00 [16:00:55]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0E 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 35 [16:00:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:00:55]wFMCommunicate OK [16:00:55]SAM_PROTO_GetShiftState done [16:00:55]FM_GetShiftState done [16:00:55]opened in 1723939759 [16:00:55]opened+sec_in_day 1724026159 [16:00:55]quantity*price = 13000 [16:00:55]sum+1 = 13001 [16:00:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47802995 Сигареты Winston XS Silver 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 540.00 НСП 1% : 4.78 НДС 12% : 57.33 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 95 18.08.2024 16:00 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49829 ФПД: 80468136580981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49829&fm=80468136580981&tin=02508201610067®Number=0000000000092546&sum=54000 0 [16:00:56]StoreToDocumentArchive [16:00:56]shift 466 fd 49829 [16:00:56]save to /storage/0466/doc_00049829 [16:00:56]save last doc name /storage/0466/doc_00049829 to /storage/kkm_last_doc_name [16:00:56]save OK [16:00:56]Clear old archive folders... [16:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=489 [16:00:56]tlvbuf is 00FE9170 [16:00:56]SAM_PROTO_ClearQueue [16:00:56]wFMCommunicate request_size=4 [16:00:56]MH_SAM_APDU [16:00:56]CAPDU: 80 09 00 00 [16:00:56]Write to MH i2c: E2 08 00 A7 01 80 09 00 00 00 00 00 00 1A [16:00:56]Write i2c OK [16:00:56]MH_I2C_Read... [16:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:56]Read from MH i2c: E2 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [16:00:56]RAPDU: 90 00 [16:00:56]wFMCommunicate OK [16:00:56]SAM_PROTO_ClearQueue done [16:00:56]KKMCreateOFDPacket [16:00:56]OFDProtocolAddRootSTLVToBuf [16:00:56]FM_MakeSignedData [16:00:56]FM_MakeSignedData [16:00:56]SAM_PROTO_SignData [16:00:56]wFMCommunicate request_size=4 [16:00:56]MH_SAM_APDU [16:00:56]CAPDU: 80 0D 01 02 [16:00:56]Write to MH i2c: E2 08 00 A8 01 80 0D 01 02 00 00 00 00 22 [16:00:56]Write i2c OK [16:00:56]MH_I2C_Read... [16:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:56]Read from MH i2c: E2 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [16:00:56]RAPDU: 90 00 [16:00:56]wFMCommunicate OK [16:00:56]wFMCommunicate request_size=255 [16:00:56]MH_SAM_APDU [16:00:56]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 [16:00:56]Write to MH i2c: E2 02 01 A9 01 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 00 00 39 [16:00:56]Write i2c OK [16:00:56]MH_I2C_Read... [16:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:56]Read from MH i2c: E2 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 [16:00:56]MH_I2C_Read... [16:00:56]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [16:00:56]RAPDU: 90 00 [16:00:56]wFMCommunicate OK [16:00:56]wFMCommunicate request_size=248 [16:00:56]MH_SAM_APDU [16:00:56]CAPDU: 80 0D 02 02 F3 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B8 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C2 00 00 35 04 06 00 49 2F 72 B2 57 75 [16:00:56]Write to MH i2c: E2 FB 00 AA 01 80 0D 02 02 F3 00 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B8 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C2 00 00 35 04 06 00 49 2F 72 B2 57 75 00 00 7A [16:00:56]Write i2c OK [16:00:56]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 03 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [16:00:57]RAPDU: 90 00 [16:00:57]wFMCommunicate OK [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 0D 03 02 [16:00:57]Write to MH i2c: E2 08 00 AB 01 80 0D 03 02 00 00 00 00 27 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0B 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0B 00 AB 01 00 2F 6B F8 C8 10 8A CF 3A 90 00 25 [16:00:57]RAPDU: 2F 6B F8 C8 10 8A CF 3A 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_SignData done [16:00:57]FM_MakeSignedData done [16:00:57]CreateOFDProtocolMessage [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 11 00 00 [16:00:57]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [16:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:00:57]wFMCommunicate OK [16:00:57]CreateOFDProtocolMessage done [16:00:57]OFDSenderStorePacket 49829 [16:00:57]StoreOFDPacket docnum=49829 [16:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FD 01 00 00 E4 26 F5 01 52 3B 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B8 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C2 00 00 35 04 06 00 49 2F 72 B2 57 75 2F 6B F8 C8 10 8A CF 3A [16:00:57]CheckFolder [16:00:57]dirname=/storage/ofd_packets [16:00:57]CheckFolder done [16:00:57]ProducePacketName [16:00:57]name=ofd_packets/00049829 [16:00:57]NVStorageSaveData ofd_packets/00049829 [16:00:57]File name is /storage/ofd_packets/00049829 [16:00:57]Write 539 bytes [16:00:57]NVStorageSaveData done [16:00:57]OFDSenderStorePacket done [16:00:57]KKMCreateOFDPacket done [16:00:57]NVStorageSaveData kkm_last_timestamp [16:00:57]File name is /storage/kkm_last_timestamp [16:00:57]Write 4 bytes [16:00:57]NVStorageSaveData done [16:00:57]ExternCall_PrintAddStr [16:00:57]wPrintStart [16:00:57]Write to MH i2c: 01 00 00 AD 01 AE [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [16:00:57]RasterBufferAndPrint [16:00:57]line Счет N : (3)190007 [16:00:57]line ИНН: 02508201610067 [16:00:57]line Контрольно-Кассовый Чек [16:00:57]line ПРОДАЖА [16:00:57]line Товар: 2000036220012 [16:00:57]line Кофе Капучино XL(GABB TRADE) [16:00:57]line 1.000 * 130.00 [16:00:57]line = 130.00 [16:00:57]line НДС 12% НСП 1% [16:00:57]line > о реализуемом товаре [16:00:57]line Товар: 2000036230011 [16:00:57]line Кофе Латте XL(GABB TRADE) [16:00:57]line 1.000 * 130.00 [16:00:57]line = 130.00 [16:00:57]line НДС 12% НСП 1% [16:00:57]line > о реализуемом товаре [16:00:57]line Товар: 47802995 [16:00:57]line Сигареты Winston XS Silver [16:00:57]line 2.000 * 140.00 [16:00:57]line = 280.00 [16:00:57]line НДС 12% НСП 1% [16:00:57]line > о реализуемом товаре [16:00:57]line ИТОГО: 540.00 [16:00:57]line НСП 1% : 4.78 [16:00:57]line НДС 12% : 57.33 [16:00:57]line Наличными: 540.00 [16:00:57]line Безнал.: 0.00 [16:00:57]line Место: АЗС № 95 "Партнер Нефть" [16:00:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:00:57]line СНО: Общий режим [16:00:57]line Чек 95 18.08.2024 16:00 [16:00:57]line Смена: 466 ФФД: 1.0 [16:00:57]line ЗНМ: 0300000078 [16:00:57]line РНМ: 0000000000092546 [16:00:57]line Версия ККМ: 001 [16:00:57]line ФМ: 0000000000871800 [16:00:57]line ФД: 49829 [16:00:57]line ФПД: 80468136580981 [16:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49829&fm=80468136580981&tin=02508201610067®Number=0000000000092546&sum=54000 [16:00:57]line 0 [16:00:57]written 0, free lines is 4095 [16:00:57]OFD Sender: Processing packet 49829 [packets to send 21, broken 20] [16:00:57]ProducePacketName [16:00:57]name=ofd_packets/00049829 [16:00:57]OFD Sender: To server: pG, [16:00:57]CommunicateWithHost lk.salyk.kg:30040 [16:00:57]ConnectInit lk.salyk.kg [16:00:57]Connected sock=10 [16:00:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FD 01 00 00 E4 26 F5 01 52 3B 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B8 1A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C2 00 00 35 04 06 00 49 2F 72 B2 57 75 2F 6B F8 C8 10 8A CF 3A [16:00:57]Write to MH i2c: 01 00 00 E2 01 E3 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 39 0C 2F [16:00:57]RasterBufferAndPrint [16:00:57]line [16:00:57]line [16:00:57]line [16:00:57]line [16:00:57]line [16:00:57]written 0, free lines is 3136 [16:00:57]MH_Cut [16:00:57]Write to MH i2c: D1 01 00 E9 01 01 BC [16:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 25 DF 47 00 C8 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C2 00 00 F4 03 04 00 2D C5 C1 66 B6 04 01 00 00 98 D2 9C 09 4A AB B8 92 [16:00:57]CommunicateWithHost err = 0 [16:00:57]CheckOFDResponse [16:00:57]1017 (14) - 77093643461234 [16:00:57]1041 (16) - 0000000000871800 [16:00:57]1040 (4) - 49829 [16:00:57]1012 (4) - 18.08.2024 09:55 [16:00:57]1206 (1) - 0 [16:00:57]OFD Sender: Remove packet 49829 [16:00:57]ProducePacketName [16:00:57]name=ofd_packets/00049829 [16:00:57]NVStorageDeleteData [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: D1 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: D1 01 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: D1 01 00 E9 01 00 BB [16:00:57]Write to MH i2c: 01 00 00 EA 01 EB [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:58]OFD Sender: No OFD packet to send [16:00:58]*** Cut start [16:00:58]*** Purtial cut [16:00:58]*** Stage 1: CUTSNS_PIN = 1 [16:00:59]Read from MH i2c: 01 [16:00:59]MH_I2C_Read... [16:00:59]*** Stop cut motor [16:00:59]*** Cut end [16:00:59]Read from MH i2c: 01 07 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [16:00:59]process_action close_receipt done [16:00:59]requested_data is exist [16:00:59]produce_requested_data [16:00:59]requested_item fm.sn is exist - process it [16:00:59]wFMCommunicate request_size=4 [16:00:59]MH_SAM_APDU [16:00:59]CAPDU: 80 11 00 00 [16:00:59]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:59]Read from MH i2c: E2 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 17 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B1 [16:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:00:59]wFMCommunicate OK [16:00:59]requested_item fd.num is exist - process it [16:00:59]SAM_PROTO_GetFieldsCounters [16:00:59]wFMCommunicate request_size=4 [16:00:59]MH_SAM_APDU [16:00:59]CAPDU: 80 13 00 00 [16:00:59]Write to MH i2c: E2 08 00 EC 01 80 13 00 00 00 00 00 00 69 [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:59]Read from MH i2c: E2 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 62 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 62 00 EC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [16:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:59]wFMCommunicate OK [16:00:59]SAM_PROTO_GetFieldsCounters done [16:00:59]requested_item shift.num is exist - process it [16:00:59]requested_item shift.opened is exist - process it [16:00:59]req_shift_opened [16:00:59]FM_GetShiftState [16:00:59]SAM_PROTO_GetShiftState [16:00:59]wFMCommunicate request_size=4 [16:00:59]MH_SAM_APDU [16:00:59]CAPDU: 80 13 01 00 [16:00:59]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [16:00:59]Write i2c OK [16:00:59]MH_I2C_Read... [16:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:59]Read from MH i2c: E2 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 0E 00 [16:00:59]MH_I2C_Read... [16:00:59]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 88 [16:00:59]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:00:59]wFMCommunicate OK [16:00:59]SAM_PROTO_GetShiftState done [16:00:59]FM_GetShiftState done [16:00:59]req_shift_opened done [16:00:59]requested_item shift.open_date is exist - process it [16:00:59]req_shift_open_date [16:00:59]req_shift_open_date done [16:00:59]produce_requested_data done [16:00:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49829,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:00:59]process_action_free close_receipt [16:00:59]json_value_free [16:00:59]json_value_free done [16:00:59]process_json_proto returns [16:00:59]Send response to host [16:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49829,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:00:59]free response buf [16:00:59]execute_script done [16:00:59]execute_script returns [16:00:59]free content buf [16:00:59]Sock 7.Close socket [16:00:59]Sock 7.Thread stoped [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:54]int [16:04:54]Write to MH i2c: 01 00 00 EE 01 EF [16:04:54]*** FLAG_PRN_KEY set [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 EE 01 00 08 00 00 00 FF 0F 0C [16:04:54]state=0 [16:04:54]Key pressed [16:04:54]Feed [16:04:54]Write to MH i2c: D8 00 00 EF 01 C7 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D8 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D8 01 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D8 01 00 EF 01 00 C8 [16:04:54]int [16:04:54]Write to MH i2c: 01 00 00 F0 01 F1 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 F0 01 00 48 00 00 00 3C 00 7C [16:04:54]state=2 [16:04:54]Key pressed [16:04:54]int [16:04:54]Write to MH i2c: 01 00 00 F1 01 F2 [16:04:54]*** FLAG_PRN_KEY reset [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 F6 0F FE [16:04:54]state=2 [16:04:54]Stop feed [16:04:58]OFD Sender: No OFD packet to send [16:04:58]int [16:04:58]Write to MH i2c: 01 00 00 F2 01 F3 [16:04:58]*** FLAG_PRN_PAP1 set [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 F2 01 00 01 00 00 00 FF 0F 09 [16:04:58]state=0 [16:04:58]No paper [16:04:58]int [16:04:58]Write to MH i2c: 01 00 00 F3 01 F4 [16:04:58]*** FLAG_PRN_PAP2 set [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 F3 01 00 03 00 00 00 FF 0F 0C [16:04:58]state=0 [16:04:58]No paper [16:04:58]Cover opened [16:05:03]OFD Sender: No OFD packet to send [16:05:03]Write to MH i2c: 01 00 00 F4 01 F5 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 F4 01 00 03 00 00 00 FF 0F 0D [16:05:03]state=3 [16:05:03]No paper [16:05:03]Cover opened [16:05:07]int [16:05:07]Write to MH i2c: 01 00 00 F5 01 F6 [16:05:07]Write i2c OK [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: 01 [16:05:07]MH_I2C_Read... [16:05:07]Read from MH i2c: 01 07 00 [16:05:07]MH_I2C_Read... [16:05:07]*** FLAG_PRN_PAP2 reset [16:05:07]*** FLAG_PRN_PAP1 reset [16:05:07]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [16:05:07]state=3 [16:05:07]Cover closed [16:05:08]int [16:05:08]Write to MH i2c: 01 00 00 F6 01 F7 [16:05:08]*** FLAG_PRN_PAP1 set [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 F6 01 00 01 00 00 00 FF 0F 0D [16:05:08]state=0 [16:05:08]No paper [16:05:08]int [16:05:08]Write to MH i2c: 01 00 00 F7 01 F8 [16:05:08]*** FLAG_PRN_PAP2 set [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 F7 01 00 03 00 00 00 FF 0F 10 [16:05:08]state=0 [16:05:08]No paper [16:05:08]Cover opened [16:05:08]OFD Sender: No OFD packet to send [16:05:08]int [16:05:08]Write to MH i2c: 01 00 00 F8 01 F9 [16:05:08]*** FLAG_PRN_PAP1 reset [16:05:08]*** FLAG_PRN_PAP2 reset [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [16:05:08]state=3 [16:05:08]Cover closed [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:50]accept exits with 9 [16:08:50]New connection [16:08:50]New thread 3067198820 created [16:08:50]Thread 3067055460 joined [16:08:50]Waiting for new connection... [16:08:50] Sock 9.Parse request [16:08:50]Sock 9.Check first char [16:08:50]Sock 9.First char is OK [16:08:50]request: POST /json_proto HTTP/1.0 [16:08:50]Method: POST [16:08:50]URL: /json_proto [16:08:50]Method is POST - this is cgi request [16:08:50]url: /json_proto [16:08:50]query_string will be loaded in cgi processing [16:08:50]execute_cgi json_proto POST (null) [16:08:50]execute_cgi path=json_proto method=POST [16:08:50]POST find Content-Length [16:08:50]Host: 172.17.46.196:8080 [16:08:50]Content-Length: 734 [16:08:50]Content-Type: application/json [16:08:50] [16:08:50]POST finish read [16:08:50]Found Content-Length = 734 [16:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190008", "tax_sys" : 0, "items" : [ { "code": "0010420131003113", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:50]execute_script... [16:08:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190008", "tax_sys" : 0, "items" : [ { "code": "0010420131003113", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:50]POST & json_proto [16:08:50]process_json_proto [16:08:50]json parsed OK: [16:08:50]protocol is kg_v1.0 [16:08:50]action value=close_receipt [16:08:50]process_action close_receipt [16:08:50]cmd_close_receipt [16:08:50]MH_GetDate [16:08:50]Write to MH i2c: F0 00 00 F9 01 E9 [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 09 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 09 00 F9 01 00 93 1C C2 66 27 15 C2 66 2D [16:08:50]GetLastDocTimeStamp 1723996856 [16:08:50]current date 1723997331 [16:08:50]FM_GetShiftState [16:08:50]SAM_PROTO_GetShiftState [16:08:50]wFMCommunicate request_size=4 [16:08:50]MH_SAM_APDU [16:08:50]CAPDU: 80 13 01 00 [16:08:50]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:50]Read from MH i2c: E2 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 0E 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 95 [16:08:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:08:50]wFMCommunicate OK [16:08:50]SAM_PROTO_GetShiftState done [16:08:50]FM_GetShiftState done [16:08:50]opened in 1723939759 [16:08:50]opened+sec_in_day 1724026159 [16:08:50]quantity*price = 39500 [16:08:50]sum+1 = 39501 [16:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 96 18.08.2024 16:08 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49830 ФПД: 136778274402423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49830&fm=136778274402423&tin=02508201610067®Number=0000000000092546&sum=39500 0 [16:08:51]StoreToDocumentArchive [16:08:51]shift 466 fd 49830 [16:08:51]save to /storage/0466/doc_00049830 [16:08:51]save last doc name /storage/0466/doc_00049830 to /storage/kkm_last_doc_name [16:08:51]save OK [16:08:51]Clear old archive folders... [16:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=306 [16:08:51]tlvbuf is 00FD9F40 [16:08:51]SAM_PROTO_ClearQueue [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 09 00 00 [16:08:51]Write to MH i2c: E2 08 00 07 02 80 09 00 00 00 00 00 00 7B [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]SAM_PROTO_ClearQueue done [16:08:51]KKMCreateOFDPacket [16:08:51]OFDProtocolAddRootSTLVToBuf [16:08:51]FM_MakeSignedData [16:08:51]FM_MakeSignedData [16:08:51]SAM_PROTO_SignData [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 01 02 [16:08:51]Write to MH i2c: E2 08 00 08 02 80 0D 01 02 00 00 00 00 83 [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]wFMCommunicate request_size=255 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 31 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 93 1C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 [16:08:51]Write to MH i2c: E2 02 01 09 02 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 31 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 93 1C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 00 9F [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [16:08:52]RAPDU: 90 00 [16:08:52]wFMCommunicate OK [16:08:52]wFMCommunicate request_size=65 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C2 00 00 35 04 06 00 7C 66 2C 75 70 77 [16:08:52]Write to MH i2c: E2 44 00 0A 02 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C2 00 00 35 04 06 00 7C 66 2C 75 70 77 00 00 A0 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [16:08:52]RAPDU: 90 00 [16:08:52]wFMCommunicate OK [16:08:52]wFMCommunicate request_size=4 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 0D 03 02 [16:08:52]Write to MH i2c: E2 08 00 0B 02 80 0D 03 02 00 00 00 00 88 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 0B 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 0B 00 0B 02 00 B4 9F 4B A9 1E 6B 83 33 90 00 0F [16:08:52]RAPDU: B4 9F 4B A9 1E 6B 83 33 90 00 [16:08:52]wFMCommunicate OK [16:08:52]SAM_PROTO_SignData done [16:08:52]FM_MakeSignedData done [16:08:52]CreateOFDProtocolMessage [16:08:52]wFMCommunicate request_size=4 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 11 00 00 [16:08:52]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 17 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [16:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:08:52]wFMCommunicate OK [16:08:52]CreateOFDProtocolMessage done [16:08:52]OFDSenderStorePacket 49830 [16:08:52]StoreOFDPacket docnum=49830 [16:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 46 01 00 00 93 6D 3E 01 C4 09 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 31 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 93 1C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C2 00 00 35 04 06 00 7C 66 2C 75 70 77 B4 9F 4B A9 1E 6B 83 33 [16:08:52]CheckFolder [16:08:52]dirname=/storage/ofd_packets [16:08:52]CheckFolder done [16:08:52]ProducePacketName [16:08:52]name=ofd_packets/00049830 [16:08:52]NVStorageSaveData ofd_packets/00049830 [16:08:52]File name is /storage/ofd_packets/00049830 [16:08:52]Write 356 bytes [16:08:52]NVStorageSaveData done [16:08:52]OFDSenderStorePacket done [16:08:52]KKMCreateOFDPacket done [16:08:52]NVStorageSaveData kkm_last_timestamp [16:08:52]File name is /storage/kkm_last_timestamp [16:08:52]Write 4 bytes [16:08:52]NVStorageSaveData done [16:08:52]ExternCall_PrintAddStr [16:08:52]wPrintStart [16:08:52]Write to MH i2c: 01 00 00 0D 02 0F [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [16:08:52]RasterBufferAndPrint [16:08:52]line Счет N : (3)190008 [16:08:52]line ИНН: 02508201610067 [16:08:52]line Контрольно-Кассовый Чек [16:08:52]line ПРОДАЖА [16:08:52]line Товар: 0010420131003113 [16:08:52]line Уголь древесный Партнер Нефть 3кг [16:08:52]line 1.000 * 395.00 [16:08:52]line = 395.00 [16:08:52]line НДС 12% НСП 1% [16:08:52]line > о реализуемом товаре [16:08:52]line ИТОГО: 395.00 [16:08:52]line НСП 1% : 3.50 [16:08:52]line НДС 12% : 41.95 [16:08:52]line Наличными: 395.00 [16:08:52]line Безнал.: 0.00 [16:08:52]line Место: АЗС № 95 "Партнер Нефть" [16:08:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:08:52]line СНО: Общий режим [16:08:52]line Чек 96 18.08.2024 16:08 [16:08:52]line Смена: 466 ФФД: 1.0 [16:08:52]line ЗНМ: 0300000078 [16:08:52]line РНМ: 0000000000092546 [16:08:52]line Версия ККМ: 001 [16:08:52]line ФМ: 0000000000871800 [16:08:52]line ФД: 49830 [16:08:52]line ФПД: 136778274402423 [16:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49830&fm=136778274402423&tin=02508201610067®Number=0000000000092546&sum=39500 [16:08:52]line 0 [16:08:52]OFD Sender: Processing packet 49830 [packets to send 21, broken 20] [16:08:52]ProducePacketName [16:08:52]name=ofd_packets/00049830 [16:08:52]OFD Sender: To server: pG, [16:08:52]CommunicateWithHost lk.salyk.kg:30040 [16:08:52]ConnectInit lk.salyk.kg [16:08:52]written 0, free lines is 4095 [16:08:52]Connected sock=10 [16:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 46 01 00 00 93 6D 3E 01 C4 09 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 31 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 93 1C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C2 00 00 35 04 06 00 7C 66 2C 75 70 77 B4 9F 4B A9 1E 6B 83 33 [16:08:53]Write to MH i2c: 01 00 00 36 02 38 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 07 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 D5 0C 20 [16:08:53]RasterBufferAndPrint [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]written 0, free lines is 3291 [16:08:53]MH_Cut [16:08:53]Write to MH i2c: D1 01 00 3D 02 01 11 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 01 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 01 00 3D 02 00 10 [16:08:53]Write to MH i2c: 01 00 00 3E 02 40 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7A 85 47 00 1F CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C2 00 00 F4 03 04 00 08 C7 C1 66 B6 04 01 00 00 FD C9 E5 17 DF AA 24 21 [16:08:53]CommunicateWithHost err = 0 [16:08:53]CheckOFDResponse [16:08:53]1017 (14) - 77093643461234 [16:08:53]1041 (16) - 0000000000871800 [16:08:53]1040 (4) - 49830 [16:08:53]1012 (4) - 18.08.2024 10:03 [16:08:53]1206 (1) - 0 [16:08:53]OFD Sender: Remove packet 49830 [16:08:53]ProducePacketName [16:08:53]name=ofd_packets/00049830 [16:08:53]NVStorageDeleteData [16:08:53]OFD Sender: No OFD packet to send [16:08:53]*** Cut start [16:08:53]*** Purtial cut [16:08:53]*** CUTSNS_PIN = 0 [16:08:54]*** Stage 1: CUTSNS_PIN = 1 [16:08:55]Read from MH i2c: 01 [16:08:55]MH_I2C_Read... [16:08:55]*** Stop cut motor [16:08:55]*** Cut end [16:08:55]Read from MH i2c: 01 07 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [16:08:55]process_action close_receipt done [16:08:55]requested_data is exist [16:08:55]produce_requested_data [16:08:55]requested_item fm.sn is exist - process it [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 11 00 00 [16:08:55]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 06 [16:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:08:55]wFMCommunicate OK [16:08:55]requested_item fd.num is exist - process it [16:08:55]SAM_PROTO_GetFieldsCounters [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 13 00 00 [16:08:55]Write to MH i2c: E2 08 00 40 02 80 13 00 00 00 00 00 00 BE [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 62 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 62 00 40 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_GetFieldsCounters done [16:08:56]requested_item shift.num is exist - process it [16:08:56]requested_item shift.opened is exist - process it [16:08:56]req_shift_opened [16:08:56]FM_GetShiftState [16:08:56]SAM_PROTO_GetShiftState [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 13 01 00 [16:08:56]Write to MH i2c: E2 08 00 41 02 80 13 01 00 00 00 00 00 C0 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 0E 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 0E 00 41 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DD [16:08:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_GetShiftState done [16:08:56]FM_GetShiftState done [16:08:56]req_shift_opened done [16:08:56]requested_item shift.open_date is exist - process it [16:08:56]req_shift_open_date [16:08:56]req_shift_open_date done [16:08:56]produce_requested_data done [16:08:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49830,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:08:56]process_action_free close_receipt [16:08:56]json_value_free [16:08:56]json_value_free done [16:08:56]process_json_proto returns [16:08:56]Send response to host [16:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49830,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:08:56]free response buf [16:08:56]execute_script done [16:08:56]execute_script returns [16:08:56]free content buf [16:08:56]Sock 9.Close socket [16:08:56]Sock 9.Thread stoped [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:48]accept exits with 7 [16:15:48]New connection [16:15:48]New thread 3067055460 created [16:15:48]Thread 3067198820 joined [16:15:48]Waiting for new connection... [16:15:48] Sock 7.Parse request [16:15:48]Sock 7.Check first char [16:15:48]Sock 7.First char is OK [16:15:48]request: POST /json_proto HTTP/1.0 [16:15:48]Method: POST [16:15:48]URL: /json_proto [16:15:48]Method is POST - this is cgi request [16:15:48]url: /json_proto [16:15:48]query_string will be loaded in cgi processing [16:15:48]execute_cgi json_proto POST (null) [16:15:48]execute_cgi path=json_proto method=POST [16:15:48]POST find Content-Length [16:15:48]Host: 172.17.46.196:8080 [16:15:48]Content-Length: 632 [16:15:48]Content-Type: application/json [16:15:48] [16:15:48]POST finish read [16:15:48]Found Content-Length = 632 [16:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190009", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:48]execute_script... [16:15:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190009", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:48]POST & json_proto [16:15:48]process_json_proto [16:15:48]json parsed OK: [16:15:48]protocol is kg_v1.0 [16:15:48]action value=close_receipt [16:15:48]process_action close_receipt [16:15:48]cmd_close_receipt [16:15:48]MH_GetDate [16:15:48]Write to MH i2c: F0 00 00 42 02 33 [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: F0 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: F0 09 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: F0 09 00 42 02 00 35 1E C2 66 27 15 C2 66 1B [16:15:48]GetLastDocTimeStamp 1723997331 [16:15:48]current date 1723997749 [16:15:48]FM_GetShiftState [16:15:48]SAM_PROTO_GetShiftState [16:15:48]wFMCommunicate request_size=4 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 13 01 00 [16:15:48]Write to MH i2c: E2 08 00 43 02 80 13 01 00 00 00 00 00 C2 [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 0E 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 0E 00 43 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DF [16:15:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:15:48]wFMCommunicate OK [16:15:48]SAM_PROTO_GetShiftState done [16:15:48]FM_GetShiftState done [16:15:48]opened in 1723939759 [16:15:48]opened+sec_in_day 1724026159 [16:15:48]quantity*price = 4000 [16:15:48]sum+1 = 4001 [16:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 97 18.08.2024 16:15 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49831 ФПД: 25080593840506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161549&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49831&fm=25080593840506&tin=02508201610067®Number=0000000000092546&sum=4000 0 [16:15:49]StoreToDocumentArchive [16:15:49]shift 466 fd 49831 [16:15:49]save to /storage/0466/doc_00049831 [16:15:49]save last doc name /storage/0466/doc_00049831 to /storage/kkm_last_doc_name [16:15:49]save OK [16:15:49]Clear old archive folders... [16:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:15:49]tlvbuf is 00FC5490 [16:15:49]SAM_PROTO_ClearQueue [16:15:49]wFMCommunicate request_size=4 [16:15:49]MH_SAM_APDU [16:15:49]CAPDU: 80 09 00 00 [16:15:49]Write to MH i2c: E2 08 00 50 02 80 09 00 00 00 00 00 00 C4 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:49]Read from MH i2c: E2 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 03 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [16:15:49]RAPDU: 90 00 [16:15:49]wFMCommunicate OK [16:15:49]SAM_PROTO_ClearQueue done [16:15:49]KKMCreateOFDPacket [16:15:49]OFDProtocolAddRootSTLVToBuf [16:15:49]FM_MakeSignedData [16:15:49]FM_MakeSignedData [16:15:49]SAM_PROTO_SignData [16:15:49]wFMCommunicate request_size=4 [16:15:49]MH_SAM_APDU [16:15:49]CAPDU: 80 0D 01 02 [16:15:49]Write to MH i2c: E2 08 00 51 02 80 0D 01 02 00 00 00 00 CC [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:49]Read from MH i2c: E2 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 03 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [16:15:49]RAPDU: 90 00 [16:15:49]wFMCommunicate OK [16:15:49]wFMCommunicate request_size=255 [16:15:49]MH_SAM_APDU [16:15:49]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 35 1E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:15:49]Write to MH i2c: E2 02 01 52 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 35 1E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 61 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 03 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [16:15:50]RAPDU: 90 00 [16:15:50]wFMCommunicate OK [16:15:50]wFMCommunicate request_size=30 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 A7 C2 00 00 35 04 06 00 16 CF 87 E2 F9 7A [16:15:50]Write to MH i2c: E2 21 00 53 02 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 A7 C2 00 00 35 04 06 00 16 CF 87 E2 F9 7A 00 00 EA [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 03 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [16:15:50]RAPDU: 90 00 [16:15:50]wFMCommunicate OK [16:15:50]wFMCommunicate request_size=4 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 0D 03 02 [16:15:50]Write to MH i2c: E2 08 00 54 02 80 0D 03 02 00 00 00 00 D1 [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 0B 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 0B 00 54 02 00 07 A0 5C 8F 24 9A 0F 63 90 00 94 [16:15:50]RAPDU: 07 A0 5C 8F 24 9A 0F 63 90 00 [16:15:50]wFMCommunicate OK [16:15:50]SAM_PROTO_SignData done [16:15:50]FM_MakeSignedData done [16:15:50]CreateOFDProtocolMessage [16:15:50]wFMCommunicate request_size=4 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 11 00 00 [16:15:50]Write to MH i2c: E2 08 00 55 02 80 11 00 00 00 00 00 00 D1 [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 17 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 17 00 55 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [16:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:15:50]wFMCommunicate OK [16:15:50]CreateOFDProtocolMessage done [16:15:50]OFDSenderStorePacket 49831 [16:15:50]StoreOFDPacket docnum=49831 [16:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 8E 3B 1B 01 93 D6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 35 1E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C2 00 00 35 04 06 00 16 CF 87 E2 F9 7A 07 A0 5C 8F 24 9A 0F 63 [16:15:50]CheckFolder [16:15:50]dirname=/storage/ofd_packets [16:15:50]CheckFolder done [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00049831 [16:15:50]NVStorageSaveData ofd_packets/00049831 [16:15:50]File name is /storage/ofd_packets/00049831 [16:15:50]Write 321 bytes [16:15:50]NVStorageSaveData done [16:15:50]OFDSenderStorePacket done [16:15:50]KKMCreateOFDPacket done [16:15:50]NVStorageSaveData kkm_last_timestamp [16:15:50]File name is /storage/kkm_last_timestamp [16:15:50]Write 4 bytes [16:15:50]NVStorageSaveData done [16:15:50]ExternCall_PrintAddStr [16:15:50]wPrintStart [16:15:50]Write to MH i2c: 01 00 00 56 02 58 [16:15:50]OFD Sender: Processing packet 49831 [packets to send 21, broken 20] [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00049831 [16:15:50]OFD Sender: To server: pG, [16:15:50]CommunicateWithHost lk.salyk.kg:30040 [16:15:50]ConnectInit lk.salyk.kg [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: 01 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: 01 07 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: 01 07 00 56 02 00 00 00 00 00 FF 0F 6D [16:15:50]RasterBufferAndPrint [16:15:50]line Счет N : (3)190009 [16:15:50]line ИНН: 02508201610067 [16:15:50]line Контрольно-Кассовый Чек [16:15:50]line ПРОДАЖА [16:15:50]line Товар: 4700000160211 [16:15:50]line Вода Легенда 0,5л [16:15:50]line 1.000 * 40.00 [16:15:50]line = 40.00 [16:15:50]line НДС 12% НСП 1% [16:15:50]line > о реализуемом товаре [16:15:50]line ИТОГО: 40.00 [16:15:50]line НСП 1% : 0.35 [16:15:50]line НДС 12% : 4.25 [16:15:50]line Наличными: 40.00 [16:15:50]line Безнал.: 0.00 [16:15:50]line Место: АЗС № 95 "Партнер Нефть" [16:15:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:15:50]line СНО: Общий режим [16:15:50]line Чек 97 18.08.2024 16:15 [16:15:50]line Смена: 466 ФФД: 1.0 [16:15:50]line ЗНМ: 0300000078 [16:15:50]line РНМ: 0000000000092546 [16:15:50]line Версия ККМ: 001 [16:15:50]line ФМ: 0000000000871800 [16:15:50]line ФД: 49831 [16:15:50]line ФПД: 25080593840506 [16:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161549&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49831&fm=25080593840506&tin=02508201610067®Number=0000000000092546&sum=4000 [16:15:50]line 0 [16:15:50]Connected sock=10 [16:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 8E 3B 1B 01 93 D6 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 35 1E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C2 00 00 35 04 06 00 16 CF 87 E2 F9 7A 07 A0 5C 8F 24 9A 0F 63 [16:15:50]written 0, free lines is 4095 [16:15:51]Write to MH i2c: 01 00 00 7E 02 80 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 07 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 DF 0C 72 [16:15:51]RasterBufferAndPrint [16:15:51]line [16:15:51]line [16:15:51]line [16:15:51]line [16:15:51]line [16:15:51]written 0, free lines is 3301 [16:15:51]MH_Cut [16:15:51]Write to MH i2c: D1 01 00 85 02 01 59 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: D1 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: D1 01 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: D1 01 00 85 02 00 58 [16:15:51]Write to MH i2c: 01 00 00 86 02 88 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0D CD 47 00 DF 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C2 00 00 F4 03 04 00 AA C8 C1 66 B6 04 01 00 00 DA DA 3F 7B D9 16 F0 2D [16:15:51]CommunicateWithHost err = 0 [16:15:51]CheckOFDResponse [16:15:51]1017 (14) - 77093643461234 [16:15:51]1041 (16) - 0000000000871800 [16:15:51]1040 (4) - 49831 [16:15:51]1012 (4) - 18.08.2024 10:10 [16:15:51]1206 (1) - 0 [16:15:51]OFD Sender: Remove packet 49831 [16:15:51]ProducePacketName [16:15:51]name=ofd_packets/00049831 [16:15:51]NVStorageDeleteData [16:15:51]OFD Sender: No OFD packet to send [16:15:51]*** Cut start [16:15:51]*** Purtial cut [16:15:51]*** Stage 1: CUTSNS_PIN = 1 [16:15:52]Read from MH i2c: 01 [16:15:52]MH_I2C_Read... [16:15:52]*** Stop cut motor [16:15:52]*** Cut end [16:15:52]Read from MH i2c: 01 07 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [16:15:52]process_action close_receipt done [16:15:52]requested_data is exist [16:15:52]produce_requested_data [16:15:52]requested_item fm.sn is exist - process it [16:15:52]wFMCommunicate request_size=4 [16:15:52]MH_SAM_APDU [16:15:52]CAPDU: 80 11 00 00 [16:15:52]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:52]Read from MH i2c: E2 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 17 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [16:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:15:52]wFMCommunicate OK [16:15:52]requested_item fd.num is exist - process it [16:15:52]SAM_PROTO_GetFieldsCounters [16:15:52]wFMCommunicate request_size=4 [16:15:52]MH_SAM_APDU [16:15:52]CAPDU: 80 13 00 00 [16:15:52]Write to MH i2c: E2 08 00 88 02 80 13 00 00 00 00 00 00 06 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:52]Read from MH i2c: E2 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 62 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 62 00 88 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:52]wFMCommunicate OK [16:15:52]SAM_PROTO_GetFieldsCounters done [16:15:52]requested_item shift.num is exist - process it [16:15:52]requested_item shift.opened is exist - process it [16:15:52]req_shift_opened [16:15:52]FM_GetShiftState [16:15:52]SAM_PROTO_GetShiftState [16:15:52]wFMCommunicate request_size=4 [16:15:52]MH_SAM_APDU [16:15:52]CAPDU: 80 13 01 00 [16:15:52]Write to MH i2c: E2 08 00 89 02 80 13 01 00 00 00 00 00 08 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:52]Read from MH i2c: E2 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 0E 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 0E 00 89 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 25 [16:15:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:15:52]wFMCommunicate OK [16:15:52]SAM_PROTO_GetShiftState done [16:15:52]FM_GetShiftState done [16:15:52]req_shift_opened done [16:15:52]requested_item shift.open_date is exist - process it [16:15:52]req_shift_open_date [16:15:52]req_shift_open_date done [16:15:52]produce_requested_data done [16:15:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49831,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:15:52]process_action_free close_receipt [16:15:52]json_value_free [16:15:52]json_value_free done [16:15:52]process_json_proto returns [16:15:52]Send response to host [16:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49831,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:15:52]free response buf [16:15:52]execute_script done [16:15:52]execute_script returns [16:15:52]free content buf [16:15:52]Sock 7.Close socket [16:15:52]Sock 7.Thread stoped [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21: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:56]accept exits with 9 [16:21:56]New connection [16:21:56]New thread 3067198820 created [16:21:56]Thread 3067055460 joined [16:21:56]Waiting for new connection... [16:21:56] Sock 9.Parse request [16:21:56]Sock 9.Check first char [16:21:56]Sock 9.First char is OK [16:21:56]request: POST /json_proto HTTP/1.0 [16:21:56]Method: POST [16:21:56]URL: /json_proto [16:21:56]Method is POST - this is cgi request [16:21:56]url: /json_proto [16:21:56]query_string will be loaded in cgi processing [16:21:56]execute_cgi json_proto POST (null) [16:21:56]execute_cgi path=json_proto method=POST [16:21:56]POST find Content-Length [16:21:56]Host: 172.17.46.196:8080 [16:21:56]Content-Length: 756 [16:21:56]Content-Type: application/json [16:21:56] [16:21:56]POST finish read [16:21:56]Found Content-Length = 756 [16:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30059671", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:56]execute_script... [16:21: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)11327127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30059671", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:56]POST & json_proto [16:21:56]process_json_proto [16:21:56]json parsed OK: [16:21:56]protocol is kg_v1.0 [16:21:56]action value=close_receipt [16:21:56]process_action close_receipt [16:21:56]cmd_close_receipt [16:21:56]MH_GetDate [16:21:56]Write to MH i2c: F0 00 00 8A 02 7B [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: F0 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: F0 09 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: F0 09 00 8A 02 00 A5 1F C2 66 27 15 C2 66 D4 [16:21:56]GetLastDocTimeStamp 1723997749 [16:21:56]current date 1723998117 [16:21:56]FM_GetShiftState [16:21:56]SAM_PROTO_GetShiftState [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 01 00 [16:21:56]Write to MH i2c: E2 08 00 8B 02 80 13 01 00 00 00 00 00 0A [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 8B 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 27 [16:21:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetShiftState done [16:21:56]FM_GetShiftState done [16:21:56]opened in 1723939759 [16:21:56]opened+sec_in_day 1724026159 [16:21:56]quantity*price = 0 [16:21:56]sum+1 = 1 [16:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 98 18.08.2024 16:21 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30059671 ФМ: 0000000000871800 ФД: 49832 ФПД: 253667668959310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49832&fm=253667668959310&tin=02508201610067®Number=0000000000092546&sum=0 [16:21:57]StoreToDocumentArchive [16:21:57]shift 466 fd 49832 [16:21:57]save to /storage/0466/doc_00049832 [16:21:57]save last doc name /storage/0466/doc_00049832 to /storage/kkm_last_doc_name [16:21:57]save OK [16:21:57]Clear old archive folders... [16:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:57]tlvbuf is 00FE2990 [16:21:57]SAM_PROTO_ClearQueue [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 09 00 00 [16:21:57]Write to MH i2c: E2 08 00 98 02 80 09 00 00 00 00 00 00 0C [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]SAM_PROTO_ClearQueue done [16:21:57]KKMCreateOFDPacket [16:21:57]OFDProtocolAddRootSTLVToBuf [16:21:57]FM_MakeSignedData [16:21:57]FM_MakeSignedData [16:21:57]SAM_PROTO_SignData [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 0D 01 02 [16:21:57]Write to MH i2c: E2 08 00 99 02 80 0D 01 02 00 00 00 00 14 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]wFMCommunicate request_size=255 [16:21:57]MH_SAM_APDU [16:21: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 34 FF 03 08 00 03 50 C3 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 62 00 00 00 F4 03 04 00 A5 1F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C2 00 00 35 04 06 00 E6 [16:21:57]Write to MH i2c: E2 02 01 9A 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 34 FF 03 08 00 03 50 C3 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 62 00 00 00 F4 03 04 00 A5 1F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C2 00 00 35 04 06 00 E6 00 00 9A [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]wFMCommunicate request_size=10 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 0D 02 02 05 B5 9B 4C A0 4E [16:21:57]Write to MH i2c: E2 0D 00 9B 02 80 0D 02 02 05 00 B5 9B 4C A0 4E 00 00 AB [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 0D 03 02 [16:21:57]Write to MH i2c: E2 08 00 9C 02 80 0D 03 02 00 00 00 00 19 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0B 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0B 00 9C 02 00 D6 55 0F 61 D5 D3 08 AD 90 00 12 [16:21:57]RAPDU: D6 55 0F 61 D5 D3 08 AD 90 00 [16:21:57]wFMCommunicate OK [16:21:57]SAM_PROTO_SignData done [16:21:57]FM_MakeSignedData done [16:21:57]CreateOFDProtocolMessage [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 11 00 00 [16:21:57]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 64 [16:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:21:57]wFMCommunicate OK [16:21:57]CreateOFDProtocolMessage done [16:21:57]OFDSenderStorePacket 49832 [16:21:57]StoreOFDPacket docnum=49832 [16:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FC AC 07 01 98 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 62 00 00 00 F4 03 04 00 A5 1F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C2 00 00 35 04 06 00 E6 B5 9B 4C A0 4E D6 55 0F 61 D5 D3 08 AD [16:21:57]CheckFolder [16:21:57]dirname=/storage/ofd_packets [16:21:57]CheckFolder done [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00049832 [16:21:57]NVStorageSaveData ofd_packets/00049832 [16:21:57]File name is /storage/ofd_packets/00049832 [16:21:57]Write 301 bytes [16:21:57]NVStorageSaveData done [16:21:57]OFDSenderStorePacket done [16:21:57]KKMCreateOFDPacket done [16:21:57]NVStorageSaveData kkm_last_timestamp [16:21:57]File name is /storage/kkm_last_timestamp [16:21:57]Write 4 bytes [16:21:57]NVStorageSaveData done [16:21:57]ExternCall_PrintAddStr [16:21:57]wPrintStart [16:21:57]Write to MH i2c: 01 00 00 9E 02 A0 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 FF 0F B5 [16:21:57]RasterBufferAndPrint [16:21:57]line Счет N : (1)11327127 [16:21:57]line ИНН: 02508201610067 [16:21:57]line Контрольно-Кассовый Чек [16:21:57]line ПРОДАЖА [16:21:57]line ТРК (МРК, ГНК) : 42 [16:21:57]line Товар: 2710124130 [16:21:57]line Аи-92-К-4 [16:21:57]line 50.000 * 0.00 [16:21:57]line = 0.00 [16:21:57]line НДС 12% НСП 1% [16:21:57]line > о реализуемом товаре [16:21:57]line ИТОГО: 0.00 [16:21:57]line НСП 1% : 0.00 [16:21:57]line НДС 12% : 0.00 [16:21:57]line Наличными: 0.00 [16:21:57]line Безнал.: 0.00 [16:21:57]line Место: АЗС № 95 "Партнер Нефть" [16:21:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:21:57]line СНО: Общий режим [16:21:57]line Чек 98 18.08.2024 16:21 [16:21:57]line Смена: 466 ФФД: 1.0 [16:21:57]line ЗНМ: 0300000078 [16:21:57]line РНМ: 0000000000092546 [16:21:57]line Версия ККМ: 001 [16:21:57]line Талоны: ТК ГПНА Online [16:21:57]line 30059671 [16:21:57]line ФМ: 0000000000871800 [16:21:57]line ФД: 49832 [16:21:57]line ФПД: 253667668959310 [16:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49832&fm=253667668959310&tin=02508201610067®Number=0000000000092546&sum=0 [16:21:58]OFD Sender: Processing packet 49832 [packets to send 21, broken 20] [16:21:58]ProducePacketName [16:21:58]name=ofd_packets/00049832 [16:21:58]OFD Sender: To server: pG, [16:21:58]CommunicateWithHost lk.salyk.kg:30040 [16:21:58]ConnectInit lk.salyk.kg [16:21:58]written 0, free lines is 4095 [16:21:58]Connected sock=10 [16:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FC AC 07 01 98 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 62 00 00 00 F4 03 04 00 A5 1F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C2 00 00 35 04 06 00 E6 B5 9B 4C A0 4E D6 55 0F 61 D5 D3 08 AD [16:21:58]Write to MH i2c: 01 00 00 C8 02 CA [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 07 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 D8 0C B5 [16:21:58]RasterBufferAndPrint [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]written 0, free lines is 3294 [16:21:58]MH_Cut [16:21:58]Write to MH i2c: D1 01 00 CF 02 01 A3 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 01 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 01 00 CF 02 00 A2 [16:21:58]Write to MH i2c: 01 00 00 D0 02 D2 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 28 90 47 00 03 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 38 30 30 10 04 04 00 A8 C2 00 00 F4 03 04 00 1A CA C1 66 B6 04 01 00 00 CB C4 A0 77 85 98 13 BE [16:21:58]CommunicateWithHost err = 0 [16:21:58]CheckOFDResponse [16:21:58]1017 (14) - 77093643461234 [16:21:58]1041 (16) - 0000000000871800 [16:21:58]1040 (4) - 49832 [16:21:58]1012 (4) - 18.08.2024 10:16 [16:21:58]1206 (1) - 0 [16:21:58]OFD Sender: Remove packet 49832 [16:21:58]ProducePacketName [16:21:58]name=ofd_packets/00049832 [16:21:58]NVStorageDeleteData [16:21:59]*** Cut start [16:21:59]*** Purtial cut [16:21:59]*** CUTSNS_PIN = 0 [16:21:59]OFD Sender: No OFD packet to send [16:21:59]*** Stage 1: CUTSNS_PIN = 1 [16:22:01]Read from MH i2c: 01 [16:22:01]MH_I2C_Read... [16:22:01]*** Stop cut motor [16:22:01]*** Cut end [16:22:01]Read from MH i2c: 01 07 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [16:22:01]process_action close_receipt done [16:22:01]requested_data is exist [16:22:01]produce_requested_data [16:22:01]requested_item fm.sn is exist - process it [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 11 00 00 [16:22:01]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [16:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:22:01]wFMCommunicate OK [16:22:01]requested_item fd.num is exist - process it [16:22:01]SAM_PROTO_GetFieldsCounters [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 13 00 00 [16:22:01]Write to MH i2c: E2 08 00 D2 02 80 13 00 00 00 00 00 00 50 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 62 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 62 00 D2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_GetFieldsCounters done [16:22:01]requested_item shift.num is exist - process it [16:22:01]requested_item shift.opened is exist - process it [16:22:01]req_shift_opened [16:22:01]FM_GetShiftState [16:22:01]SAM_PROTO_GetShiftState [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 13 01 00 [16:22:01]Write to MH i2c: E2 08 00 D3 02 80 13 01 00 00 00 00 00 52 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0E 00 D3 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6F [16:22:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_GetShiftState done [16:22:01]FM_GetShiftState done [16:22:01]req_shift_opened done [16:22:01]requested_item shift.open_date is exist - process it [16:22:01]req_shift_open_date [16:22:01]req_shift_open_date done [16:22:01]produce_requested_data done [16:22:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49832,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:22:01]process_action_free close_receipt [16:22:01]json_value_free [16:22:01]json_value_free done [16:22:01]process_json_proto returns [16:22:01]Send response to host [16:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49832,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:22:01]free response buf [16:22:01]execute_script done [16:22:01]execute_script returns [16:22:01]free content buf [16:22:01]Sock 9.Close socket [16:22:01]Sock 9.Thread stoped [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:25]int [16:28:25]Write to MH i2c: 01 00 00 D4 02 D6 [16:28:25]*** FLAG_PRN_KEY set [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 07 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 07 00 D4 02 00 08 00 00 00 FF 0F F3 [16:28:25]state=0 [16:28:25]Key pressed [16:28:25]Feed [16:28:25]Write to MH i2c: D8 00 00 D5 02 AE [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: D8 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: D8 01 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: D8 01 00 D5 02 00 AF [16:28:25]int [16:28:25]Write to MH i2c: 01 00 00 D6 02 D8 [16:28:25]Write i2c OK [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 07 00 [16:28:25]MH_I2C_Read... [16:28:25]Read from MH i2c: 01 07 00 D6 02 00 48 00 00 00 3C 00 63 [16:28:25]state=2 [16:28:25]Key pressed [16:28:26]int [16:28:26]Write to MH i2c: 01 00 00 D7 02 D9 [16:28:26]*** FLAG_PRN_KEY reset [16:28:26]Write i2c OK [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: 01 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: 01 07 00 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 F5 0F E4 [16:28:26]state=2 [16:28:26]Stop feed [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:49]accept exits with 7 [16:41:49]New connection [16:41:49]New thread 3067055460 created [16:41:49]Thread 3067198820 joined [16:41:49]Waiting for new connection... [16:41:49] Sock 7.Parse request [16:41:49]Sock 7.Check first char [16:41:49]Sock 7.First char is OK [16:41:49]request: POST /json_proto HTTP/1.0 [16:41:49]Method: POST [16:41:49]URL: /json_proto [16:41:49]Method is POST - this is cgi request [16:41:49]url: /json_proto [16:41:49]query_string will be loaded in cgi processing [16:41:49]execute_cgi json_proto POST (null) [16:41:49]execute_cgi path=json_proto method=POST [16:41:49]POST find Content-Length [16:41:49]Host: 172.17.46.196:8080 [16:41:49]Content-Length: 1188 [16:41:49]Content-Type: application/json [16:41:49] [16:41:49]POST finish read [16:41:50]Found Content-Length = 1188 [16:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190010", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 418.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:50]execute_script... [16:41:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190010", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 418.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:50]POST & json_proto [16:41:50]process_json_proto [16:41:50]json parsed OK: [16:41:50]protocol is kg_v1.0 [16:41:50]action value=close_receipt [16:41:50]process_action close_receipt [16:41:50]cmd_close_receipt [16:41:50]MH_GetDate [16:41:50]Write to MH i2c: F0 00 00 D8 02 C9 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 09 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: F0 09 00 D8 02 00 4F 24 C2 66 27 15 C2 66 D1 [16:41:50]GetLastDocTimeStamp 1723998117 [16:41:50]current date 1723999311 [16:41:50]FM_GetShiftState [16:41:50]SAM_PROTO_GetShiftState [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 13 01 00 [16:41:50]Write to MH i2c: E2 08 00 D9 02 80 13 01 00 00 00 00 00 58 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0E 00 D9 02 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 75 [16:41:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_GetShiftState done [16:41:50]FM_GetShiftState done [16:41:50]opened in 1723939759 [16:41:50]opened+sec_in_day 1724026159 [16:41:50]quantity*price = 27000 [16:41:50]sum+1 = 27001 [16:41:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 418.00 НСП 1% : 3.70 НДС 12% : 44.39 Наличными: 418.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 99 18.08.2024 16:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49833 ФПД: 187227146101968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49833&fm=187227146101968&tin=02508201610067®Number=0000000000092546&sum=41800 0 [16:41:51]StoreToDocumentArchive [16:41:51]shift 466 fd 49833 [16:41:51]save to /storage/0466/doc_00049833 [16:41:51]save last doc name /storage/0466/doc_00049833 to /storage/kkm_last_doc_name [16:41:51]save OK [16:41:51]Clear old archive folders... [16:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=505 [16:41:51]tlvbuf is 00FE2580 [16:41:51]SAM_PROTO_ClearQueue [16:41:51]wFMCommunicate request_size=4 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 09 00 00 [16:41:51]Write to MH i2c: E2 08 00 E6 02 80 09 00 00 00 00 00 00 5A [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [16:41:51]RAPDU: 90 00 [16:41:51]wFMCommunicate OK [16:41:51]SAM_PROTO_ClearQueue done [16:41:51]KKMCreateOFDPacket [16:41:51]OFDProtocolAddRootSTLVToBuf [16:41:51]FM_MakeSignedData [16:41:51]FM_MakeSignedData [16:41:51]SAM_PROTO_SignData [16:41:51]wFMCommunicate request_size=4 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 0D 01 02 [16:41:51]Write to MH i2c: E2 08 00 E7 02 80 0D 01 02 00 00 00 00 62 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [16:41:51]RAPDU: 90 00 [16:41:51]wFMCommunicate OK [16:41:51]wFMCommunicate request_size=255 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 [16:41:51]Write to MH i2c: E2 02 01 E8 02 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 00 00 CC [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:51]Read from MH i2c: E2 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [16:41:51]RAPDU: 90 00 [16:41:51]wFMCommunicate OK [16:41:51]wFMCommunicate request_size=255 [16:41:51]MH_SAM_APDU [16:41:51]CAPDU: 80 0D 02 02 FA 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4F 24 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C2 00 00 35 [16:41:51]Write to MH i2c: E2 02 01 E9 02 80 0D 02 02 FA 00 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4F 24 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C2 00 00 35 00 00 35 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [16:41:52]RAPDU: 90 00 [16:41:52]wFMCommunicate OK [16:41:52]wFMCommunicate request_size=14 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 0D 02 02 09 04 06 00 AA 48 37 89 24 D0 [16:41:52]Write to MH i2c: E2 11 00 EA 02 80 0D 02 02 09 00 04 06 00 AA 48 37 89 24 D0 00 00 28 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [16:41:52]RAPDU: 90 00 [16:41:52]wFMCommunicate OK [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 0D 03 02 [16:41:52]Write to MH i2c: E2 08 00 EB 02 80 0D 03 02 00 00 00 00 68 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0B 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0B 00 EB 02 00 79 D1 DD B5 20 5C 1E 96 90 00 75 [16:41:52]RAPDU: 79 D1 DD B5 20 5C 1E 96 90 00 [16:41:52]wFMCommunicate OK [16:41:52]SAM_PROTO_SignData done [16:41:52]FM_MakeSignedData done [16:41:52]CreateOFDProtocolMessage [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 11 00 00 [16:41:52]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B3 [16:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:41:52]wFMCommunicate OK [16:41:52]CreateOFDProtocolMessage done [16:41:52]OFDSenderStorePacket 49833 [16:41:52]StoreOFDPacket docnum=49833 [16:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 02 00 00 68 36 05 02 F3 F4 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4F 24 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C2 00 00 35 04 06 00 AA 48 37 89 24 D0 79 D1 DD B5 20 5C 1E 96 [16:41:52]CheckFolder [16:41:52]dirname=/storage/ofd_packets [16:41:52]CheckFolder done [16:41:52]ProducePacketName [16:41:52]name=ofd_packets/00049833 [16:41:52]NVStorageSaveData ofd_packets/00049833 [16:41:52]File name is /storage/ofd_packets/00049833 [16:41:52]Write 555 bytes [16:41:52]NVStorageSaveData done [16:41:52]OFDSenderStorePacket done [16:41:52]KKMCreateOFDPacket done [16:41:52]NVStorageSaveData kkm_last_timestamp [16:41:52]File name is /storage/kkm_last_timestamp [16:41:52]Write 4 bytes [16:41:52]NVStorageSaveData done [16:41:52]ExternCall_PrintAddStr [16:41:52]wPrintStart [16:41:52]Write to MH i2c: 01 00 00 ED 02 EF [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [16:41:52]RasterBufferAndPrint [16:41:52]line Счет N : (3)190010 [16:41:52]line ИНН: 02508201610067 [16:41:52]line Контрольно-Кассовый Чек [16:41:52]line ПРОДАЖА [16:41:52]line Товар: 4650243871828 [16:41:52]line Gorilla эн нап манго-кокос 0,45 ж/б [16:41:52]line 3.000 * 90.00 [16:41:52]line = 270.00 [16:41:52]line НДС 12% НСП 1% [16:41:52]line > о реализуемом товаре [16:41:52]line Товар: 48743570 [16:41:52]line Сигареты Winston XStyle Blue [16:41:52]line 1.000 * 140.00 [16:41:52]line = 140.00 [16:41:52]line НДС 12% НСП 1% [16:41:52]line > о реализуемом товаре [16:41:52]line Товар: 2000031750019 [16:41:52]line Пакет Партнер Нефть [16:41:52]line 2.000 * 4.00 [16:41:52]line = 8.00 [16:41:52]line НДС 12% НСП 1% [16:41:52]line > о реализуемом товаре [16:41:52]line ИТОГО: 418.00 [16:41:52]line НСП 1% : 3.70 [16:41:52]line НДС 12% : 44.39 [16:41:52]line Наличными: 418.00 [16:41:52]line Безнал.: 0.00 [16:41:52]line Место: АЗС № 95 "Партнер Нефть" [16:41:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:41:52]line СНО: Общий режим [16:41:52]line Чек 99 18.08.2024 16:41 [16:41:52]line Смена: 466 ФФД: 1.0 [16:41:52]line ЗНМ: 0300000078 [16:41:52]line РНМ: 0000000000092546 [16:41:52]line Версия ККМ: 001 [16:41:52]line ФМ: 0000000000871800 [16:41:52]line ФД: 49833 [16:41:52]line ФПД: 187227146101968 [16:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49833&fm=187227146101968&tin=02508201610067®Number=0000000000092546&sum=41800 [16:41:52]line 0 [16:41:52]OFD Sender: Processing packet 49833 [packets to send 21, broken 20] [16:41:52]ProducePacketName [16:41:52]name=ofd_packets/00049833 [16:41:52]OFD Sender: To server: pG, [16:41:52]CommunicateWithHost lk.salyk.kg:30040 [16:41:52]ConnectInit lk.salyk.kg [16:41:52]written 0, free lines is 4095 [16:41:52]Connected sock=10 [16:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 02 00 00 68 36 05 02 F3 F4 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 A3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 11 00 00 00 00 07 04 06 00 48 A3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4F 24 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C2 00 00 35 04 06 00 AA 48 37 89 24 D0 79 D1 DD B5 20 5C 1E 96 [16:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 71 4E 47 00 D0 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 38 30 30 10 04 04 00 A9 C2 00 00 F4 03 04 00 C4 CE C1 66 B6 04 01 00 00 5F 90 59 97 7C 9B BA E8 [16:41:52]CommunicateWithHost err = 0 [16:41:52]CheckOFDResponse [16:41:52]1017 (14) - 77093643461234 [16:41:52]1041 (16) - 0000000000871800 [16:41:52]1040 (4) - 49833 [16:41:52]1012 (4) - 18.08.2024 10:36 [16:41:52]1206 (1) - 0 [16:41:52]OFD Sender: Remove packet 49833 [16:41:52]ProducePacketName [16:41:52]name=ofd_packets/00049833 [16:41:52]NVStorageDeleteData [16:41:52]Write to MH i2c: 01 00 00 22 03 25 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 2E 0C 66 [16:41:52]RasterBufferAndPrint [16:41:52]line [16:41:52]line [16:41:52]line [16:41:52]line [16:41:52]line [16:41:52]written 0, free lines is 3123 [16:41:52]MH_Cut [16:41:52]Write to MH i2c: D1 01 00 29 03 01 FE [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: D1 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: D1 01 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: D1 01 00 29 03 00 FD [16:41:52]Write to MH i2c: 01 00 00 2A 03 2D [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:53]OFD Sender: No OFD packet to send [16:41:53]*** Cut start [16:41:53]*** Purtial cut [16:41:53]*** Stage 1: CUTSNS_PIN = 1 [16:41:54]Read from MH i2c: 01 [16:41:54]MH_I2C_Read... [16:41:54]*** Stop cut motor [16:41:54]*** Cut end [16:41:54]Read from MH i2c: 01 07 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 FF 0F 42 [16:41:54]process_action close_receipt done [16:41:54]requested_data is exist [16:41:54]produce_requested_data [16:41:54]requested_item fm.sn is exist - process it [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 11 00 00 [16:41:54]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 17 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [16:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:41:54]wFMCommunicate OK [16:41:54]requested_item fd.num is exist - process it [16:41:54]SAM_PROTO_GetFieldsCounters [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 13 00 00 [16:41:54]Write to MH i2c: E2 08 00 2C 03 80 13 00 00 00 00 00 00 AB [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 62 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 62 00 2C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_GetFieldsCounters done [16:41:54]requested_item shift.num is exist - process it [16:41:54]requested_item shift.opened is exist - process it [16:41:54]req_shift_opened [16:41:54]FM_GetShiftState [16:41:54]SAM_PROTO_GetShiftState [16:41:54]wFMCommunicate request_size=4 [16:41:54]MH_SAM_APDU [16:41:54]CAPDU: 80 13 01 00 [16:41:54]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [16:41:54]Write i2c OK [16:41:54]MH_I2C_Read... [16:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:54]Read from MH i2c: E2 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 [16:41:54]MH_I2C_Read... [16:41:54]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CA [16:41:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:41:54]wFMCommunicate OK [16:41:54]SAM_PROTO_GetShiftState done [16:41:54]FM_GetShiftState done [16:41:54]req_shift_opened done [16:41:54]requested_item shift.open_date is exist - process it [16:41:54]req_shift_open_date [16:41:54]req_shift_open_date done [16:41:54]produce_requested_data done [16:41:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49833,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:41:54]process_action_free close_receipt [16:41:54]json_value_free [16:41:54]json_value_free done [16:41:54]process_json_proto returns [16:41:54]Send response to host [16:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49833,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:41:54]free response buf [16:41:54]execute_script done [16:41:54]execute_script returns [16:41:54]free content buf [16:41:54]Sock 7.Close socket [16:41:54]Sock 7.Thread stoped [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:52]accept exits with 9 [16:44:52]New connection [16:44:52]New thread 3067198820 created [16:44:52]Thread 3067055460 joined [16:44:52]Waiting for new connection... [16:44:52] Sock 9.Parse request [16:44:52]Sock 9.Check first char [16:44:52]Sock 9.First char is OK [16:44:52]request: POST /json_proto HTTP/1.0 [16:44:52]Method: POST [16:44:52]URL: /json_proto [16:44:52]Method is POST - this is cgi request [16:44:52]url: /json_proto [16:44:52]query_string will be loaded in cgi processing [16:44:52]execute_cgi json_proto POST (null) [16:44:52]execute_cgi path=json_proto method=POST [16:44:52]POST find Content-Length [16:44:52]Host: 172.17.46.196:8080 [16:44:52]Content-Length: 702 [16:44:52]Content-Type: application/json [16:44:52] [16:44:52]POST finish read [16:44:52]Found Content-Length = 702 [16:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190011", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:52]execute_script... [16:44:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190011", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:52]POST & json_proto [16:44:52]process_json_proto [16:44:52]json parsed OK: [16:44:52]protocol is kg_v1.0 [16:44:52]action value=close_receipt [16:44:52]process_action close_receipt [16:44:52]cmd_close_receipt [16:44:52]MH_GetDate [16:44:52]Write to MH i2c: F0 00 00 2E 03 20 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: F0 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: F0 09 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: F0 09 00 2E 03 00 05 25 C2 66 27 15 C2 66 DF [16:44:52]GetLastDocTimeStamp 1723999311 [16:44:52]current date 1723999493 [16:44:52]FM_GetShiftState [16:44:52]SAM_PROTO_GetShiftState [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 13 01 00 [16:44:52]Write to MH i2c: E2 08 00 2F 03 80 13 01 00 00 00 00 00 AF [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 0E 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 0E 00 2F 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CC [16:44:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:44:52]wFMCommunicate OK [16:44:52]SAM_PROTO_GetShiftState done [16:44:52]FM_GetShiftState done [16:44:52]opened in 1723939759 [16:44:52]opened+sec_in_day 1724026159 [16:44:52]quantity*price = 12500 [16:44:52]sum+1 = 12501 [16:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 100 18.08.2024 16:44 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49834 ФПД: 144947752363430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164453&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49834&fm=144947752363430&tin=02508201610067®Number=0000000000092546&sum=12500 0 [16:44:53]StoreToDocumentArchive [16:44:53]shift 466 fd 49834 [16:44:53]save to /storage/0466/doc_00049834 [16:44:53]save last doc name /storage/0466/doc_00049834 to /storage/kkm_last_doc_name [16:44:53]save OK [16:44:53]Clear old archive folders... [16:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=298 [16:44:53]tlvbuf is 00FDBC40 [16:44:53]SAM_PROTO_ClearQueue [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 09 00 00 [16:44:53]Write to MH i2c: E2 08 00 3C 03 80 09 00 00 00 00 00 00 B1 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_ClearQueue done [16:44:53]KKMCreateOFDPacket [16:44:53]OFDProtocolAddRootSTLVToBuf [16:44:53]FM_MakeSignedData [16:44:53]FM_MakeSignedData [16:44:53]SAM_PROTO_SignData [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 01 02 [16:44:53]Write to MH i2c: E2 08 00 3D 03 80 0D 01 02 00 00 00 00 B9 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=255 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [16:44:53]Write to MH i2c: E2 02 01 3E 03 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 A6 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 03 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [16:44:54]RAPDU: 90 00 [16:44:54]wFMCommunicate OK [16:44:54]wFMCommunicate request_size=57 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C2 00 00 35 04 06 00 83 D4 47 4A 65 A6 [16:44:54]Write to MH i2c: E2 3C 00 3F 03 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C2 00 00 35 04 06 00 83 D4 47 4A 65 A6 00 00 D1 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 03 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [16:44:54]RAPDU: 90 00 [16:44:54]wFMCommunicate OK [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 0D 03 02 [16:44:54]Write to MH i2c: E2 08 00 40 03 80 0D 03 02 00 00 00 00 BE [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 0B 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 0B 00 40 03 00 F0 EF 05 CC BF 55 DB C5 90 00 23 [16:44:54]RAPDU: F0 EF 05 CC BF 55 DB C5 90 00 [16:44:54]wFMCommunicate OK [16:44:54]SAM_PROTO_SignData done [16:44:54]FM_MakeSignedData done [16:44:54]CreateOFDProtocolMessage [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 11 00 00 [16:44:54]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 17 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [16:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:44:54]wFMCommunicate OK [16:44:54]CreateOFDProtocolMessage done [16:44:54]OFDSenderStorePacket 49834 [16:44:54]StoreOFDPacket docnum=49834 [16:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 B8 F7 36 01 4A 9D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C2 00 00 35 04 06 00 83 D4 47 4A 65 A6 F0 EF 05 CC BF 55 DB C5 [16:44:54]CheckFolder [16:44:54]dirname=/storage/ofd_packets [16:44:54]CheckFolder done [16:44:54]ProducePacketName [16:44:54]name=ofd_packets/00049834 [16:44:54]NVStorageSaveData ofd_packets/00049834 [16:44:54]File name is /storage/ofd_packets/00049834 [16:44:54]Write 348 bytes [16:44:54]NVStorageSaveData done [16:44:54]OFDSenderStorePacket done [16:44:54]KKMCreateOFDPacket done [16:44:54]NVStorageSaveData kkm_last_timestamp [16:44:54]File name is /storage/kkm_last_timestamp [16:44:54]Write 4 bytes [16:44:54]NVStorageSaveData done [16:44:54]ExternCall_PrintAddStr [16:44:54]wPrintStart [16:44:54]Write to MH i2c: 01 00 00 42 03 45 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [16:44:54]RasterBufferAndPrint [16:44:54]line Счет N : (3)190011 [16:44:54]line ИНН: 02508201610067 [16:44:54]line Контрольно-Кассовый Чек [16:44:54]line ПРОДАЖА [16:44:54]line Товар: 4870202522701 [16:44:54]line Напиток Maxi Чай черный Малина 1,2 [16:44:54]line 1.000 * 125.00 [16:44:54]line = 125.00 [16:44:54]line НДС 12% НСП 1% [16:44:54]line > о реализуемом товаре [16:44:54]line ИТОГО: 125.00 [16:44:54]line НСП 1% : 1.11 [16:44:54]line НДС 12% : 13.27 [16:44:54]line Наличными: 125.00 [16:44:54]line Безнал.: 0.00 [16:44:54]line Место: АЗС № 95 "Партнер Нефть" [16:44:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:44:54]line СНО: Общий режим [16:44:54]line Чек 100 18.08.2024 16:44 [16:44:54]line Смена: 466 ФФД: 1.0 [16:44:54]line ЗНМ: 0300000078 [16:44:54]line РНМ: 0000000000092546 [16:44:54]line Версия ККМ: 001 [16:44:54]line ФМ: 0000000000871800 [16:44:54]line ФД: 49834 [16:44:54]line ФПД: 144947752363430 [16:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164453&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49834&fm=144947752363430&tin=02508201610067®Number=0000000000092546&sum=12500 [16:44:54]OFD Sender: Processing packet 49834 [packets to send 21, broken 20] [16:44:54]ProducePacketName [16:44:54]name=ofd_packets/00049834 [16:44:54]OFD Sender: To server: pG, [16:44:54]CommunicateWithHost lk.salyk.kg:30040 [16:44:54]ConnectInit lk.salyk.kg [16:44:54]line 0 [16:44:54]written 0, free lines is 4095 [16:44:54]Connected sock=10 [16:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 B8 F7 36 01 4A 9D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C2 00 00 35 04 06 00 83 D4 47 4A 65 A6 F0 EF 05 CC BF 55 DB C5 [16:44:55]Write to MH i2c: 01 00 00 6B 03 6E [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 CA 0C 4B [16:44:55]RasterBufferAndPrint [16:44:55]line [16:44:55]line [16:44:55]line [16:44:55]line [16:44:55]line [16:44:55]written 0, free lines is 3281 [16:44:55]MH_Cut [16:44:55]Write to MH i2c: D1 01 00 72 03 01 47 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D1 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D1 01 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D1 01 00 72 03 00 46 [16:44:55]Write to MH i2c: 01 00 00 73 03 76 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 63 9F 47 00 42 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C2 00 00 F4 03 04 00 7A CF C1 66 B6 04 01 00 00 26 01 BD 67 BE 7E EE C8 [16:44:55]CommunicateWithHost err = 0 [16:44:55]CheckOFDResponse [16:44:55]1017 (14) - 77093643461234 [16:44:55]1041 (16) - 0000000000871800 [16:44:55]1040 (4) - 49834 [16:44:55]1012 (4) - 18.08.2024 10:39 [16:44:55]1206 (1) - 0 [16:44:55]OFD Sender: Remove packet 49834 [16:44:55]ProducePacketName [16:44:55]name=ofd_packets/00049834 [16:44:55]NVStorageDeleteData [16:44:55]OFD Sender: No OFD packet to send [16:44:55]*** Cut start [16:44:55]*** Purtial cut [16:44:55]*** CUTSNS_PIN = 0 [16:44:56]*** Stage 1: CUTSNS_PIN = 1 [16:44:57]Read from MH i2c: 01 [16:44:57]MH_I2C_Read... [16:44:57]*** Stop cut motor [16:44:57]*** Cut end [16:44:57]Read from MH i2c: 01 07 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [16:44:57]process_action close_receipt done [16:44:57]requested_data is exist [16:44:57]produce_requested_data [16:44:57]requested_item fm.sn is exist - process it [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 11 00 00 [16:44:57]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 17 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [16:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:44:57]wFMCommunicate OK [16:44:57]requested_item fd.num is exist - process it [16:44:57]SAM_PROTO_GetFieldsCounters [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 13 00 00 [16:44:57]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 62 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [16:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:58]wFMCommunicate OK [16:44:58]SAM_PROTO_GetFieldsCounters done [16:44:58]requested_item shift.num is exist - process it [16:44:58]requested_item shift.opened is exist - process it [16:44:58]req_shift_opened [16:44:58]FM_GetShiftState [16:44:58]SAM_PROTO_GetShiftState [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 13 01 00 [16:44:58]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0E 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 13 [16:44:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:44:58]wFMCommunicate OK [16:44:58]SAM_PROTO_GetShiftState done [16:44:58]FM_GetShiftState done [16:44:58]req_shift_opened done [16:44:58]requested_item shift.open_date is exist - process it [16:44:58]req_shift_open_date [16:44:58]req_shift_open_date done [16:44:58]produce_requested_data done [16:44:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49834,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:44:58]process_action_free close_receipt [16:44:58]json_value_free [16:44:58]json_value_free done [16:44:58]process_json_proto returns [16:44:58]Send response to host [16:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49834,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:44:58]free response buf [16:44:58]execute_script done [16:44:58]execute_script returns [16:44:58]free content buf [16:44:58]Sock 9.Close socket [16:44:58]Sock 9.Thread stoped [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:42]int [16:50:42]Write to MH i2c: 01 00 00 77 03 7A [16:50:42]*** FLAG_PRN_KEY set [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 77 03 00 08 00 00 00 FF 0F 97 [16:50:42]state=0 [16:50:42]Key pressed [16:50:42]Feed [16:50:42]Write to MH i2c: D8 00 00 78 03 52 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D8 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D8 01 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: D8 01 00 78 03 00 53 [16:50:42]int [16:50:42]Write to MH i2c: 01 00 00 79 03 7C [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 79 03 00 48 00 00 00 3C 00 07 [16:50:42]state=2 [16:50:42]Key pressed [16:50:42]int [16:50:42]Write to MH i2c: 01 00 00 7A 03 7D [16:50:42]*** FLAG_PRN_KEY reset [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 F5 0F 88 [16:50:42]state=2 [16:50:42]Stop feed [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:31]accept exits with 7 [16:53:31]New connection [16:53:31]New thread 3067055460 created [16:53:31]Thread 3067198820 joined [16:53:31]Waiting for new connection... [16:53:31] Sock 7.Parse request [16:53:31]Sock 7.Check first char [16:53:31]Sock 7.First char is OK [16:53:31]request: POST /json_proto HTTP/1.0 [16:53:31]Method: POST [16:53:31]URL: /json_proto [16:53:31]Method is POST - this is cgi request [16:53:31]url: /json_proto [16:53:31]query_string will be loaded in cgi processing [16:53:31]execute_cgi json_proto POST (null) [16:53:31]execute_cgi path=json_proto method=POST [16:53:31]POST find Content-Length [16:53:31]Host: 172.17.46.196:8080 [16:53:31]Content-Length: 623 [16:53:31]Content-Type: application/json [16:53:31] [16:53:31]POST finish read [16:53:31]Found Content-Length = 623 [16:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190012", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:31]execute_script... [16:53: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 : (3)190012", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:31]POST & json_proto [16:53:31]process_json_proto [16:53:31]json parsed OK: [16:53:31]protocol is kg_v1.0 [16:53:31]action value=close_receipt [16:53:31]process_action close_receipt [16:53:31]cmd_close_receipt [16:53:31]MH_GetDate [16:53:31]Write to MH i2c: F0 00 00 7B 03 6D [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: F0 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: F0 09 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: F0 09 00 7B 03 00 0C 27 C2 66 27 15 C2 66 35 [16:53:31]GetLastDocTimeStamp 1723999493 [16:53:31]current date 1724000012 [16:53:31]FM_GetShiftState [16:53:31]SAM_PROTO_GetShiftState [16:53:31]wFMCommunicate request_size=4 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 13 01 00 [16:53:31]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 0E 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 19 [16:53:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:53:31]wFMCommunicate OK [16:53:31]SAM_PROTO_GetShiftState done [16:53:31]FM_GetShiftState done [16:53:31]opened in 1723939759 [16:53:31]opened+sec_in_day 1724026159 [16:53:31]quantity*price = 14000 [16:53:31]sum+1 = 14001 [16:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 101 18.08.2024 16:53 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49835 ФПД: 256032148794345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165332&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49835&fm=256032148794345&tin=02508201610067®Number=0000000000092546&sum=14000 0 [16:53:32]StoreToDocumentArchive [16:53:32]shift 466 fd 49835 [16:53:32]save to /storage/0466/doc_00049835 [16:53:32]save last doc name /storage/0466/doc_00049835 to /storage/kkm_last_doc_name [16:53:32]save OK [16:53:32]Clear old archive folders... [16:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:53:32]tlvbuf is 00FD4930 [16:53:32]SAM_PROTO_ClearQueue [16:53:32]wFMCommunicate request_size=4 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 09 00 00 [16:53:32]Write to MH i2c: E2 08 00 89 03 80 09 00 00 00 00 00 00 FE [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [16:53:32]RAPDU: 90 00 [16:53:32]wFMCommunicate OK [16:53:32]SAM_PROTO_ClearQueue done [16:53:32]KKMCreateOFDPacket [16:53:32]OFDProtocolAddRootSTLVToBuf [16:53:32]FM_MakeSignedData [16:53:32]FM_MakeSignedData [16:53:32]SAM_PROTO_SignData [16:53:32]wFMCommunicate request_size=4 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 0D 01 02 [16:53:32]Write to MH i2c: E2 08 00 8A 03 80 0D 01 02 00 00 00 00 06 [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [16:53:32]RAPDU: 90 00 [16:53:32]wFMCommunicate OK [16:53:32]wFMCommunicate request_size=255 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 27 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [16:53:32]Write to MH i2c: E2 02 01 8B 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 27 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 2A [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:33]Read from MH i2c: E2 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 03 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [16:53:33]RAPDU: 90 00 [16:53:33]wFMCommunicate OK [16:53:33]wFMCommunicate request_size=34 [16:53:33]MH_SAM_APDU [16:53:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C2 00 00 35 04 06 00 E8 DC 21 47 AB E9 [16:53:33]Write to MH i2c: E2 25 00 8C 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C2 00 00 35 04 06 00 E8 DC 21 47 AB E9 00 00 EF [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:33]Read from MH i2c: E2 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 03 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [16:53:33]RAPDU: 90 00 [16:53:33]wFMCommunicate OK [16:53:33]wFMCommunicate request_size=4 [16:53:33]MH_SAM_APDU [16:53:33]CAPDU: 80 0D 03 02 [16:53:33]Write to MH i2c: E2 08 00 8D 03 80 0D 03 02 00 00 00 00 0B [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:33]Read from MH i2c: E2 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 0B 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 0B 00 8D 03 00 57 ED 7B B1 49 BB 27 E0 90 00 87 [16:53:33]RAPDU: 57 ED 7B B1 49 BB 27 E0 90 00 [16:53:33]wFMCommunicate OK [16:53:33]SAM_PROTO_SignData done [16:53:33]FM_MakeSignedData done [16:53:33]CreateOFDProtocolMessage [16:53:33]wFMCommunicate request_size=4 [16:53:33]MH_SAM_APDU [16:53:33]CAPDU: 80 11 00 00 [16:53:33]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:33]Read from MH i2c: E2 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 17 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 56 [16:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:53:33]wFMCommunicate OK [16:53:33]CreateOFDProtocolMessage done [16:53:33]OFDSenderStorePacket 49835 [16:53:33]StoreOFDPacket docnum=49835 [16:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 8B D8 1F 01 25 0C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 27 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C2 00 00 35 04 06 00 E8 DC 21 47 AB E9 57 ED 7B B1 49 BB 27 E0 [16:53:33]CheckFolder [16:53:33]dirname=/storage/ofd_packets [16:53:33]CheckFolder done [16:53:33]ProducePacketName [16:53:33]name=ofd_packets/00049835 [16:53:33]NVStorageSaveData ofd_packets/00049835 [16:53:33]File name is /storage/ofd_packets/00049835 [16:53:33]Write 325 bytes [16:53:33]NVStorageSaveData done [16:53:33]OFDSenderStorePacket done [16:53:33]KKMCreateOFDPacket done [16:53:33]NVStorageSaveData kkm_last_timestamp [16:53:33]File name is /storage/kkm_last_timestamp [16:53:33]Write 4 bytes [16:53:33]NVStorageSaveData done [16:53:33]ExternCall_PrintAddStr [16:53:33]wPrintStart [16:53:33]Write to MH i2c: 01 00 00 8F 03 92 [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [16:53:33]RasterBufferAndPrint [16:53:33]line Счет N : (3)190012 [16:53:33]line ИНН: 02508201610067 [16:53:33]line Контрольно-Кассовый Чек [16:53:33]line ПРОДАЖА [16:53:33]line Товар: 48743587 [16:53:33]line Сигареты Winston XStyle Silver [16:53:33]line 1.000 * 140.00 [16:53:33]line = 140.00 [16:53:33]line НДС 12% НСП 1% [16:53:33]line > о реализуемом товаре [16:53:33]line ИТОГО: 140.00 [16:53:33]line НСП 1% : 1.24 [16:53:33]line НДС 12% : 14.87 [16:53:33]line Наличными: 140.00 [16:53:33]line Безнал.: 0.00 [16:53:33]line Место: АЗС № 95 "Партнер Нефть" [16:53:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:53:33]line СНО: Общий режим [16:53:33]line Чек 101 18.08.2024 16:53 [16:53:33]line Смена: 466 ФФД: 1.0 [16:53:33]line ЗНМ: 0300000078 [16:53:33]line РНМ: 0000000000092546 [16:53:33]line Версия ККМ: 001 [16:53:33]line ФМ: 0000000000871800 [16:53:33]line ФД: 49835 [16:53:33]line ФПД: 256032148794345 [16:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165332&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49835&fm=256032148794345&tin=02508201610067®Number=0000000000092546&sum=14000 [16:53:33]OFD Sender: Processing packet 49835 [packets to send 21, broken 20] [16:53:33]ProducePacketName [16:53:33]name=ofd_packets/00049835 [16:53:33]OFD Sender: To server: pG, [16:53:33]CommunicateWithHost lk.salyk.kg:30040 [16:53:33]ConnectInit lk.salyk.kg [16:53:33]line 0 [16:53:33]written 0, free lines is 4095 [16:53:33]Connected sock=10 [16:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 8B D8 1F 01 25 0C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 27 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C2 00 00 35 04 06 00 E8 DC 21 47 AB E9 57 ED 7B B1 49 BB 27 E0 [16:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 16 EA 47 00 27 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AB C2 00 00 F4 03 04 00 81 D1 C1 66 B6 04 01 00 00 64 8B 93 36 59 F0 53 D1 [16:53:33]CommunicateWithHost err = 0 [16:53:33]CheckOFDResponse [16:53:33]1017 (14) - 77093643461234 [16:53:33]1041 (16) - 0000000000871800 [16:53:33]1040 (4) - 49835 [16:53:33]1012 (4) - 18.08.2024 10:48 [16:53:33]1206 (1) - 0 [16:53:33]OFD Sender: Remove packet 49835 [16:53:33]ProducePacketName [16:53:33]name=ofd_packets/00049835 [16:53:33]NVStorageDeleteData [16:53:33]Write to MH i2c: 01 00 00 B8 03 BB [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 E6 0C B4 [16:53:33]RasterBufferAndPrint [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]written 0, free lines is 3308 [16:53:34]MH_Cut [16:53:34]Write to MH i2c: D1 01 00 BF 03 01 94 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 01 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: D1 01 00 BF 03 00 93 [16:53:34]Write to MH i2c: 01 00 00 C0 03 C3 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]OFD Sender: No OFD packet to send [16:53:34]*** Cut start [16:53:34]*** Purtial cut [16:53:34]*** Stage 1: CUTSNS_PIN = 1 [16:53:35]Read from MH i2c: 01 [16:53:35]MH_I2C_Read... [16:53:35]*** Stop cut motor [16:53:35]*** Cut end [16:53:35]Read from MH i2c: 01 07 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 FF 0F D8 [16:53:35]process_action close_receipt done [16:53:35]requested_data is exist [16:53:35]produce_requested_data [16:53:35]requested_item fm.sn is exist - process it [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 11 00 00 [16:53:35]Write to MH i2c: E2 08 00 C1 03 80 11 00 00 00 00 00 00 3E [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 17 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 17 00 C1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [16:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:53:35]wFMCommunicate OK [16:53:35]requested_item fd.num is exist - process it [16:53:35]SAM_PROTO_GetFieldsCounters [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 00 00 [16:53:35]Write to MH i2c: E2 08 00 C2 03 80 13 00 00 00 00 00 00 41 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 C2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [16:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetFieldsCounters done [16:53:35]requested_item shift.num is exist - process it [16:53:35]requested_item shift.opened is exist - process it [16:53:35]req_shift_opened [16:53:35]FM_GetShiftState [16:53:35]SAM_PROTO_GetShiftState [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 01 00 [16:53:35]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 60 [16:53:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetShiftState done [16:53:35]FM_GetShiftState done [16:53:35]req_shift_opened done [16:53:35]requested_item shift.open_date is exist - process it [16:53:35]req_shift_open_date [16:53:35]req_shift_open_date done [16:53:35]produce_requested_data done [16:53:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49835,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [16:53:35]process_action_free close_receipt [16:53:35]json_value_free [16:53:35]json_value_free done [16:53:35]process_json_proto returns [16:53:35]Send response to host [16:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49835,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [16:53:35]free response buf [16:53:35]execute_script done [16:53:35]execute_script returns [16:53:35]free content buf [16:53:35]Sock 7.Close socket [16:53:35]Sock 7.Thread stoped [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:40]accept exits with 9 [17:07:40]New connection [17:07:40]New thread 3067198820 created [17:07:40]Thread 3067055460 joined [17:07:40]Waiting for new connection... [17:07:40] Sock 9.Parse request [17:07:40]Sock 9.Check first char [17:07:40]Sock 9.First char is OK [17:07:40]request: POST /json_proto HTTP/1.0 [17:07:40]Method: POST [17:07:40]URL: /json_proto [17:07:40]Method is POST - this is cgi request [17:07:40]url: /json_proto [17:07:40]query_string will be loaded in cgi processing [17:07:40]execute_cgi json_proto POST (null) [17:07:40]execute_cgi path=json_proto method=POST [17:07:40]POST find Content-Length [17:07:40]Host: 172.17.46.196:8080 [17:07:40]Content-Length: 663 [17:07:40]Content-Type: application/json [17:07:40] [17:07:40]POST finish read [17:07:40]Found Content-Length = 663 [17:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190013", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:40]execute_script... [17:07: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 : (3)190013", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:40]POST & json_proto [17:07:40]process_json_proto [17:07:40]json parsed OK: [17:07:40]protocol is kg_v1.0 [17:07:40]action value=close_receipt [17:07:40]process_action close_receipt [17:07:40]cmd_close_receipt [17:07:40]MH_GetDate [17:07:40]Write to MH i2c: F0 00 00 C4 03 B6 [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 09 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 09 00 C4 03 00 5D 2A C2 66 27 15 C2 66 D2 [17:07:40]GetLastDocTimeStamp 1724000012 [17:07:40]current date 1724000861 [17:07:40]FM_GetShiftState [17:07:40]SAM_PROTO_GetShiftState [17:07:40]wFMCommunicate request_size=4 [17:07:40]MH_SAM_APDU [17:07:40]CAPDU: 80 13 01 00 [17:07:40]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:40]Read from MH i2c: E2 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 62 [17:07:40]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:07:40]wFMCommunicate OK [17:07:40]SAM_PROTO_GetShiftState done [17:07:40]FM_GetShiftState done [17:07:40]opened in 1723939759 [17:07:40]opened+sec_in_day 1724026159 [17:07:40]quantity*price = 15500 [17:07:40]sum+1 = 15501 [17:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 102 18.08.2024 17:07 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49836 ФПД: 157772339268584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49836&fm=157772339268584&tin=02508201610067®Number=0000000000092546&sum=15500 0 [17:07:41]StoreToDocumentArchive [17:07:41]shift 466 fd 49836 [17:07:41]save to /storage/0466/doc_00049836 [17:07:41]save last doc name /storage/0466/doc_00049836 to /storage/kkm_last_doc_name [17:07:41]save OK [17:07:41]Clear old archive folders... [17:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=287 [17:07:41]tlvbuf is 00FD4AE0 [17:07:41]SAM_PROTO_ClearQueue [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 09 00 00 [17:07:41]Write to MH i2c: E2 08 00 D2 03 80 09 00 00 00 00 00 00 47 [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]SAM_PROTO_ClearQueue done [17:07:41]KKMCreateOFDPacket [17:07:41]OFDProtocolAddRootSTLVToBuf [17:07:41]FM_MakeSignedData [17:07:41]FM_MakeSignedData [17:07:41]SAM_PROTO_SignData [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 0D 01 02 [17:07:41]Write to MH i2c: E2 08 00 D3 03 80 0D 01 02 00 00 00 00 4F [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]wFMCommunicate request_size=255 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5D 2A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [17:07:41]Write to MH i2c: E2 02 01 D4 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5D 2A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 85 [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 03 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [17:07:42]RAPDU: 90 00 [17:07:42]wFMCommunicate OK [17:07:42]wFMCommunicate request_size=46 [17:07:42]MH_SAM_APDU [17:07:42]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C2 00 00 35 04 06 00 8F 7E 3C 3C CB E8 [17:07:42]Write to MH i2c: E2 31 00 D5 03 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C2 00 00 35 04 06 00 8F 7E 3C 3C CB E8 00 00 7D [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 03 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [17:07:42]RAPDU: 90 00 [17:07:42]wFMCommunicate OK [17:07:42]wFMCommunicate request_size=4 [17:07:42]MH_SAM_APDU [17:07:42]CAPDU: 80 0D 03 02 [17:07:42]Write to MH i2c: E2 08 00 D6 03 80 0D 03 02 00 00 00 00 54 [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 0B 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 0B 00 D6 03 00 23 EF 14 7E 93 B1 6E 8B 90 00 36 [17:07:42]RAPDU: 23 EF 14 7E 93 B1 6E 8B 90 00 [17:07:42]wFMCommunicate OK [17:07:42]SAM_PROTO_SignData done [17:07:42]FM_MakeSignedData done [17:07:42]CreateOFDProtocolMessage [17:07:42]wFMCommunicate request_size=4 [17:07:42]MH_SAM_APDU [17:07:42]CAPDU: 80 11 00 00 [17:07:42]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 17 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9F [17:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:07:42]wFMCommunicate OK [17:07:42]CreateOFDProtocolMessage done [17:07:42]OFDSenderStorePacket 49836 [17:07:42]StoreOFDPacket docnum=49836 [17:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 AF 90 2B 01 F9 69 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5D 2A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C2 00 00 35 04 06 00 8F 7E 3C 3C CB E8 23 EF 14 7E 93 B1 6E 8B [17:07:42]CheckFolder [17:07:42]dirname=/storage/ofd_packets [17:07:42]CheckFolder done [17:07:42]ProducePacketName [17:07:42]name=ofd_packets/00049836 [17:07:42]NVStorageSaveData ofd_packets/00049836 [17:07:42]File name is /storage/ofd_packets/00049836 [17:07:42]Write 337 bytes [17:07:42]NVStorageSaveData done [17:07:42]OFDSenderStorePacket done [17:07:42]KKMCreateOFDPacket done [17:07:42]NVStorageSaveData kkm_last_timestamp [17:07:42]File name is /storage/kkm_last_timestamp [17:07:42]Write 4 bytes [17:07:42]NVStorageSaveData done [17:07:42]ExternCall_PrintAddStr [17:07:42]wPrintStart [17:07:42]Write to MH i2c: 01 00 00 D8 03 DB [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [17:07:42]RasterBufferAndPrint [17:07:42]line Счет N : (3)190013 [17:07:42]line ИНН: 02508201610067 [17:07:42]line Контрольно-Кассовый Чек [17:07:42]line ПРОДАЖА [17:07:42]line Товар: 5449000176448 [17:07:42]line Сок Piko Pulpy апельсин ПЭТ 1л [17:07:42]line 1.000 * 155.00 [17:07:42]line = 155.00 [17:07:42]line НДС 12% НСП 1% [17:07:42]line > о реализуемом товаре [17:07:42]line ИТОГО: 155.00 [17:07:42]line НСП 1% : 1.37 [17:07:42]line НДС 12% : 16.46 [17:07:42]line Наличными: 155.00 [17:07:42]line Безнал.: 0.00 [17:07:42]line Место: АЗС № 95 "Партнер Нефть" [17:07:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:07:42]line СНО: Общий режим [17:07:42]line Чек 102 18.08.2024 17:07 [17:07:42]line Смена: 466 ФФД: 1.0 [17:07:42]line ЗНМ: 0300000078 [17:07:42]line РНМ: 0000000000092546 [17:07:42]line Версия ККМ: 001 [17:07:42]line ФМ: 0000000000871800 [17:07:42]line ФД: 49836 [17:07:42]line ФПД: 157772339268584 [17:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49836&fm=157772339268584&tin=02508201610067®Number=0000000000092546&sum=15500 [17:07:42]line 0 [17:07:42]OFD Sender: Processing packet 49836 [packets to send 21, broken 20] [17:07:42]ProducePacketName [17:07:42]name=ofd_packets/00049836 [17:07:42]OFD Sender: To server: pG, [17:07:42]CommunicateWithHost lk.salyk.kg:30040 [17:07:42]ConnectInit lk.salyk.kg [17:07:42]written 0, free lines is 4095 [17:07:42]Connected sock=10 [17:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 AF 90 2B 01 F9 69 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5D 2A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C2 00 00 35 04 06 00 8F 7E 3C 3C CB E8 23 EF 14 7E 93 B1 6E 8B [17:07:43]Write to MH i2c: 01 00 00 01 04 05 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 07 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 07 00 01 04 00 00 00 00 00 DF 0C F7 [17:07:43]RasterBufferAndPrint [17:07:43]line [17:07:43]line [17:07:43]line [17:07:43]line [17:07:43]line [17:07:43]written 0, free lines is 3303 [17:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 C6 47 00 85 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AC C2 00 00 F4 03 04 00 D2 D4 C1 66 B6 04 01 00 00 E3 E4 C8 BA 01 18 1D 4E [17:07:43]CommunicateWithHost err = 0 [17:07:43]CheckOFDResponse [17:07:43]1017 (14) - 77093643461234 [17:07:43]1041 (16) - 0000000000871800 [17:07:43]1040 (4) - 49836 [17:07:43]1012 (4) - 18.08.2024 11:02 [17:07:43]1206 (1) - 0 [17:07:43]OFD Sender: Remove packet 49836 [17:07:43]ProducePacketName [17:07:43]name=ofd_packets/00049836 [17:07:43]NVStorageDeleteData [17:07:43]MH_Cut [17:07:43]Write to MH i2c: D1 01 00 08 04 01 DE [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: D1 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: D1 01 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: D1 01 00 08 04 00 DD [17:07:43]Write to MH i2c: 01 00 00 09 04 0D [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]OFD Sender: No OFD packet to send [17:07:43]*** Cut start [17:07:43]*** Purtial cut [17:07:43]*** CUTSNS_PIN = 0 [17:07:44]*** Stage 1: CUTSNS_PIN = 1 [17:07:45]Read from MH i2c: 01 [17:07:45]MH_I2C_Read... [17:07:45]*** Stop cut motor [17:07:45]*** Cut end [17:07:45]Read from MH i2c: 01 07 00 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 FF 0F 22 [17:07:45]process_action close_receipt done [17:07:45]requested_data is exist [17:07:45]produce_requested_data [17:07:45]requested_item fm.sn is exist - process it [17:07:45]wFMCommunicate request_size=4 [17:07:45]MH_SAM_APDU [17:07:45]CAPDU: 80 11 00 00 [17:07:45]Write to MH i2c: E2 08 00 0A 04 80 11 00 00 00 00 00 00 88 [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:45]Read from MH i2c: E2 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: E2 17 00 [17:07:45]MH_I2C_Read... [17:07:45]Read from MH i2c: E2 17 00 0A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [17:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:07:45]wFMCommunicate OK [17:07:45]requested_item fd.num is exist - process it [17:07:45]SAM_PROTO_GetFieldsCounters [17:07:45]wFMCommunicate request_size=4 [17:07:45]MH_SAM_APDU [17:07:45]CAPDU: 80 13 00 00 [17:07:45]Write to MH i2c: E2 08 00 0B 04 80 13 00 00 00 00 00 00 8B [17:07:45]Write i2c OK [17:07:45]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 62 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 62 00 0B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetFieldsCounters done [17:07:46]requested_item shift.num is exist - process it [17:07:46]requested_item shift.opened is exist - process it [17:07:46]req_shift_opened [17:07:46]FM_GetShiftState [17:07:46]SAM_PROTO_GetShiftState [17:07:46]wFMCommunicate request_size=4 [17:07:46]MH_SAM_APDU [17:07:46]CAPDU: 80 13 01 00 [17:07:46]Write to MH i2c: E2 08 00 0C 04 80 13 01 00 00 00 00 00 8D [17:07:46]Write i2c OK [17:07:46]MH_I2C_Read... [17:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:46]Read from MH i2c: E2 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 [17:07:46]MH_I2C_Read... [17:07:46]Read from MH i2c: E2 0E 00 0C 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AA [17:07:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:07:46]wFMCommunicate OK [17:07:46]SAM_PROTO_GetShiftState done [17:07:46]FM_GetShiftState done [17:07:46]req_shift_opened done [17:07:46]requested_item shift.open_date is exist - process it [17:07:46]req_shift_open_date [17:07:46]req_shift_open_date done [17:07:46]produce_requested_data done [17:07:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49836,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:07:46]process_action_free close_receipt [17:07:46]json_value_free [17:07:46]json_value_free done [17:07:46]process_json_proto returns [17:07:46]Send response to host [17:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49836,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:07:46]free response buf [17:07:46]execute_script done [17:07:46]execute_script returns [17:07:46]free content buf [17:07:46]Sock 9.Close socket [17:07:46]Sock 9.Thread stoped [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:32]int [17:08:32]Write to MH i2c: 01 00 00 0D 04 11 [17:08:32]*** FLAG_PRN_KEY set [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 0D 04 00 08 00 00 00 FF 0F 2E [17:08:32]state=0 [17:08:32]Key pressed [17:08:32]Feed [17:08:32]Write to MH i2c: D8 00 00 0E 04 E9 [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D8 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D8 01 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D8 01 00 0E 04 00 EA [17:08:32]int [17:08:32]Write to MH i2c: 01 00 00 0F 04 13 [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 0F 04 00 48 00 00 00 3C 00 9E [17:08:32]state=2 [17:08:32]Key pressed [17:08:32]int [17:08:32]Write to MH i2c: 01 00 00 10 04 14 [17:08:32]*** FLAG_PRN_KEY reset [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 F5 0F 1F [17:08:32]state=2 [17:08:32]Stop feed [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:46]accept exits with 7 [17:13:46]New connection [17:13:46]New thread 3067055460 created [17:13:46]Thread 3067198820 joined [17:13:46]Waiting for new connection... [17:13:46] Sock 7.Parse request [17:13:46]Sock 7.Check first char [17:13:46]Sock 7.First char is OK [17:13:46]request: POST /json_proto HTTP/1.0 [17:13:46]Method: POST [17:13:46]URL: /json_proto [17:13:46]Method is POST - this is cgi request [17:13:46]url: /json_proto [17:13:46]query_string will be loaded in cgi processing [17:13:46]execute_cgi json_proto POST (null) [17:13:46]execute_cgi path=json_proto method=POST [17:13:46]POST find Content-Length [17:13:46]Host: 172.17.46.196:8080 [17:13:46]Content-Length: 810 [17:13:46]Content-Type: application/json [17:13:46] [17:13:46]POST finish read [17:13:46]Found Content-Length = 810 [17:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190014", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:46]execute_script... [17:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190014", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:46]POST & json_proto [17:13:46]process_json_proto [17:13:46]json parsed OK: [17:13:46]protocol is kg_v1.0 [17:13:46]action value=close_receipt [17:13:46]process_action close_receipt [17:13:46]cmd_close_receipt [17:13:46]MH_GetDate [17:13:46]Write to MH i2c: F0 00 00 11 04 04 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: F0 09 00 11 04 00 CB 2B C2 66 27 15 C2 66 8F [17:13:46]GetLastDocTimeStamp 1724000861 [17:13:46]current date 1724001227 [17:13:46]FM_GetShiftState [17:13:46]SAM_PROTO_GetShiftState [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 13 01 00 [17:13:46]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B0 [17:13:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_GetShiftState done [17:13:46]FM_GetShiftState done [17:13:46]opened in 1723939759 [17:13:46]opened+sec_in_day 1724026159 [17:13:46]quantity*price = 17000 [17:13:46]sum+1 = 17001 [17:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 103 18.08.2024 17:13 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49837 ФПД: 210417891712148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171347&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49837&fm=210417891712148&tin=02508201610067®Number=0000000000092546&sum=17000 0 [17:13:47]StoreToDocumentArchive [17:13:47]shift 466 fd 49837 [17:13:47]save to /storage/0466/doc_00049837 [17:13:47]save last doc name /storage/0466/doc_00049837 to /storage/kkm_last_doc_name [17:13:47]save OK [17:13:47]Clear old archive folders... [17:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=277 [17:13:47]tlvbuf is 00FC4A60 [17:13:47]SAM_PROTO_ClearQueue [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 09 00 00 [17:13:47]Write to MH i2c: E2 08 00 1F 04 80 09 00 00 00 00 00 00 95 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]SAM_PROTO_ClearQueue done [17:13:47]KKMCreateOFDPacket [17:13:47]OFDProtocolAddRootSTLVToBuf [17:13:47]FM_MakeSignedData [17:13:47]FM_MakeSignedData [17:13:47]SAM_PROTO_SignData [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 01 02 [17:13:47]Write to MH i2c: E2 08 00 20 04 80 0D 01 02 00 00 00 00 9D [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=255 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CB 2B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [17:13:47]Write to MH i2c: E2 02 01 21 04 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CB 2B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 25 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [17:13:47]RAPDU: 90 00 [17:13:47]wFMCommunicate OK [17:13:47]wFMCommunicate request_size=36 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C2 00 00 35 04 06 00 BF 5F BB B0 9C 94 [17:13:47]Write to MH i2c: E2 27 00 22 04 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C2 00 00 35 04 06 00 BF 5F BB B0 9C 94 00 00 E5 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [17:13:48]RAPDU: 90 00 [17:13:48]wFMCommunicate OK [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 0D 03 02 [17:13:48]Write to MH i2c: E2 08 00 23 04 80 0D 03 02 00 00 00 00 A2 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 0B 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 0B 00 23 04 00 77 ED 91 3A F4 41 46 25 90 00 72 [17:13:48]RAPDU: 77 ED 91 3A F4 41 46 25 90 00 [17:13:48]wFMCommunicate OK [17:13:48]SAM_PROTO_SignData done [17:13:48]FM_MakeSignedData done [17:13:48]CreateOFDProtocolMessage [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 11 00 00 [17:13:48]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 ED [17:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:13:48]wFMCommunicate OK [17:13:48]CreateOFDProtocolMessage done [17:13:48]OFDSenderStorePacket 49837 [17:13:48]StoreOFDPacket docnum=49837 [17:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 D4 26 21 01 C7 CF 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CB 2B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C2 00 00 35 04 06 00 BF 5F BB B0 9C 94 77 ED 91 3A F4 41 46 25 [17:13:48]CheckFolder [17:13:48]dirname=/storage/ofd_packets [17:13:48]CheckFolder done [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00049837 [17:13:48]NVStorageSaveData ofd_packets/00049837 [17:13:48]File name is /storage/ofd_packets/00049837 [17:13:48]Write 327 bytes [17:13:48]NVStorageSaveData done [17:13:48]OFDSenderStorePacket done [17:13:48]KKMCreateOFDPacket done [17:13:48]NVStorageSaveData kkm_last_timestamp [17:13:48]File name is /storage/kkm_last_timestamp [17:13:48]Write 4 bytes [17:13:48]NVStorageSaveData done [17:13:48]ExternCall_PrintAddStr [17:13:48]wPrintStart [17:13:48]Write to MH i2c: 01 00 00 25 04 29 [17:13:48]OFD Sender: Processing packet 49837 [packets to send 21, broken 20] [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00049837 [17:13:48]OFD Sender: To server: pG, [17:13:48]CommunicateWithHost lk.salyk.kg:30040 [17:13:48]ConnectInit lk.salyk.kg [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [17:13:48]RasterBufferAndPrint [17:13:48]line Счет N : (3)190014 [17:13:48]line ИНН: 02508201610067 [17:13:48]line Контрольно-Кассовый Чек [17:13:48]line ПРОДАЖА [17:13:48]line Товар: 8901086040008 [17:13:48]line Жид/ст ПН летняя 4,5л [17:13:48]line 1.000 * 170.00 [17:13:48]line = 170.00 [17:13:48]line НДС 12% НСП 1% [17:13:48]line > о реализуемом товаре [17:13:48]line ИТОГО: 170.00 [17:13:48]line НСП 1% : 1.50 [17:13:48]line НДС 12% : 18.05 [17:13:48]line Наличными: 0.00 [17:13:48]line Безнал.: 170.00 [17:13:48]line Место: АЗС № 95 "Партнер Нефть" [17:13:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:13:48]line СНО: Общий режим [17:13:48]line Чек 103 18.08.2024 17:13 [17:13:48]line Смена: 466 ФФД: 1.0 [17:13:48]line ЗНМ: 0300000078 [17:13:48]line РНМ: 0000000000092546 [17:13:48]line Версия ККМ: 001 [17:13:48]line Платежная система: O! деньги [17:13:48]line ФМ: 0000000000871800 [17:13:48]line ФД: 49837 [17:13:48]line ФПД: 210417891712148 [17:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171347&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49837&fm=210417891712148&tin=02508201610067®Number=0000000000092546&sum=17000 [17:13:48]line 0 [17:13:48]written 0, free lines is 4095 [17:13:48]Connected sock=10 [17:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 D4 26 21 01 C7 CF 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CB 2B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C2 00 00 35 04 06 00 BF 5F BB B0 9C 94 77 ED 91 3A F4 41 46 25 [17:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 58 E3 47 00 41 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AD C2 00 00 F4 03 04 00 40 D6 C1 66 B6 04 01 00 00 23 78 54 13 03 8B 08 79 [17:13:48]CommunicateWithHost err = 0 [17:13:48]CheckOFDResponse [17:13:48]1017 (14) - 77093643461234 [17:13:48]1041 (16) - 0000000000871800 [17:13:48]1040 (4) - 49837 [17:13:48]1012 (4) - 18.08.2024 11:08 [17:13:48]1206 (1) - 0 [17:13:48]OFD Sender: Remove packet 49837 [17:13:48]ProducePacketName [17:13:48]name=ofd_packets/00049837 [17:13:48]NVStorageDeleteData [17:13:48]Write to MH i2c: 01 00 00 4F 04 53 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 CF 0C 35 [17:13:48]RasterBufferAndPrint [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]line [17:13:48]written 0, free lines is 3285 [17:13:48]MH_Cut [17:13:48]Write to MH i2c: D1 01 00 56 04 01 2C [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: D1 01 00 56 04 00 2B [17:13:48]Write to MH i2c: 01 00 00 57 04 5B [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:49]OFD Sender: No OFD packet to send [17:13:49]*** Cut start [17:13:49]*** Purtial cut [17:13:49]*** Stage 1: CUTSNS_PIN = 1 [17:13:50]Read from MH i2c: 01 [17:13:50]MH_I2C_Read... [17:13:50]*** Stop cut motor [17:13:50]*** Cut end [17:13:50]Read from MH i2c: 01 07 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: 01 07 00 57 04 00 00 00 00 00 FF 0F 70 [17:13:50]process_action close_receipt done [17:13:50]requested_data is exist [17:13:50]produce_requested_data [17:13:50]requested_item fm.sn is exist - process it [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 11 00 00 [17:13:50]Write to MH i2c: E2 08 00 58 04 80 11 00 00 00 00 00 00 D6 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 58 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 21 [17:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:13:50]wFMCommunicate OK [17:13:50]requested_item fd.num is exist - process it [17:13:50]SAM_PROTO_GetFieldsCounters [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 00 00 [17:13:50]Write to MH i2c: E2 08 00 59 04 80 13 00 00 00 00 00 00 D9 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 62 00 59 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetFieldsCounters done [17:13:50]requested_item shift.num is exist - process it [17:13:50]requested_item shift.opened is exist - process it [17:13:50]req_shift_opened [17:13:50]FM_GetShiftState [17:13:50]SAM_PROTO_GetShiftState [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 01 00 [17:13:50]Write to MH i2c: E2 08 00 5A 04 80 13 01 00 00 00 00 00 DB [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 5A 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F8 [17:13:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetShiftState done [17:13:50]FM_GetShiftState done [17:13:50]req_shift_opened done [17:13:50]requested_item shift.open_date is exist - process it [17:13:50]req_shift_open_date [17:13:50]req_shift_open_date done [17:13:50]produce_requested_data done [17:13:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49837,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:13:50]process_action_free close_receipt [17:13:50]json_value_free [17:13:50]json_value_free done [17:13:50]process_json_proto returns [17:13:50]Send response to host [17:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49837,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:13:50]free response buf [17:13:50]execute_script done [17:13:50]execute_script returns [17:13:50]free content buf [17:13:50]Sock 7.Close socket [17:13:50]Sock 7.Thread stoped [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:37]accept exits with 9 [17:29:37]New connection [17:29:37]New thread 3067198820 created [17:29:37]Thread 3067055460 joined [17:29:37]Waiting for new connection... [17:29:37] Sock 9.Parse request [17:29:37]Sock 9.Check first char [17:29:37]Sock 9.First char is OK [17:29:37]request: POST /json_proto HTTP/1.0 [17:29:37]Method: POST [17:29:37]URL: /json_proto [17:29:37]Method is POST - this is cgi request [17:29:37]url: /json_proto [17:29:37]query_string will be loaded in cgi processing [17:29:37]execute_cgi json_proto POST (null) [17:29:37]execute_cgi path=json_proto method=POST [17:29:37]POST find Content-Length [17:29:37]Host: 172.17.46.196:8080 [17:29:37]Content-Length: 780 [17:29:37]Content-Type: application/json [17:29:37] [17:29:37]POST finish read [17:29:37]Found Content-Length = 780 [17:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190015", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:37]execute_script... [17:29: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 : (3)190015", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:37]POST & json_proto [17:29:37]process_json_proto [17:29:37]json parsed OK: [17:29:37]protocol is kg_v1.0 [17:29:37]action value=close_receipt [17:29:37]process_action close_receipt [17:29:37]cmd_close_receipt [17:29:37]MH_GetDate [17:29:37]Write to MH i2c: F0 00 00 5B 04 4E [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 09 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: F0 09 00 5B 04 00 82 2F C2 66 27 15 C2 66 94 [17:29:37]GetLastDocTimeStamp 1724001227 [17:29:37]current date 1724002178 [17:29:37]FM_GetShiftState [17:29:37]SAM_PROTO_GetShiftState [17:29:37]wFMCommunicate request_size=4 [17:29:37]MH_SAM_APDU [17:29:37]CAPDU: 80 13 01 00 [17:29:37]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [17:29:37]Write i2c OK [17:29:37]MH_I2C_Read... [17:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:37]Read from MH i2c: E2 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 0E 00 [17:29:37]MH_I2C_Read... [17:29:37]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FA [17:29:37]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:29:37]wFMCommunicate OK [17:29:37]SAM_PROTO_GetShiftState done [17:29:37]FM_GetShiftState done [17:29:37]opened in 1723939759 [17:29:37]opened+sec_in_day 1724026159 [17:29:37]quantity*price = 28000 [17:29:37]sum+1 = 28001 [17:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 104 18.08.2024 17:29 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49838 ФПД: 22197323863214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49838&fm=22197323863214&tin=02508201610067®Number=0000000000092546&sum=28000 0 [17:29:38]StoreToDocumentArchive [17:29:38]shift 466 fd 49838 [17:29:38]save to /storage/0466/doc_00049838 [17:29:38]save last doc name /storage/0466/doc_00049838 to /storage/kkm_last_doc_name [17:29:38]save OK [17:29:38]Clear old archive folders... [17:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:29:38]tlvbuf is 00FD0B90 [17:29:38]SAM_PROTO_ClearQueue [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 09 00 00 [17:29:38]Write to MH i2c: E2 08 00 69 04 80 09 00 00 00 00 00 00 DF [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [17:29:38]RAPDU: 90 00 [17:29:38]wFMCommunicate OK [17:29:38]SAM_PROTO_ClearQueue done [17:29:38]KKMCreateOFDPacket [17:29:38]OFDProtocolAddRootSTLVToBuf [17:29:38]FM_MakeSignedData [17:29:38]FM_MakeSignedData [17:29:38]SAM_PROTO_SignData [17:29:38]wFMCommunicate request_size=4 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 0D 01 02 [17:29:38]Write to MH i2c: E2 08 00 6A 04 80 0D 01 02 00 00 00 00 E7 [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:38]Read from MH i2c: E2 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 [17:29:38]MH_I2C_Read... [17:29:38]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [17:29:38]RAPDU: 90 00 [17:29:38]wFMCommunicate OK [17:29:38]wFMCommunicate request_size=255 [17:29:38]MH_SAM_APDU [17:29:38]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 82 2F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:29:38]Write to MH i2c: E2 02 01 6B 04 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 82 2F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 71 [17:29:38]Write i2c OK [17:29:38]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [17:29:39]RAPDU: 90 00 [17:29:39]wFMCommunicate OK [17:29:39]wFMCommunicate request_size=30 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 AE C2 00 00 35 04 06 00 14 30 37 9A 94 AE [17:29:39]Write to MH i2c: E2 21 00 6C 04 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 AE C2 00 00 35 04 06 00 14 30 37 9A 94 AE 00 00 A2 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [17:29:39]RAPDU: 90 00 [17:29:39]wFMCommunicate OK [17:29:39]wFMCommunicate request_size=4 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 0D 03 02 [17:29:39]Write to MH i2c: E2 08 00 6D 04 80 0D 03 02 00 00 00 00 EC [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 0B 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 0B 00 6D 04 00 2B EA D4 80 09 20 D6 D5 90 00 2A [17:29:39]RAPDU: 2B EA D4 80 09 20 D6 D5 90 00 [17:29:39]wFMCommunicate OK [17:29:39]SAM_PROTO_SignData done [17:29:39]FM_MakeSignedData done [17:29:39]CreateOFDProtocolMessage [17:29:39]wFMCommunicate request_size=4 [17:29:39]MH_SAM_APDU [17:29:39]CAPDU: 80 11 00 00 [17:29:39]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:39]Read from MH i2c: E2 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 17 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 37 [17:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:29:39]wFMCommunicate OK [17:29:39]CreateOFDProtocolMessage done [17:29:39]OFDSenderStorePacket 49838 [17:29:39]StoreOFDPacket docnum=49838 [17:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 4E 9E 1B 01 65 11 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 82 2F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AE C2 00 00 35 04 06 00 14 30 37 9A 94 AE 2B EA D4 80 09 20 D6 D5 [17:29:39]CheckFolder [17:29:39]dirname=/storage/ofd_packets [17:29:39]CheckFolder done [17:29:39]ProducePacketName [17:29:39]name=ofd_packets/00049838 [17:29:39]NVStorageSaveData ofd_packets/00049838 [17:29:39]File name is /storage/ofd_packets/00049838 [17:29:39]Write 321 bytes [17:29:39]NVStorageSaveData done [17:29:39]OFDSenderStorePacket done [17:29:39]KKMCreateOFDPacket done [17:29:39]NVStorageSaveData kkm_last_timestamp [17:29:39]File name is /storage/kkm_last_timestamp [17:29:39]Write 4 bytes [17:29:39]NVStorageSaveData done [17:29:39]ExternCall_PrintAddStr [17:29:39]wPrintStart [17:29:39]Write to MH i2c: 01 00 00 6F 04 73 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [17:29:39]RasterBufferAndPrint [17:29:39]line Счет N : (3)190015 [17:29:39]line ИНН: 02508201610067 [17:29:39]line Контрольно-Кассовый Чек [17:29:39]line ПРОДАЖА [17:29:39]line Товар: 47802995 [17:29:39]line Сигареты Winston XS Silver [17:29:39]line 2.000 * 140.00 [17:29:39]line = 280.00 [17:29:39]line НДС 12% НСП 1% [17:29:39]line > о реализуемом товаре [17:29:39]line ИТОГО: 280.00 [17:29:39]line НСП 1% : 2.48 [17:29:39]line НДС 12% : 29.73 [17:29:39]line Наличными: 0.00 [17:29:39]line Безнал.: 280.00 [17:29:39]line Место: АЗС № 95 "Партнер Нефть" [17:29:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:29:39]line СНО: Общий режим [17:29:39]line Чек 104 18.08.2024 17:29 [17:29:39]line Смена: 466 ФФД: 1.0 [17:29:39]line ЗНМ: 0300000078 [17:29:39]line РНМ: 0000000000092546 [17:29:39]line Версия ККМ: 001 [17:29:39]line Платежная система: O! деньги [17:29:39]line ФМ: 0000000000871800 [17:29:39]line ФД: 49838 [17:29:39]line ФПД: 22197323863214 [17:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49838&fm=22197323863214&tin=02508201610067®Number=0000000000092546&sum=28000 [17:29:39]line 0 [17:29:39]written 0, free lines is 4095 [17:29:39]OFD Sender: Processing packet 49838 [packets to send 21, broken 20] [17:29:39]ProducePacketName [17:29:39]name=ofd_packets/00049838 [17:29:39]OFD Sender: To server: pG, [17:29:39]CommunicateWithHost lk.salyk.kg:30040 [17:29:39]ConnectInit lk.salyk.kg [17:29:39]Connected sock=11 [17:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 4E 9E 1B 01 65 11 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 82 2F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AE C2 00 00 35 04 06 00 14 30 37 9A 94 AE 2B EA D4 80 09 20 D6 D5 [17:29:39]Write to MH i2c: 01 00 00 99 04 9D [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 CF 0C 7F [17:29:39]RasterBufferAndPrint [17:29:39]line [17:29:39]line [17:29:39]line [17:29:39]line [17:29:39]line [17:29:39]written 0, free lines is 3285 [17:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4D 41 47 00 D3 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AE C2 00 00 F4 03 04 00 F7 D9 C1 66 B6 04 01 00 00 92 D7 E4 7D D5 E6 4E 9C [17:29:39]CommunicateWithHost err = 0 [17:29:39]CheckOFDResponse [17:29:39]1017 (14) - 77093643461234 [17:29:39]1041 (16) - 0000000000871800 [17:29:39]1040 (4) - 49838 [17:29:39]1012 (4) - 18.08.2024 11:24 [17:29:39]1206 (1) - 0 [17:29:39]OFD Sender: Remove packet 49838 [17:29:39]ProducePacketName [17:29:39]name=ofd_packets/00049838 [17:29:39]NVStorageDeleteData [17:29:39]MH_Cut [17:29:39]Write to MH i2c: D1 01 00 A0 04 01 76 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: D1 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: D1 01 00 [17:29:39]MH_I2C_Read... [17:29:39]Read from MH i2c: D1 01 00 A0 04 00 75 [17:29:39]Write to MH i2c: 01 00 00 A1 04 A5 [17:29:39]Write i2c OK [17:29:39]MH_I2C_Read... [17:29:40]OFD Sender: No OFD packet to send [17:29:40]*** Cut start [17:29:40]*** Purtial cut [17:29:40]*** CUTSNS_PIN = 0 [17:29:40]*** Stage 1: CUTSNS_PIN = 1 [17:29:42]Read from MH i2c: 01 [17:29:42]MH_I2C_Read... [17:29:42]*** Stop cut motor [17:29:42]*** Cut end [17:29:42]Read from MH i2c: 01 07 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [17:29:42]process_action close_receipt done [17:29:42]requested_data is exist [17:29:42]produce_requested_data [17:29:42]requested_item fm.sn is exist - process it [17:29:42]wFMCommunicate request_size=4 [17:29:42]MH_SAM_APDU [17:29:42]CAPDU: 80 11 00 00 [17:29:42]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:42]Read from MH i2c: E2 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 17 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [17:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:29:42]wFMCommunicate OK [17:29:42]requested_item fd.num is exist - process it [17:29:42]SAM_PROTO_GetFieldsCounters [17:29:42]wFMCommunicate request_size=4 [17:29:42]MH_SAM_APDU [17:29:42]CAPDU: 80 13 00 00 [17:29:42]Write to MH i2c: E2 08 00 A3 04 80 13 00 00 00 00 00 00 23 [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:42]Read from MH i2c: E2 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 62 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 62 00 A3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [17:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:42]wFMCommunicate OK [17:29:42]SAM_PROTO_GetFieldsCounters done [17:29:42]requested_item shift.num is exist - process it [17:29:42]requested_item shift.opened is exist - process it [17:29:42]req_shift_opened [17:29:42]FM_GetShiftState [17:29:42]SAM_PROTO_GetShiftState [17:29:42]wFMCommunicate request_size=4 [17:29:42]MH_SAM_APDU [17:29:42]CAPDU: 80 13 01 00 [17:29:42]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [17:29:42]Write i2c OK [17:29:42]MH_I2C_Read... [17:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:42]Read from MH i2c: E2 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 0E 00 [17:29:42]MH_I2C_Read... [17:29:42]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 42 [17:29:42]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:29:42]wFMCommunicate OK [17:29:42]SAM_PROTO_GetShiftState done [17:29:42]FM_GetShiftState done [17:29:42]req_shift_opened done [17:29:42]requested_item shift.open_date is exist - process it [17:29:42]req_shift_open_date [17:29:42]req_shift_open_date done [17:29:42]produce_requested_data done [17:29:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49838,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:29:42]process_action_free close_receipt [17:29:42]json_value_free [17:29:42]json_value_free done [17:29:42]process_json_proto returns [17:29:42]Send response to host [17:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49838,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:29:42]free response buf [17:29:42]execute_script done [17:29:42]execute_script returns [17:29:42]free content buf [17:29:42]Sock 9.Close socket [17:29:42]Sock 9.Thread stoped [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:16]accept exits with 7 [17:39:16]New connection [17:39:16]New thread 3067055460 created [17:39:16]Thread 3067198820 joined [17:39:16]Waiting for new connection... [17:39:16] Sock 7.Parse request [17:39:16]Sock 7.Check first char [17:39:16]Sock 7.First char is OK [17:39:16]request: POST /json_proto HTTP/1.0 [17:39:16]Method: POST [17:39:16]URL: /json_proto [17:39:16]Method is POST - this is cgi request [17:39:16]url: /json_proto [17:39:16]query_string will be loaded in cgi processing [17:39:16]execute_cgi json_proto POST (null) [17:39:16]execute_cgi path=json_proto method=POST [17:39:16]POST find Content-Length [17:39:16]Host: 172.17.46.196:8080 [17:39:16]Content-Length: 621 [17:39:16]Content-Type: application/json [17:39:16] [17:39:16]POST finish read [17:39:16]Found Content-Length = 621 [17:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190016", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:16]execute_script... [17:39:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190016", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:16]POST & json_proto [17:39:16]process_json_proto [17:39:16]json parsed OK: [17:39:16]protocol is kg_v1.0 [17:39:16]action value=close_receipt [17:39:16]process_action close_receipt [17:39:16]cmd_close_receipt [17:39:16]MH_GetDate [17:39:16]Write to MH i2c: F0 00 00 A5 04 98 [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: F0 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: F0 09 00 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: F0 09 00 A5 04 00 C5 31 C2 66 27 15 C2 66 23 [17:39:16]GetLastDocTimeStamp 1724002178 [17:39:16]current date 1724002757 [17:39:16]FM_GetShiftState [17:39:16]SAM_PROTO_GetShiftState [17:39:16]wFMCommunicate request_size=4 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 13 01 00 [17:39:16]Write to MH i2c: E2 08 00 A6 04 80 13 01 00 00 00 00 00 27 [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:16]Read from MH i2c: E2 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 0E 00 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 0E 00 A6 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 44 [17:39:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:39:16]wFMCommunicate OK [17:39:16]SAM_PROTO_GetShiftState done [17:39:16]FM_GetShiftState done [17:39:16]opened in 1723939759 [17:39:16]opened+sec_in_day 1724026159 [17:39:16]quantity*price = 14000 [17:39:16]sum+1 = 14001 [17:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 105 18.08.2024 17:39 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49839 ФПД: 43597299185169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49839&fm=43597299185169&tin=02508201610067®Number=0000000000092546&sum=14000 0 [17:39:17]StoreToDocumentArchive [17:39:17]shift 466 fd 49839 [17:39:17]save to /storage/0466/doc_00049839 [17:39:17]save last doc name /storage/0466/doc_00049839 to /storage/kkm_last_doc_name [17:39:17]save OK [17:39:17]Clear old archive folders... [17:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:39:17]tlvbuf is 00FD3F60 [17:39:17]SAM_PROTO_ClearQueue [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 09 00 00 [17:39:17]Write to MH i2c: E2 08 00 B3 04 80 09 00 00 00 00 00 00 29 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]SAM_PROTO_ClearQueue done [17:39:17]KKMCreateOFDPacket [17:39:17]OFDProtocolAddRootSTLVToBuf [17:39:17]FM_MakeSignedData [17:39:17]FM_MakeSignedData [17:39:17]SAM_PROTO_SignData [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 01 02 [17:39:17]Write to MH i2c: E2 08 00 B4 04 80 0D 01 02 00 00 00 00 31 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=255 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C5 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [17:39:17]Write to MH i2c: E2 02 01 B5 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C5 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 81 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:18]Read from MH i2c: E2 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 03 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [17:39:18]RAPDU: 90 00 [17:39:18]wFMCommunicate OK [17:39:18]wFMCommunicate request_size=32 [17:39:18]MH_SAM_APDU [17:39:18]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C2 00 00 35 04 06 00 27 A6 C9 87 F6 11 [17:39:18]Write to MH i2c: E2 23 00 B6 04 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C2 00 00 35 04 06 00 27 A6 C9 87 F6 11 00 00 1E [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:18]Read from MH i2c: E2 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 03 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [17:39:18]RAPDU: 90 00 [17:39:18]wFMCommunicate OK [17:39:18]wFMCommunicate request_size=4 [17:39:18]MH_SAM_APDU [17:39:18]CAPDU: 80 0D 03 02 [17:39:18]Write to MH i2c: E2 08 00 B7 04 80 0D 03 02 00 00 00 00 36 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:18]Read from MH i2c: E2 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 0B 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 0B 00 B7 04 00 A9 06 E9 BA CA 69 48 99 90 00 9D [17:39:18]RAPDU: A9 06 E9 BA CA 69 48 99 90 00 [17:39:18]wFMCommunicate OK [17:39:18]SAM_PROTO_SignData done [17:39:18]FM_MakeSignedData done [17:39:18]CreateOFDProtocolMessage [17:39:18]wFMCommunicate request_size=4 [17:39:18]MH_SAM_APDU [17:39:18]CAPDU: 80 11 00 00 [17:39:18]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:18]Read from MH i2c: E2 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 17 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [17:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:18]wFMCommunicate OK [17:39:18]CreateOFDProtocolMessage done [17:39:18]OFDSenderStorePacket 49839 [17:39:18]StoreOFDPacket docnum=49839 [17:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E7 4F 1D 01 B2 51 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C5 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C2 00 00 35 04 06 00 27 A6 C9 87 F6 11 A9 06 E9 BA CA 69 48 99 [17:39:18]CheckFolder [17:39:18]dirname=/storage/ofd_packets [17:39:18]CheckFolder done [17:39:18]ProducePacketName [17:39:18]name=ofd_packets/00049839 [17:39:18]NVStorageSaveData ofd_packets/00049839 [17:39:18]File name is /storage/ofd_packets/00049839 [17:39:18]Write 323 bytes [17:39:18]NVStorageSaveData done [17:39:18]OFDSenderStorePacket done [17:39:18]KKMCreateOFDPacket done [17:39:18]NVStorageSaveData kkm_last_timestamp [17:39:18]File name is /storage/kkm_last_timestamp [17:39:18]Write 4 bytes [17:39:18]NVStorageSaveData done [17:39:18]ExternCall_PrintAddStr [17:39:18]wPrintStart [17:39:18]Write to MH i2c: 01 00 00 B9 04 BD [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [17:39:18]RasterBufferAndPrint [17:39:18]line Счет N : (3)190016 [17:39:18]line ИНН: 02508201610067 [17:39:18]line Контрольно-Кассовый Чек [17:39:18]line ПРОДАЖА [17:39:18]line Товар: 48743570 [17:39:18]line Сигареты Winston XStyle Blue [17:39:18]line 1.000 * 140.00 [17:39:18]line = 140.00 [17:39:18]line НДС 12% НСП 1% [17:39:18]line > о реализуемом товаре [17:39:18]line ИТОГО: 140.00 [17:39:18]line НСП 1% : 1.24 [17:39:18]line НДС 12% : 14.87 [17:39:18]line Наличными: 140.00 [17:39:18]line Безнал.: 0.00 [17:39:18]line Место: АЗС № 95 "Партнер Нефть" [17:39:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:39:18]line СНО: Общий режим [17:39:18]line Чек 105 18.08.2024 17:39 [17:39:18]line Смена: 466 ФФД: 1.0 [17:39:18]line ЗНМ: 0300000078 [17:39:18]line РНМ: 0000000000092546 [17:39:18]line Версия ККМ: 001 [17:39:18]line ФМ: 0000000000871800 [17:39:18]line ФД: 49839 [17:39:18]line ФПД: 43597299185169 [17:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49839&fm=43597299185169&tin=02508201610067®Number=0000000000092546&sum=14000 [17:39:18]OFD Sender: Processing packet 49839 [packets to send 21, broken 20] [17:39:18]ProducePacketName [17:39:18]name=ofd_packets/00049839 [17:39:18]OFD Sender: To server: pG, [17:39:18]CommunicateWithHost lk.salyk.kg:30040 [17:39:18]ConnectInit lk.salyk.kg [17:39:18]line 0 [17:39:18]written 0, free lines is 4095 [17:39:18]Connected sock=10 [17:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E7 4F 1D 01 B2 51 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C5 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AF C2 00 00 35 04 06 00 27 A6 C9 87 F6 11 A9 06 E9 BA CA 69 48 99 [17:39:19]Write to MH i2c: 01 00 00 E1 04 E5 [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: 01 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: 01 07 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 DF 0C D7 [17:39:19]RasterBufferAndPrint [17:39:19]line [17:39:19]line [17:39:19]line [17:39:19]line [17:39:19]line [17:39:19]written 0, free lines is 3301 [17:39:19]MH_Cut [17:39:19]Write to MH i2c: D1 01 00 E8 04 01 BE [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: D1 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: D1 01 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: D1 01 00 E8 04 00 BD [17:39:19]Write to MH i2c: 01 00 00 E9 04 ED [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 73 DA 47 00 5C 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 38 30 30 10 04 04 00 AF C2 00 00 F4 03 04 00 3A DC C1 66 B6 04 01 00 00 2F 73 10 EF CF 63 F1 1E [17:39:19]CommunicateWithHost err = 0 [17:39:19]CheckOFDResponse [17:39:19]1017 (14) - 77093643461234 [17:39:19]1041 (16) - 0000000000871800 [17:39:19]1040 (4) - 49839 [17:39:19]1012 (4) - 18.08.2024 11:34 [17:39:19]1206 (1) - 0 [17:39:19]OFD Sender: Remove packet 49839 [17:39:19]ProducePacketName [17:39:19]name=ofd_packets/00049839 [17:39:19]NVStorageDeleteData [17:39:19]OFD Sender: No OFD packet to send [17:39:19]*** Cut start [17:39:19]*** Purtial cut [17:39:19]*** Stage 1: CUTSNS_PIN = 1 [17:39:20]Read from MH i2c: 01 [17:39:20]MH_I2C_Read... [17:39:20]*** Stop cut motor [17:39:20]*** Cut end [17:39:20]Read from MH i2c: 01 07 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [17:39:20]process_action close_receipt done [17:39:20]requested_data is exist [17:39:20]produce_requested_data [17:39:20]requested_item fm.sn is exist - process it [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 11 00 00 [17:39:20]Write to MH i2c: E2 08 00 EA 04 80 11 00 00 00 00 00 00 68 [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 EA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B3 [17:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:20]wFMCommunicate OK [17:39:20]requested_item fd.num is exist - process it [17:39:20]SAM_PROTO_GetFieldsCounters [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 13 00 00 [17:39:20]Write to MH i2c: E2 08 00 EB 04 80 13 00 00 00 00 00 00 6B [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 62 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 62 00 EB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_GetFieldsCounters done [17:39:20]requested_item shift.num is exist - process it [17:39:20]requested_item shift.opened is exist - process it [17:39:20]req_shift_opened [17:39:20]FM_GetShiftState [17:39:20]SAM_PROTO_GetShiftState [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 13 01 00 [17:39:20]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8A [17:39:20]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_GetShiftState done [17:39:20]FM_GetShiftState done [17:39:20]req_shift_opened done [17:39:20]requested_item shift.open_date is exist - process it [17:39:20]req_shift_open_date [17:39:20]req_shift_open_date done [17:39:20]produce_requested_data done [17:39:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49839,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:39:20]process_action_free close_receipt [17:39:20]json_value_free [17:39:20]json_value_free done [17:39:20]process_json_proto returns [17:39:20]Send response to host [17:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49839,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:39:20]free response buf [17:39:20]execute_script done [17:39:20]execute_script returns [17:39:20]free content buf [17:39:20]Sock 7.Close socket [17:39:20]Sock 7.Thread stoped [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:38]accept exits with 9 [17:39:38]New connection [17:39:38]New thread 3067198820 created [17:39:38]Thread 3067055460 joined [17:39:38]Waiting for new connection... [17:39:38] Sock 9.Parse request [17:39:38]Sock 9.Check first char [17:39:38]Sock 9.First char is OK [17:39:38]request: POST /json_proto HTTP/1.0 [17:39:38]Method: POST [17:39:38]URL: /json_proto [17:39:38]Method is POST - this is cgi request [17:39:38]url: /json_proto [17:39:38]query_string will be loaded in cgi processing [17:39:38]execute_cgi json_proto POST (null) [17:39:38]execute_cgi path=json_proto method=POST [17:39:38]POST find Content-Length [17:39:38]Host: 172.17.46.196:8080 [17:39:38]Content-Length: 756 [17:39:38]Content-Type: application/json [17:39:38] [17:39:38]POST finish read [17:39:38]Found Content-Length = 756 [17:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30025045", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:38]execute_script... [17:39: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)11327179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30025045", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:38]POST & json_proto [17:39:38]process_json_proto [17:39:38]json parsed OK: [17:39:38]protocol is kg_v1.0 [17:39:38]action value=close_receipt [17:39:38]process_action close_receipt [17:39:38]cmd_close_receipt [17:39:38]MH_GetDate [17:39:38]Write to MH i2c: F0 00 00 ED 04 E0 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 09 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 09 00 ED 04 00 DB 31 C2 66 27 15 C2 66 81 [17:39:38]GetLastDocTimeStamp 1724002757 [17:39:38]current date 1724002779 [17:39:38]FM_GetShiftState [17:39:38]SAM_PROTO_GetShiftState [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 13 01 00 [17:39:38]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0E 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8C [17:39:38]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_GetShiftState done [17:39:38]FM_GetShiftState done [17:39:38]opened in 1723939759 [17:39:38]opened+sec_in_day 1724026159 [17:39:38]quantity*price = 0 [17:39:38]sum+1 = 1 [17:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 106 18.08.2024 17:39 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30025045 ФМ: 0000000000871800 ФД: 49840 ФПД: 227933156346358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49840&fm=227933156346358&tin=02508201610067®Number=0000000000092546&sum=0 [17:39:39]StoreToDocumentArchive [17:39:39]shift 466 fd 49840 [17:39:39]save to /storage/0466/doc_00049840 [17:39:39]save last doc name /storage/0466/doc_00049840 to /storage/kkm_last_doc_name [17:39:39]save OK [17:39:39]Clear old archive folders... [17:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:39]tlvbuf is 00F9ACD0 [17:39:39]SAM_PROTO_ClearQueue [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 09 00 00 [17:39:39]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_ClearQueue done [17:39:39]KKMCreateOFDPacket [17:39:39]OFDProtocolAddRootSTLVToBuf [17:39:39]FM_MakeSignedData [17:39:39]FM_MakeSignedData [17:39:39]SAM_PROTO_SignData [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 01 02 [17:39:39]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]wFMCommunicate request_size=255 [17:39:39]MH_SAM_APDU [17:39: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 34 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 6A 00 00 00 F4 03 04 00 DB 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C2 00 00 35 04 06 00 CF [17:39:39]Write to MH i2c: E2 02 01 FD 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 34 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 6A 00 00 00 F4 03 04 00 DB 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C2 00 00 35 04 06 00 CF 00 00 9B [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]OFD Sender: No OFD packet to send [17:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]wFMCommunicate request_size=10 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 02 02 05 4D D2 D1 09 F6 [17:39:39]Write to MH i2c: E2 0D 00 FE 04 80 0D 02 02 05 00 4D D2 D1 09 F6 00 00 75 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 03 02 [17:39:39]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0B 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 0B 00 FF 04 00 64 C1 1A 68 89 EC 26 84 90 00 45 [17:39:39]RAPDU: 64 C1 1A 68 89 EC 26 84 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_SignData done [17:39:39]FM_MakeSignedData done [17:39:39]CreateOFDProtocolMessage [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 11 00 00 [17:39:39]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 17 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [17:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:39]wFMCommunicate OK [17:39:39]CreateOFDProtocolMessage done [17:39:39]OFDSenderStorePacket 49840 [17:39:39]StoreOFDPacket docnum=49840 [17:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BD F9 07 01 67 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 DB 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C2 00 00 35 04 06 00 CF 4D D2 D1 09 F6 64 C1 1A 68 89 EC 26 84 [17:39:39]CheckFolder [17:39:39]dirname=/storage/ofd_packets [17:39:39]CheckFolder done [17:39:39]ProducePacketName [17:39:39]name=ofd_packets/00049840 [17:39:39]NVStorageSaveData ofd_packets/00049840 [17:39:39]File name is /storage/ofd_packets/00049840 [17:39:39]Write 301 bytes [17:39:39]NVStorageSaveData done [17:39:39]OFDSenderStorePacket done [17:39:39]KKMCreateOFDPacket done [17:39:39]NVStorageSaveData kkm_last_timestamp [17:39:39]File name is /storage/kkm_last_timestamp [17:39:39]Write 4 bytes [17:39:39]NVStorageSaveData done [17:39:39]ExternCall_PrintAddStr [17:39:39]wPrintStart [17:39:39]Write to MH i2c: 01 00 00 01 05 06 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [17:39:39]RasterBufferAndPrint [17:39:39]line Счет N : (1)11327179 [17:39:39]line ИНН: 02508201610067 [17:39:39]line Контрольно-Кассовый Чек [17:39:39]line ПРОДАЖА [17:39:39]line ТРК (МРК, ГНК) : 32 [17:39:39]line Товар: 2710124130 [17:39:39]line Аи-92-К-4 [17:39:39]line 20.000 * 0.00 [17:39:39]line = 0.00 [17:39:39]line НДС 12% НСП 1% [17:39:39]line > о реализуемом товаре [17:39:39]line ИТОГО: 0.00 [17:39:39]line НСП 1% : 0.00 [17:39:39]line НДС 12% : 0.00 [17:39:39]line Наличными: 0.00 [17:39:39]line Безнал.: 0.00 [17:39:39]line Место: АЗС № 95 "Партнер Нефть" [17:39:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:39:39]line СНО: Общий режим [17:39:39]line Чек 106 18.08.2024 17:39 [17:39:39]line Смена: 466 ФФД: 1.0 [17:39:39]line ЗНМ: 0300000078 [17:39:39]line РНМ: 0000000000092546 [17:39:39]line Версия ККМ: 001 [17:39:39]line Талоны: ТК ГПНА Online [17:39:39]line 30025045 [17:39:39]line ФМ: 0000000000871800 [17:39:39]line ФД: 49840 [17:39:39]line ФПД: 227933156346358 [17:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49840&fm=227933156346358&tin=02508201610067®Number=0000000000092546&sum=0 [17:39:40]written 0, free lines is 4095 [17:39:40]OFD Sender: Processing packet 49840 [packets to send 21, broken 20] [17:39:40]ProducePacketName [17:39:40]name=ofd_packets/00049840 [17:39:40]OFD Sender: To server: pG, [17:39:40]CommunicateWithHost lk.salyk.kg:30040 [17:39:40]ConnectInit lk.salyk.kg [17:39:40]Connected sock=10 [17:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BD F9 07 01 67 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 6A 00 00 00 F4 03 04 00 DB 31 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C2 00 00 35 04 06 00 CF 4D D2 D1 09 F6 64 C1 1A 68 89 EC 26 84 [17:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F3 7E 47 00 71 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B0 C2 00 00 F4 03 04 00 4F DC C1 66 B6 04 01 00 00 25 45 8C 17 90 CA 8C AB [17:39:40]CommunicateWithHost err = 0 [17:39:40]CheckOFDResponse [17:39:40]1017 (14) - 77093643461234 [17:39:40]1041 (16) - 0000000000871800 [17:39:40]1040 (4) - 49840 [17:39:40]1012 (4) - 18.08.2024 11:34 [17:39:40]1206 (1) - 0 [17:39:40]OFD Sender: Remove packet 49840 [17:39:40]ProducePacketName [17:39:40]name=ofd_packets/00049840 [17:39:40]NVStorageDeleteData [17:39:40]Write to MH i2c: 01 00 00 2B 05 30 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 DE 0C 21 [17:39:40]RasterBufferAndPrint [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]written 0, free lines is 3300 [17:39:40]MH_Cut [17:39:40]Write to MH i2c: D1 01 00 32 05 01 09 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 01 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 01 00 32 05 00 08 [17:39:40]Write to MH i2c: 01 00 00 33 05 38 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:41]OFD Sender: No OFD packet to send [17:39:41]*** Cut start [17:39:41]*** Purtial cut [17:39:41]*** CUTSNS_PIN = 0 [17:39:41]*** Stage 1: CUTSNS_PIN = 1 [17:39:43]Read from MH i2c: 01 [17:39:43]MH_I2C_Read... [17:39:43]*** Stop cut motor [17:39:43]*** Cut end [17:39:43]Read from MH i2c: 01 07 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [17:39:43]process_action close_receipt done [17:39:43]requested_data is exist [17:39:43]produce_requested_data [17:39:43]requested_item fm.sn is exist - process it [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 11 00 00 [17:39:43]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [17:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:43]wFMCommunicate OK [17:39:43]requested_item fd.num is exist - process it [17:39:43]SAM_PROTO_GetFieldsCounters [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 00 00 [17:39:43]Write to MH i2c: E2 08 00 35 05 80 13 00 00 00 00 00 00 B6 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 62 00 35 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetFieldsCounters done [17:39:43]requested_item shift.num is exist - process it [17:39:43]requested_item shift.opened is exist - process it [17:39:43]req_shift_opened [17:39:43]FM_GetShiftState [17:39:43]SAM_PROTO_GetShiftState [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 13 01 00 [17:39:43]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0E 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D5 [17:39:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_GetShiftState done [17:39:43]FM_GetShiftState done [17:39:43]req_shift_opened done [17:39:43]requested_item shift.open_date is exist - process it [17:39:43]req_shift_open_date [17:39:43]req_shift_open_date done [17:39:43]produce_requested_data done [17:39:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49840,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:39:43]process_action_free close_receipt [17:39:43]json_value_free [17:39:43]json_value_free done [17:39:43]process_json_proto returns [17:39:43]Send response to host [17:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49840,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:39:43]free response buf [17:39:43]execute_script done [17:39:43]execute_script returns [17:39:43]free content buf [17:39:43]Sock 9.Close socket [17:39:43]Sock 9.Thread stoped [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:55]int [17:41:55]Write to MH i2c: 01 00 00 37 05 3C [17:41:55]*** FLAG_PRN_KEY set [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 37 05 00 08 00 00 00 FF 0F 59 [17:41:55]state=0 [17:41:55]Key pressed [17:41:55]Feed [17:41:55]Write to MH i2c: D8 00 00 38 05 14 [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: D8 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: D8 01 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: D8 01 00 38 05 00 15 [17:41:55]int [17:41:55]Write to MH i2c: 01 00 00 39 05 3E [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 39 05 00 48 00 00 00 3C 00 C9 [17:41:55]state=2 [17:41:55]Key pressed [17:41:55]int [17:41:55]Write to MH i2c: 01 00 00 3A 05 3F [17:41:55]*** FLAG_PRN_KEY reset [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 F5 0F 4A [17:41:55]state=2 [17:41:55]Stop feed [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:13]accept exits with 7 [17:50:13]New connection [17:50:13]New thread 3067055460 created [17:50:13]Thread 3067198820 joined [17:50:13]Waiting for new connection... [17:50:13] Sock 7.Parse request [17:50:13]Sock 7.Check first char [17:50:13]Sock 7.First char is OK [17:50:13]request: POST /json_proto HTTP/1.0 [17:50:13]Method: POST [17:50:13]URL: /json_proto [17:50:13]Method is POST - this is cgi request [17:50:13]url: /json_proto [17:50:13]query_string will be loaded in cgi processing [17:50:13]execute_cgi json_proto POST (null) [17:50:13]execute_cgi path=json_proto method=POST [17:50:13]POST find Content-Length [17:50:13]Host: 172.17.46.196:8080 [17:50:13]Content-Length: 649 [17:50:13]Content-Type: application/json [17:50:13] [17:50:13]POST finish read [17:50:13]Found Content-Length = 649 [17:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190017", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:13]execute_script... [17:50:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190017", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:13]POST & json_proto [17:50:13]process_json_proto [17:50:13]json parsed OK: [17:50:13]protocol is kg_v1.0 [17:50:13]action value=close_receipt [17:50:13]process_action close_receipt [17:50:13]cmd_close_receipt [17:50:13]MH_GetDate [17:50:13]Write to MH i2c: F0 00 00 3B 05 2F [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 09 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 09 00 3B 05 00 56 34 C2 66 27 15 C2 66 4E [17:50:13]GetLastDocTimeStamp 1724002779 [17:50:13]current date 1724003414 [17:50:13]FM_GetShiftState [17:50:13]SAM_PROTO_GetShiftState [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 13 01 00 [17:50:13]Write to MH i2c: E2 08 00 3C 05 80 13 01 00 00 00 00 00 BE [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 3C 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DB [17:50:13]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_GetShiftState done [17:50:13]FM_GetShiftState done [17:50:13]opened in 1723939759 [17:50:13]opened+sec_in_day 1724026159 [17:50:13]quantity*price = 8500 [17:50:13]sum+1 = 8501 [17:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 107 18.08.2024 17:50 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49841 ФПД: 243342100346360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175014&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49841&fm=243342100346360&tin=02508201610067®Number=0000000000092546&sum=8500 0 [17:50:14]StoreToDocumentArchive [17:50:14]shift 466 fd 49841 [17:50:14]save to /storage/0466/doc_00049841 [17:50:14]save last doc name /storage/0466/doc_00049841 to /storage/kkm_last_doc_name [17:50:14]save OK [17:50:14]Clear old archive folders... [17:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:50:14]tlvbuf is 00FCB9E0 [17:50:14]SAM_PROTO_ClearQueue [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 09 00 00 [17:50:14]Write to MH i2c: E2 08 00 49 05 80 09 00 00 00 00 00 00 C0 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_ClearQueue done [17:50:14]KKMCreateOFDPacket [17:50:14]OFDProtocolAddRootSTLVToBuf [17:50:14]FM_MakeSignedData [17:50:14]FM_MakeSignedData [17:50:14]SAM_PROTO_SignData [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 01 02 [17:50:14]Write to MH i2c: E2 08 00 4A 05 80 0D 01 02 00 00 00 00 C8 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=255 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 56 34 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [17:50:14]Write to MH i2c: E2 02 01 4B 05 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 56 34 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 CC [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=39 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C2 00 00 35 04 06 00 DD 51 7F 73 35 F8 [17:50:14]Write to MH i2c: E2 2A 00 4C 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C2 00 00 35 04 06 00 DD 51 7F 73 35 F8 00 00 3E [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 03 02 [17:50:14]Write to MH i2c: E2 08 00 4D 05 80 0D 03 02 00 00 00 00 CD [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 4D 05 00 52 DE CD BD 24 89 FC 60 90 00 91 [17:50:14]RAPDU: 52 DE CD BD 24 89 FC 60 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_SignData done [17:50:14]FM_MakeSignedData done [17:50:14]CreateOFDProtocolMessage [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 11 00 00 [17:50:14]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 17 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [17:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:50:15]wFMCommunicate OK [17:50:15]CreateOFDProtocolMessage done [17:50:15]OFDSenderStorePacket 49841 [17:50:15]StoreOFDPacket docnum=49841 [17:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 DB A8 24 01 3A AD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 56 34 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C2 00 00 35 04 06 00 DD 51 7F 73 35 F8 52 DE CD BD 24 89 FC 60 [17:50:15]CheckFolder [17:50:15]dirname=/storage/ofd_packets [17:50:15]CheckFolder done [17:50:15]ProducePacketName [17:50:15]name=ofd_packets/00049841 [17:50:15]NVStorageSaveData ofd_packets/00049841 [17:50:15]File name is /storage/ofd_packets/00049841 [17:50:15]Write 330 bytes [17:50:15]NVStorageSaveData done [17:50:15]OFDSenderStorePacket done [17:50:15]KKMCreateOFDPacket done [17:50:15]NVStorageSaveData kkm_last_timestamp [17:50:15]File name is /storage/kkm_last_timestamp [17:50:15]Write 4 bytes [17:50:15]NVStorageSaveData done [17:50:15]ExternCall_PrintAddStr [17:50:15]wPrintStart [17:50:15]Write to MH i2c: 01 00 00 4F 05 54 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [17:50:15]RasterBufferAndPrint [17:50:15]line Счет N : (3)190017 [17:50:15]line ИНН: 02508201610067 [17:50:15]line Контрольно-Кассовый Чек [17:50:15]line ПРОДАЖА [17:50:15]line Товар: 4870227273831 [17:50:15]line Лимонад Sunbel Мохито 1л [17:50:15]line 1.000 * 85.00 [17:50:15]line = 85.00 [17:50:15]line НДС 12% НСП 1% [17:50:15]line > о реализуемом товаре [17:50:15]line ИТОГО: 85.00 [17:50:15]line НСП 1% : 0.75 [17:50:15]line НДС 12% : 9.03 [17:50:15]line Наличными: 85.00 [17:50:15]line Безнал.: 0.00 [17:50:15]line Место: АЗС № 95 "Партнер Нефть" [17:50:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:50:15]line СНО: Общий режим [17:50:15]line Чек 107 18.08.2024 17:50 [17:50:15]line Смена: 466 ФФД: 1.0 [17:50:15]line ЗНМ: 0300000078 [17:50:15]line РНМ: 0000000000092546 [17:50:15]line Версия ККМ: 001 [17:50:15]line ФМ: 0000000000871800 [17:50:15]line ФД: 49841 [17:50:15]line ФПД: 243342100346360 [17:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175014&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49841&fm=243342100346360&tin=02508201610067®Number=0000000000092546&sum=8500 [17:50:15]line 0 [17:50:15]OFD Sender: Processing packet 49841 [packets to send 21, broken 20] [17:50:15]ProducePacketName [17:50:15]name=ofd_packets/00049841 [17:50:15]OFD Sender: To server: pG, [17:50:15]CommunicateWithHost lk.salyk.kg:30040 [17:50:15]ConnectInit lk.salyk.kg [17:50:15]written 0, free lines is 4095 [17:50:15]Connected sock=10 [17:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 DB A8 24 01 3A AD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 56 34 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C2 00 00 35 04 06 00 DD 51 7F 73 35 F8 52 DE CD BD 24 89 FC 60 [17:50:15]Write to MH i2c: 01 00 00 77 05 7C [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 EA 0C 79 [17:50:15]RasterBufferAndPrint [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]written 0, free lines is 3312 [17:50:15]MH_Cut [17:50:15]Write to MH i2c: D1 01 00 7E 05 01 55 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 01 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 01 00 7E 05 00 54 [17:50:15]Write to MH i2c: 01 00 00 7F 05 84 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F3 B8 47 00 0A F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B1 C2 00 00 F4 03 04 00 CB DE C1 66 B6 04 01 00 00 A5 27 EF 4F 06 88 FC E4 [17:50:15]CommunicateWithHost err = 0 [17:50:15]CheckOFDResponse [17:50:15]1017 (14) - 77093643461234 [17:50:15]1041 (16) - 0000000000871800 [17:50:15]1040 (4) - 49841 [17:50:15]1012 (4) - 18.08.2024 11:45 [17:50:15]1206 (1) - 0 [17:50:15]OFD Sender: Remove packet 49841 [17:50:15]ProducePacketName [17:50:15]name=ofd_packets/00049841 [17:50:15]NVStorageDeleteData [17:50:16]OFD Sender: No OFD packet to send [17:50:16]*** Cut start [17:50:16]*** Purtial cut [17:50:16]*** Stage 1: CUTSNS_PIN = 1 [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]*** Stop cut motor [17:50:16]*** Cut end [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 7F 05 00 00 00 00 00 FF 0F 99 [17:50:16]process_action close_receipt done [17:50:16]requested_data is exist [17:50:16]produce_requested_data [17:50:16]requested_item fm.sn is exist - process it [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 11 00 00 [17:50:16]Write to MH i2c: E2 08 00 80 05 80 11 00 00 00 00 00 00 FF [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 80 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [17:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:50:16]wFMCommunicate OK [17:50:16]requested_item fd.num is exist - process it [17:50:16]SAM_PROTO_GetFieldsCounters [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 13 00 00 [17:50:16]Write to MH i2c: E2 08 00 81 05 80 13 00 00 00 00 00 00 02 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 62 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 62 00 81 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:50:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:17]wFMCommunicate OK [17:50:17]SAM_PROTO_GetFieldsCounters done [17:50:17]requested_item shift.num is exist - process it [17:50:17]requested_item shift.opened is exist - process it [17:50:17]req_shift_opened [17:50:17]FM_GetShiftState [17:50:17]SAM_PROTO_GetShiftState [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 13 01 00 [17:50:17]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0E 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 21 [17:50:17]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [17:50:17]wFMCommunicate OK [17:50:17]SAM_PROTO_GetShiftState done [17:50:17]FM_GetShiftState done [17:50:17]req_shift_opened done [17:50:17]requested_item shift.open_date is exist - process it [17:50:17]req_shift_open_date [17:50:17]req_shift_open_date done [17:50:17]produce_requested_data done [17:50:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49841,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [17:50:17]process_action_free close_receipt [17:50:17]json_value_free [17:50:17]json_value_free done [17:50:17]process_json_proto returns [17:50:17]Send response to host [17:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49841,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [17:50:17]free response buf [17:50:17]execute_script done [17:50:17]execute_script returns [17:50:17]free content buf [17:50:17]Sock 7.Close socket [17:50:17]Sock 7.Thread stoped [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:21]accept exits with 9 [18:13:21]New connection [18:13:21]New thread 3067198820 created [18:13:21]Thread 3067055460 joined [18:13:21]Waiting for new connection... [18:13:21] Sock 9.Parse request [18:13:21]Sock 9.Check first char [18:13:21]Sock 9.First char is OK [18:13:21]request: POST /json_proto HTTP/1.0 [18:13:21]Method: POST [18:13:21]URL: /json_proto [18:13:21]Method is POST - this is cgi request [18:13:21]url: /json_proto [18:13:21]query_string will be loaded in cgi processing [18:13:21]execute_cgi json_proto POST (null) [18:13:21]execute_cgi path=json_proto method=POST [18:13:21]POST find Content-Length [18:13:21]Host: 172.17.46.196:8080 [18:13:21]Content-Length: 647 [18:13:21]Content-Type: application/json [18:13:21] [18:13:21]POST finish read [18:13:21]Found Content-Length = 647 [18:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190018", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:21]execute_script... [18:13:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190018", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:21]POST & json_proto [18:13:21]process_json_proto [18:13:21]json parsed OK: [18:13:21]protocol is kg_v1.0 [18:13:21]action value=close_receipt [18:13:21]process_action close_receipt [18:13:21]cmd_close_receipt [18:13:21]MH_GetDate [18:13:21]Write to MH i2c: F0 00 00 83 05 77 [18:13:21]Write i2c OK [18:13:21]MH_I2C_Read... [18:13:21]Read from MH i2c: F0 [18:13:21]MH_I2C_Read... [18:13:21]Read from MH i2c: F0 09 00 [18:13:21]MH_I2C_Read... [18:13:21]Read from MH i2c: F0 09 00 83 05 00 C2 39 C2 66 27 15 C2 66 07 [18:13:21]GetLastDocTimeStamp 1724003414 [18:13:21]current date 1724004802 [18:13:21]FM_GetShiftState [18:13:21]SAM_PROTO_GetShiftState [18:13:21]wFMCommunicate request_size=4 [18:13:21]MH_SAM_APDU [18:13:21]CAPDU: 80 13 01 00 [18:13:21]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [18:13:21]Write i2c OK [18:13:21]MH_I2C_Read... [18:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:21]Read from MH i2c: E2 [18:13:21]MH_I2C_Read... [18:13:21]Read from MH i2c: E2 0E 00 [18:13:21]MH_I2C_Read... [18:13:21]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 23 [18:13:21]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:13:21]wFMCommunicate OK [18:13:21]SAM_PROTO_GetShiftState done [18:13:21]FM_GetShiftState done [18:13:21]opened in 1723939759 [18:13:21]opened+sec_in_day 1724026159 [18:13:21]quantity*price = 27000 [18:13:21]sum+1 = 27001 [18:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 108 18.08.2024 18:13 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49842 ФПД: 19315877198035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181322&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49842&fm=19315877198035&tin=02508201610067®Number=0000000000092546&sum=27000 0 [18:13:22]StoreToDocumentArchive [18:13:22]shift 466 fd 49842 [18:13:22]save to /storage/0466/doc_00049842 [18:13:22]save last doc name /storage/0466/doc_00049842 to /storage/kkm_last_doc_name [18:13:22]save OK [18:13:22]Clear old archive folders... [18:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:13:22]tlvbuf is 00F73310 [18:13:22]SAM_PROTO_ClearQueue [18:13:22]wFMCommunicate request_size=4 [18:13:22]MH_SAM_APDU [18:13:22]CAPDU: 80 09 00 00 [18:13:22]Write to MH i2c: E2 08 00 91 05 80 09 00 00 00 00 00 00 08 [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:22]Read from MH i2c: E2 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [18:13:22]RAPDU: 90 00 [18:13:22]wFMCommunicate OK [18:13:22]SAM_PROTO_ClearQueue done [18:13:22]KKMCreateOFDPacket [18:13:22]OFDProtocolAddRootSTLVToBuf [18:13:22]FM_MakeSignedData [18:13:22]FM_MakeSignedData [18:13:22]SAM_PROTO_SignData [18:13:22]wFMCommunicate request_size=4 [18:13:22]MH_SAM_APDU [18:13:22]CAPDU: 80 0D 01 02 [18:13:22]Write to MH i2c: E2 08 00 92 05 80 0D 01 02 00 00 00 00 10 [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:22]Read from MH i2c: E2 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [18:13:22]RAPDU: 90 00 [18:13:22]wFMCommunicate OK [18:13:22]wFMCommunicate request_size=255 [18:13:22]MH_SAM_APDU [18:13:22]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C2 39 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [18:13:22]Write to MH i2c: E2 02 01 93 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C2 39 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 82 [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:22]Read from MH i2c: E2 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [18:13:22]RAPDU: 90 00 [18:13:22]wFMCommunicate OK [18:13:22]wFMCommunicate request_size=34 [18:13:22]MH_SAM_APDU [18:13:22]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C2 00 00 35 04 06 00 11 91 53 FF B8 D3 [18:13:22]Write to MH i2c: E2 25 00 94 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C2 00 00 35 04 06 00 11 91 53 FF B8 D3 00 00 BF [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [18:13:23]RAPDU: 90 00 [18:13:23]wFMCommunicate OK [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 0D 03 02 [18:13:23]Write to MH i2c: E2 08 00 95 05 80 0D 03 02 00 00 00 00 15 [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 0B 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 0B 00 95 05 00 65 80 B7 BF 51 36 AB AF 90 00 52 [18:13:23]RAPDU: 65 80 B7 BF 51 36 AB AF 90 00 [18:13:23]wFMCommunicate OK [18:13:23]SAM_PROTO_SignData done [18:13:23]FM_MakeSignedData done [18:13:23]CreateOFDProtocolMessage [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 11 00 00 [18:13:23]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 17 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [18:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:13:23]wFMCommunicate OK [18:13:23]CreateOFDProtocolMessage done [18:13:23]OFDSenderStorePacket 49842 [18:13:23]StoreOFDPacket docnum=49842 [18:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 52 98 1F 01 E9 00 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C2 39 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C2 00 00 35 04 06 00 11 91 53 FF B8 D3 65 80 B7 BF 51 36 AB AF [18:13:23]CheckFolder [18:13:23]dirname=/storage/ofd_packets [18:13:23]CheckFolder done [18:13:23]ProducePacketName [18:13:23]name=ofd_packets/00049842 [18:13:23]NVStorageSaveData ofd_packets/00049842 [18:13:23]File name is /storage/ofd_packets/00049842 [18:13:23]Write 325 bytes [18:13:23]NVStorageSaveData done [18:13:23]OFDSenderStorePacket done [18:13:23]KKMCreateOFDPacket done [18:13:23]NVStorageSaveData kkm_last_timestamp [18:13:23]File name is /storage/kkm_last_timestamp [18:13:23]Write 4 bytes [18:13:23]NVStorageSaveData done [18:13:23]ExternCall_PrintAddStr [18:13:23]wPrintStart [18:13:23]Write to MH i2c: 01 00 00 97 05 9C [18:13:23]OFD Sender: Processing packet 49842 [packets to send 21, broken 20] [18:13:23]ProducePacketName [18:13:23]name=ofd_packets/00049842 [18:13:23]OFD Sender: To server: pG, [18:13:23]CommunicateWithHost lk.salyk.kg:30040 [18:13:23]ConnectInit lk.salyk.kg [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [18:13:23]RasterBufferAndPrint [18:13:23]line Счет N : (3)190018 [18:13:23]line ИНН: 02508201610067 [18:13:23]line Контрольно-Кассовый Чек [18:13:23]line ПРОДАЖА [18:13:23]line Товар: 4700001061104 [18:13:23]line Коньяк Семетей 0,2л [18:13:23]line 1.000 * 270.00 [18:13:23]line = 270.00 [18:13:23]line НДС 12% НСП 1% [18:13:23]line > о реализуемом товаре [18:13:23]line ИТОГО: 270.00 [18:13:23]line НСП 1% : 2.39 [18:13:23]line НДС 12% : 28.67 [18:13:23]line Наличными: 270.00 [18:13:23]line Безнал.: 0.00 [18:13:23]line Место: АЗС № 95 "Партнер Нефть" [18:13:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:13:23]line СНО: Общий режим [18:13:23]line Чек 108 18.08.2024 18:13 [18:13:23]line Смена: 466 ФФД: 1.0 [18:13:23]line ЗНМ: 0300000078 [18:13:23]line РНМ: 0000000000092546 [18:13:23]line Версия ККМ: 001 [18:13:23]line ФМ: 0000000000871800 [18:13:23]line ФД: 49842 [18:13:23]line ФПД: 19315877198035 [18:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181322&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49842&fm=19315877198035&tin=02508201610067®Number=0000000000092546&sum=27000 [18:13:23]line 0 [18:13:23]Connected sock=10 [18:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 52 98 1F 01 E9 00 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C2 39 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C2 00 00 35 04 06 00 11 91 53 FF B8 D3 65 80 B7 BF 51 36 AB AF [18:13:23]written 0, free lines is 4095 [18:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3D 3E 47 00 EF 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B2 C2 00 00 F4 03 04 00 37 E4 C1 66 B6 04 01 00 00 DF 08 D7 5A 8E EB 8B D9 [18:13:23]CommunicateWithHost err = 0 [18:13:23]CheckOFDResponse [18:13:23]1017 (14) - 77093643461234 [18:13:23]1041 (16) - 0000000000871800 [18:13:23]1040 (4) - 49842 [18:13:23]1012 (4) - 18.08.2024 12:08 [18:13:23]1206 (1) - 0 [18:13:23]OFD Sender: Remove packet 49842 [18:13:23]ProducePacketName [18:13:23]name=ofd_packets/00049842 [18:13:23]NVStorageDeleteData [18:13:23]Write to MH i2c: 01 00 00 BF 05 C4 [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 E5 0C BC [18:13:23]RasterBufferAndPrint [18:13:23]line [18:13:23]line [18:13:23]line [18:13:23]line [18:13:23]line [18:13:23]written 0, free lines is 3309 [18:13:23]MH_Cut [18:13:23]Write to MH i2c: D1 01 00 C6 05 01 9D [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: D1 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: D1 01 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: D1 01 00 C6 05 00 9C [18:13:23]Write to MH i2c: 01 00 00 C7 05 CC [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:24]OFD Sender: No OFD packet to send [18:13:24]*** Cut start [18:13:24]*** Purtial cut [18:13:24]*** CUTSNS_PIN = 0 [18:13:24]*** Stage 1: CUTSNS_PIN = 1 [18:13:26]Read from MH i2c: 01 [18:13:26]MH_I2C_Read... [18:13:26]*** Stop cut motor [18:13:26]*** Cut end [18:13:26]Read from MH i2c: 01 07 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 FF 0F E1 [18:13:26]process_action close_receipt done [18:13:26]requested_data is exist [18:13:26]produce_requested_data [18:13:26]requested_item fm.sn is exist - process it [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 11 00 00 [18:13:26]Write to MH i2c: E2 08 00 C8 05 80 11 00 00 00 00 00 00 47 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 C8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 92 [18:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:13:26]wFMCommunicate OK [18:13:26]requested_item fd.num is exist - process it [18:13:26]SAM_PROTO_GetFieldsCounters [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 13 00 00 [18:13:26]Write to MH i2c: E2 08 00 C9 05 80 13 00 00 00 00 00 00 4A [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 62 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 62 00 C9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_GetFieldsCounters done [18:13:26]requested_item shift.num is exist - process it [18:13:26]requested_item shift.opened is exist - process it [18:13:26]req_shift_opened [18:13:26]FM_GetShiftState [18:13:26]SAM_PROTO_GetShiftState [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 13 01 00 [18:13:26]Write to MH i2c: E2 08 00 CA 05 80 13 01 00 00 00 00 00 4C [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 CA 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 69 [18:13:26]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_GetShiftState done [18:13:26]FM_GetShiftState done [18:13:26]req_shift_opened done [18:13:26]requested_item shift.open_date is exist - process it [18:13:26]req_shift_open_date [18:13:26]req_shift_open_date done [18:13:26]produce_requested_data done [18:13:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49842,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:13:26]process_action_free close_receipt [18:13:26]json_value_free [18:13:26]json_value_free done [18:13:26]process_json_proto returns [18:13:26]Send response to host [18:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49842,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:13:26]free response buf [18:13:26]execute_script done [18:13:26]execute_script returns [18:13:26]free content buf [18:13:26]Sock 9.Close socket [18:13:26]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:03]accept exits with 7 [18:32:03]New connection [18:32:03]New thread 3067055460 created [18:32:03]Thread 3067198820 joined [18:32:03]Waiting for new connection... [18:32:03] Sock 7.Parse request [18:32:03]Sock 7.Check first char [18:32:03]Sock 7.First char is OK [18:32:03]request: POST /json_proto HTTP/1.0 [18:32:03]Method: POST [18:32:03]URL: /json_proto [18:32:03]Method is POST - this is cgi request [18:32:03]url: /json_proto [18:32:03]query_string will be loaded in cgi processing [18:32:03]execute_cgi json_proto POST (null) [18:32:03]execute_cgi path=json_proto method=POST [18:32:03]POST find Content-Length [18:32:03]Host: 172.17.46.196:8080 [18:32:03]Content-Length: 975 [18:32:03]Content-Type: application/json [18:32:03] [18:32:03]POST finish read [18:32:03]Found Content-Length = 975 [18:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190019", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:03]execute_script... [18:32: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 : (3)190019", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:03]POST & json_proto [18:32:03]process_json_proto [18:32:03]json parsed OK: [18:32:03]protocol is kg_v1.0 [18:32:03]action value=close_receipt [18:32:03]process_action close_receipt [18:32:03]cmd_close_receipt [18:32:03]MH_GetDate [18:32:03]Write to MH i2c: F0 00 00 CB 05 BF [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: F0 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: F0 09 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: F0 09 00 CB 05 00 25 3E C2 66 27 15 C2 66 B7 [18:32:03]GetLastDocTimeStamp 1724004802 [18:32:03]current date 1724005925 [18:32:03]FM_GetShiftState [18:32:03]SAM_PROTO_GetShiftState [18:32:03]wFMCommunicate request_size=4 [18:32:03]MH_SAM_APDU [18:32:03]CAPDU: 80 13 01 00 [18:32:03]Write to MH i2c: E2 08 00 CC 05 80 13 01 00 00 00 00 00 4E [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:03]Read from MH i2c: E2 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 0E 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 0E 00 CC 05 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6B [18:32:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:32:03]wFMCommunicate OK [18:32:03]SAM_PROTO_GetShiftState done [18:32:03]FM_GetShiftState done [18:32:03]opened in 1723939759 [18:32:03]opened+sec_in_day 1724026159 [18:32:03]quantity*price = 5000 [18:32:03]sum+1 = 5001 [18:32:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 109 18.08.2024 18:32 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49843 ФПД: 165446684943954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183205&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49843&fm=165446684943954&tin=02508201610067®Number=0000000000092546&sum=13000 0 [18:32:04]StoreToDocumentArchive [18:32:04]shift 466 fd 49843 [18:32:04]save to /storage/0466/doc_00049843 [18:32:04]save last doc name /storage/0466/doc_00049843 to /storage/kkm_last_doc_name [18:32:04]save OK [18:32:04]Clear old archive folders... [18:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=405 [18:32:04]tlvbuf is 00FCBB80 [18:32:04]SAM_PROTO_ClearQueue [18:32:04]wFMCommunicate request_size=4 [18:32:04]MH_SAM_APDU [18:32:04]CAPDU: 80 09 00 00 [18:32:04]Write to MH i2c: E2 08 00 D9 05 80 09 00 00 00 00 00 00 50 [18:32:04]Write i2c OK [18:32:04]MH_I2C_Read... [18:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:04]Read from MH i2c: E2 [18:32:04]MH_I2C_Read... [18:32:04]Read from MH i2c: E2 03 00 [18:32:04]MH_I2C_Read... [18:32:04]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [18:32:04]RAPDU: 90 00 [18:32:04]wFMCommunicate OK [18:32:04]SAM_PROTO_ClearQueue done [18:32:04]KKMCreateOFDPacket [18:32:04]OFDProtocolAddRootSTLVToBuf [18:32:04]FM_MakeSignedData [18:32:04]FM_MakeSignedData [18:32:04]SAM_PROTO_SignData [18:32:04]wFMCommunicate request_size=4 [18:32:04]MH_SAM_APDU [18:32:04]CAPDU: 80 0D 01 02 [18:32:04]Write to MH i2c: E2 08 00 DA 05 80 0D 01 02 00 00 00 00 58 [18:32:04]Write i2c OK [18:32:04]MH_I2C_Read... [18:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:04]Read from MH i2c: E2 [18:32:04]MH_I2C_Read... [18:32:04]Read from MH i2c: E2 03 00 [18:32:04]MH_I2C_Read... [18:32:04]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [18:32:04]RAPDU: 90 00 [18:32:04]wFMCommunicate OK [18:32:04]wFMCommunicate request_size=255 [18:32:04]MH_SAM_APDU [18:32:04]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 [18:32:04]Write to MH i2c: E2 02 01 DB 05 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 CD [18:32:04]Write i2c OK [18:32:04]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 03 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [18:32:05]RAPDU: 90 00 [18:32:05]wFMCommunicate OK [18:32:05]wFMCommunicate request_size=164 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 25 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C2 00 00 35 04 06 00 96 79 0E E2 A6 52 [18:32:05]Write to MH i2c: E2 A7 00 DC 05 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 25 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C2 00 00 35 04 06 00 96 79 0E E2 A6 52 00 00 DD [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]OFD Sender: No OFD packet to send [18:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 03 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [18:32:05]RAPDU: 90 00 [18:32:05]wFMCommunicate OK [18:32:05]wFMCommunicate request_size=4 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 0D 03 02 [18:32:05]Write to MH i2c: E2 08 00 DD 05 80 0D 03 02 00 00 00 00 5D [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 0B 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 0B 00 DD 05 00 35 7C 27 E0 2D 8F A2 05 90 00 79 [18:32:05]RAPDU: 35 7C 27 E0 2D 8F A2 05 90 00 [18:32:05]wFMCommunicate OK [18:32:05]SAM_PROTO_SignData done [18:32:05]FM_MakeSignedData done [18:32:05]CreateOFDProtocolMessage [18:32:05]wFMCommunicate request_size=4 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 11 00 00 [18:32:05]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 17 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A8 [18:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:32:05]wFMCommunicate OK [18:32:05]CreateOFDProtocolMessage done [18:32:05]OFDSenderStorePacket 49843 [18:32:05]StoreOFDPacket docnum=49843 [18:32:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A9 01 00 00 6F A6 A1 01 A7 66 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 25 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C2 00 00 35 04 06 00 96 79 0E E2 A6 52 35 7C 27 E0 2D 8F A2 05 [18:32:05]CheckFolder [18:32:05]dirname=/storage/ofd_packets [18:32:05]CheckFolder done [18:32:05]ProducePacketName [18:32:05]name=ofd_packets/00049843 [18:32:05]NVStorageSaveData ofd_packets/00049843 [18:32:05]File name is /storage/ofd_packets/00049843 [18:32:05]Write 455 bytes [18:32:05]NVStorageSaveData done [18:32:05]OFDSenderStorePacket done [18:32:05]KKMCreateOFDPacket done [18:32:05]NVStorageSaveData kkm_last_timestamp [18:32:05]File name is /storage/kkm_last_timestamp [18:32:05]Write 4 bytes [18:32:05]NVStorageSaveData done [18:32:05]ExternCall_PrintAddStr [18:32:05]wPrintStart [18:32:05]Write to MH i2c: 01 00 00 DF 05 E4 [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: 01 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: 01 07 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [18:32:05]RasterBufferAndPrint [18:32:05]line Счет N : (3)190019 [18:32:05]line ИНН: 02508201610067 [18:32:05]line Контрольно-Кассовый Чек [18:32:05]line ПРОДАЖА [18:32:05]line Товар: 4700000160358 [18:32:05]line Вода Легенда 1л [18:32:05]line 1.000 * 50.00 [18:32:05]line = 50.00 [18:32:05]line НДС 12% НСП 1% [18:32:05]line > о реализуемом товаре [18:32:05]line Товар: 4600338001623 [18:32:05]line Вода Фруто НЯНЯ негазир д/детей 0,33л [18:32:05]line 1.000 * 80.00 [18:32:05]line = 80.00 [18:32:05]line НДС 12% НСП 1% [18:32:05]line > о реализуемом товаре [18:32:05]line ИТОГО: 130.00 [18:32:05]line НСП 1% : 1.15 [18:32:05]line НДС 12% : 13.81 [18:32:05]line Наличными: 130.00 [18:32:05]line Безнал.: 0.00 [18:32:05]line Место: АЗС № 95 "Партнер Нефть" [18:32:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:32:05]line СНО: Общий режим [18:32:05]line Чек 109 18.08.2024 18:32 [18:32:05]line Смена: 466 ФФД: 1.0 [18:32:05]line ЗНМ: 0300000078 [18:32:05]line РНМ: 0000000000092546 [18:32:05]line Версия ККМ: 001 [18:32:05]line ФМ: 0000000000871800 [18:32:05]line ФД: 49843 [18:32:05]line ФПД: 165446684943954 [18:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183205&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49843&fm=165446684943954&tin=02508201610067®Number=0000000000092546&sum=13000 [18:32:05]line 0 [18:32:05]OFD Sender: Processing packet 49843 [packets to send 21, broken 20] [18:32:05]ProducePacketName [18:32:05]name=ofd_packets/00049843 [18:32:05]OFD Sender: To server: pG, [18:32:05]CommunicateWithHost lk.salyk.kg:30040 [18:32:05]ConnectInit lk.salyk.kg [18:32:05]written 0, free lines is 4095 [18:32:05]Connected sock=10 [18:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A9 01 00 00 6F A6 A1 01 A7 66 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 25 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C2 00 00 35 04 06 00 96 79 0E E2 A6 52 35 7C 27 E0 2D 8F A2 05 [18:32:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9F 2D 47 00 1D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B3 C2 00 00 F4 03 04 00 99 E8 C1 66 B6 04 01 00 00 D4 F4 95 D7 74 F3 CB F2 [18:32:06]CommunicateWithHost err = 0 [18:32:06]CheckOFDResponse [18:32:06]1017 (14) - 77093643461234 [18:32:06]1041 (16) - 0000000000871800 [18:32:06]1040 (4) - 49843 [18:32:06]1012 (4) - 18.08.2024 12:27 [18:32:06]1206 (1) - 0 [18:32:06]OFD Sender: Remove packet 49843 [18:32:06]ProducePacketName [18:32:06]name=ofd_packets/00049843 [18:32:06]NVStorageDeleteData [18:32:06]Write to MH i2c: 01 00 00 0E 06 14 [18:32:06]Write i2c OK [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: 01 [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: 01 07 00 [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 8D 0C B4 [18:32:06]RasterBufferAndPrint [18:32:06]line [18:32:06]line [18:32:06]line [18:32:06]line [18:32:06]line [18:32:06]written 0, free lines is 3220 [18:32:06]MH_Cut [18:32:06]Write to MH i2c: D1 01 00 15 06 01 ED [18:32:06]Write i2c OK [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: D1 [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: D1 01 00 [18:32:06]MH_I2C_Read... [18:32:06]Read from MH i2c: D1 01 00 15 06 00 EC [18:32:06]Write to MH i2c: 01 00 00 16 06 1C [18:32:06]Write i2c OK [18:32:06]MH_I2C_Read... [18:32:06]OFD Sender: No OFD packet to send [18:32:07]*** Cut start [18:32:07]*** Purtial cut [18:32:07]*** Stage 1: CUTSNS_PIN = 1 [18:32:07]Read from MH i2c: 01 [18:32:07]MH_I2C_Read... [18:32:07]*** Stop cut motor [18:32:07]*** Cut end [18:32:07]Read from MH i2c: 01 07 00 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 FF 0F 31 [18:32:07]process_action close_receipt done [18:32:07]requested_data is exist [18:32:07]produce_requested_data [18:32:07]requested_item fm.sn is exist - process it [18:32:07]wFMCommunicate request_size=4 [18:32:07]MH_SAM_APDU [18:32:07]CAPDU: 80 11 00 00 [18:32:07]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [18:32:07]Write i2c OK [18:32:07]MH_I2C_Read... [18:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:07]Read from MH i2c: E2 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 17 00 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E2 [18:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:32:07]wFMCommunicate OK [18:32:07]requested_item fd.num is exist - process it [18:32:07]SAM_PROTO_GetFieldsCounters [18:32:07]wFMCommunicate request_size=4 [18:32:07]MH_SAM_APDU [18:32:07]CAPDU: 80 13 00 00 [18:32:07]Write to MH i2c: E2 08 00 18 06 80 13 00 00 00 00 00 00 9A [18:32:07]Write i2c OK [18:32:07]MH_I2C_Read... [18:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:07]Read from MH i2c: E2 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 62 00 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 62 00 18 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:07]wFMCommunicate OK [18:32:07]SAM_PROTO_GetFieldsCounters done [18:32:07]requested_item shift.num is exist - process it [18:32:07]requested_item shift.opened is exist - process it [18:32:07]req_shift_opened [18:32:07]FM_GetShiftState [18:32:07]SAM_PROTO_GetShiftState [18:32:07]wFMCommunicate request_size=4 [18:32:07]MH_SAM_APDU [18:32:07]CAPDU: 80 13 01 00 [18:32:07]Write to MH i2c: E2 08 00 19 06 80 13 01 00 00 00 00 00 9C [18:32:07]Write i2c OK [18:32:07]MH_I2C_Read... [18:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:07]Read from MH i2c: E2 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 0E 00 [18:32:07]MH_I2C_Read... [18:32:07]Read from MH i2c: E2 0E 00 19 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B9 [18:32:07]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:32:07]wFMCommunicate OK [18:32:07]SAM_PROTO_GetShiftState done [18:32:07]FM_GetShiftState done [18:32:07]req_shift_opened done [18:32:07]requested_item shift.open_date is exist - process it [18:32:07]req_shift_open_date [18:32:07]req_shift_open_date done [18:32:07]produce_requested_data done [18:32:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49843,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:32:07]process_action_free close_receipt [18:32:07]json_value_free [18:32:07]json_value_free done [18:32:07]process_json_proto returns [18:32:07]Send response to host [18:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49843,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:32:07]free response buf [18:32:07]execute_script done [18:32:07]execute_script returns [18:32:07]free content buf [18:32:07]Sock 7.Close socket [18:32:07]Sock 7.Thread stoped [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:27]accept exits with 9 [18:33:27]New connection [18:33:27]New thread 3067198820 created [18:33:27]Thread 3067055460 joined [18:33:27]Waiting for new connection... [18:33:27] Sock 9.Parse request [18:33:27]Sock 9.Check first char [18:33:27]Sock 9.First char is OK [18:33:27]request: POST /json_proto HTTP/1.0 [18:33:27]Method: POST [18:33:27]URL: /json_proto [18:33:27]Method is POST - this is cgi request [18:33:27]url: /json_proto [18:33:27]query_string will be loaded in cgi processing [18:33:27]execute_cgi json_proto POST (null) [18:33:27]execute_cgi path=json_proto method=POST [18:33:27]POST find Content-Length [18:33:27]Host: 172.17.46.196:8080 [18:33:27]Content-Length: 1292 [18:33:27]Content-Type: application/json [18:33:27] [18:33:27]POST finish read [18:33:27]Found Content-Length = 1292 [18:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190020", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 316.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:27]execute_script... [18:33:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190020", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 316.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:27]POST & json_proto [18:33:27]process_json_proto [18:33:27]json parsed OK: [18:33:27]protocol is kg_v1.0 [18:33:27]action value=close_receipt [18:33:27]process_action close_receipt [18:33:27]cmd_close_receipt [18:33:27]MH_GetDate [18:33:27]Write to MH i2c: F0 00 00 1A 06 0F [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 09 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: F0 09 00 1A 06 00 79 3E C2 66 27 15 C2 66 5B [18:33:27]GetLastDocTimeStamp 1724005925 [18:33:27]current date 1724006009 [18:33:27]FM_GetShiftState [18:33:27]SAM_PROTO_GetShiftState [18:33:27]wFMCommunicate request_size=4 [18:33:27]MH_SAM_APDU [18:33:27]CAPDU: 80 13 01 00 [18:33:27]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [18:33:27]Write i2c OK [18:33:27]MH_I2C_Read... [18:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:27]Read from MH i2c: E2 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 0E 00 [18:33:27]MH_I2C_Read... [18:33:27]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BB [18:33:27]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:33:27]wFMCommunicate OK [18:33:27]SAM_PROTO_GetShiftState done [18:33:27]FM_GetShiftState done [18:33:27]opened in 1723939759 [18:33:27]opened+sec_in_day 1724026159 [18:33:27]quantity*price = 11500 [18:33:27]sum+1 = 11501 [18:33:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 316.00 НСП 1% : 2.80 НДС 12% : 33.55 Наличными: 0.00 Безнал.: 316.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 110 18.08.2024 18:33 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49844 ФПД: 132586350439317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183329&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49844&fm=132586350439317&tin=02508201610067®Number=0000000000092546&sum=31600 0 [18:33:28]StoreToDocumentArchive [18:33:28]shift 466 fd 49844 [18:33:28]save to /storage/0466/doc_00049844 [18:33:28]save last doc name /storage/0466/doc_00049844 to /storage/kkm_last_doc_name [18:33:28]save OK [18:33:28]Clear old archive folders... [18:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=485 [18:33:28]tlvbuf is 00FA3D50 [18:33:28]SAM_PROTO_ClearQueue [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 09 00 00 [18:33:28]Write to MH i2c: E2 08 00 28 06 80 09 00 00 00 00 00 00 A0 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [18:33:28]RAPDU: 90 00 [18:33:28]wFMCommunicate OK [18:33:28]SAM_PROTO_ClearQueue done [18:33:28]KKMCreateOFDPacket [18:33:28]OFDProtocolAddRootSTLVToBuf [18:33:28]FM_MakeSignedData [18:33:28]FM_MakeSignedData [18:33:28]SAM_PROTO_SignData [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 0D 01 02 [18:33:28]Write to MH i2c: E2 08 00 29 06 80 0D 01 02 00 00 00 00 A8 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=255 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 02 02 FA 03 00 E5 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 [18:33:29]Write to MH i2c: E2 02 01 2A 06 80 0D 02 02 FA 00 03 00 E5 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 00 00 BC [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=244 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 02 02 EF D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 79 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C2 00 00 35 04 06 00 78 96 2A 51 EB 95 [18:33:29]Write to MH i2c: E2 F7 00 2B 06 80 0D 02 02 EF 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 79 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C2 00 00 35 04 06 00 78 96 2A 51 EB 95 00 00 33 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 03 02 [18:33:29]Write to MH i2c: E2 08 00 2C 06 80 0D 03 02 00 00 00 00 AD [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0B 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0B 00 2C 06 00 F3 2D 86 56 3B 19 0D AE 90 00 B9 [18:33:29]RAPDU: F3 2D 86 56 3B 19 0D AE 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_SignData done [18:33:29]FM_MakeSignedData done [18:33:29]CreateOFDProtocolMessage [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 11 00 00 [18:33:29]Write to MH i2c: E2 08 00 2D 06 80 11 00 00 00 00 00 00 AD [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 17 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 17 00 2D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [18:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:33:30]wFMCommunicate OK [18:33:30]CreateOFDProtocolMessage done [18:33:30]OFDSenderStorePacket 49844 [18:33:30]StoreOFDPacket docnum=49844 [18:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F9 01 00 00 4F BF F1 01 EA 71 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 79 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C2 00 00 35 04 06 00 78 96 2A 51 EB 95 F3 2D 86 56 3B 19 0D AE [18:33:30]CheckFolder [18:33:30]dirname=/storage/ofd_packets [18:33:30]CheckFolder done [18:33:30]ProducePacketName [18:33:30]name=ofd_packets/00049844 [18:33:30]NVStorageSaveData ofd_packets/00049844 [18:33:30]File name is /storage/ofd_packets/00049844 [18:33:30]Write 535 bytes [18:33:30]NVStorageSaveData done [18:33:30]OFDSenderStorePacket done [18:33:30]KKMCreateOFDPacket done [18:33:30]NVStorageSaveData kkm_last_timestamp [18:33:30]File name is /storage/kkm_last_timestamp [18:33:30]Write 4 bytes [18:33:30]NVStorageSaveData done [18:33:30]ExternCall_PrintAddStr [18:33:30]wPrintStart [18:33:30]Write to MH i2c: 01 00 00 2E 06 34 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [18:33:30]RasterBufferAndPrint [18:33:30]line Счет N : (3)190020 [18:33:30]line ИНН: 02508201610067 [18:33:30]line Контрольно-Кассовый Чек [18:33:30]line ПРОДАЖА [18:33:30]line Товар: 2000036210013 [18:33:30]line Кофе Капучино (GABB TRADE) [18:33:30]line 1.000 * 115.00 [18:33:30]line = 115.00 [18:33:30]line НДС 12% НСП 1% [18:33:30]line > о реализуемом товаре [18:33:30]line Товар: 48742245 [18:33:30]line Сигареты Parliament Silver Blue [18:33:30]line 1.000 * 151.00 [18:33:30]line = 151.00 [18:33:30]line НДС 12% НСП 1% [18:33:30]line > о реализуемом товаре [18:33:30]line Товар: 4700000160358 [18:33:30]line Вода Легенда 1л [18:33:30]line 1.000 * 50.00 [18:33:30]line = 50.00 [18:33:30]line НДС 12% НСП 1% [18:33:30]line > о реализуемом товаре [18:33:30]line ИТОГО: 316.00 [18:33:30]line НСП 1% : 2.80 [18:33:30]line НДС 12% : 33.55 [18:33:30]line Наличными: 0.00 [18:33:30]line Безнал.: 316.00 [18:33:30]line Место: АЗС № 95 "Партнер Нефть" [18:33:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:33:30]line СНО: Общий режим [18:33:30]line Чек 110 18.08.2024 18:33 [18:33:30]line Смена: 466 ФФД: 1.0 [18:33:30]line ЗНМ: 0300000078 [18:33:30]line РНМ: 0000000000092546 [18:33:30]line Версия ККМ: 001 [18:33:30]line Платежная система: O! деньги [18:33:30]line ФМ: 0000000000871800 [18:33:30]line ФД: 49844 [18:33:30]line ФПД: 132586350439317 [18:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183329&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49844&fm=132586350439317&tin=02508201610067®Number=0000000000092546&sum=31600 [18:33:30]line 0 [18:33:30]written 0, free lines is 4095 [18:33:30]OFD Sender: Processing packet 49844 [packets to send 21, broken 20] [18:33:30]ProducePacketName [18:33:30]name=ofd_packets/00049844 [18:33:30]OFD Sender: To server: pG, [18:33:30]CommunicateWithHost lk.salyk.kg:30040 [18:33:30]ConnectInit lk.salyk.kg [18:33:30]Connected sock=10 [18: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 38 30 30 F9 01 00 00 4F BF F1 01 EA 71 5A 03 01 00 03 00 E5 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 79 3E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C2 00 00 35 04 06 00 78 96 2A 51 EB 95 F3 2D 86 56 3B 19 0D AE [18:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EB 21 47 00 A6 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B4 C2 00 00 F4 03 04 00 ED E8 C1 66 B6 04 01 00 00 72 92 40 77 91 18 2D 9A [18:33:30]CommunicateWithHost err = 0 [18:33:30]CheckOFDResponse [18:33:30]1017 (14) - 77093643461234 [18:33:30]1041 (16) - 0000000000871800 [18:33:30]1040 (4) - 49844 [18:33:30]1012 (4) - 18.08.2024 12:28 [18:33:30]1206 (1) - 0 [18:33:30]OFD Sender: Remove packet 49844 [18:33:30]ProducePacketName [18:33:30]name=ofd_packets/00049844 [18:33:30]NVStorageDeleteData [18:33:30]Write to MH i2c: 01 00 00 65 06 6B [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 F6 0B 73 [18:33:30]RasterBufferAndPrint [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]written 0, free lines is 3070 [18:33:30]MH_Cut [18:33:30]Write to MH i2c: D1 01 00 6C 06 01 44 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 01 00 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 01 00 6C 06 00 43 [18:33:30]Write to MH i2c: 01 00 00 6D 06 73 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:31]OFD Sender: No OFD packet to send [18:33:31]*** Cut start [18:33:31]*** Purtial cut [18:33:31]*** CUTSNS_PIN = 0 [18:33:31]*** Stage 1: CUTSNS_PIN = 1 [18:33:33]Read from MH i2c: 01 [18:33:33]MH_I2C_Read... [18:33:33]*** Stop cut motor [18:33:33]*** Cut end [18:33:33]Read from MH i2c: 01 07 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [18:33:33]process_action close_receipt done [18:33:33]requested_data is exist [18:33:33]produce_requested_data [18:33:33]requested_item fm.sn is exist - process it [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 11 00 00 [18:33:33]Write to MH i2c: E2 08 00 6E 06 80 11 00 00 00 00 00 00 EE [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:33]Read from MH i2c: E2 17 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 17 00 6E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 39 [18:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:33:33]wFMCommunicate OK [18:33:33]requested_item fd.num is exist - process it [18:33:33]SAM_PROTO_GetFieldsCounters [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 00 00 [18:33:33]Write to MH i2c: E2 08 00 6F 06 80 13 00 00 00 00 00 00 F1 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 62 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 62 00 6F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetFieldsCounters done [18:33:33]requested_item shift.num is exist - process it [18:33:33]requested_item shift.opened is exist - process it [18:33:33]req_shift_opened [18:33:33]FM_GetShiftState [18:33:33]SAM_PROTO_GetShiftState [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 01 00 [18:33:33]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 10 [18:33:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetShiftState done [18:33:33]FM_GetShiftState done [18:33:33]req_shift_opened done [18:33:33]requested_item shift.open_date is exist - process it [18:33:33]req_shift_open_date [18:33:33]req_shift_open_date done [18:33:33]produce_requested_data done [18:33:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49844,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:33:33]process_action_free close_receipt [18:33:33]json_value_free [18:33:33]json_value_free done [18:33:33]process_json_proto returns [18:33:33]Send response to host [18:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49844,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:33:33]free response buf [18:33:33]execute_script done [18:33:33]execute_script returns [18:33:33]free content buf [18:33:33]Sock 9.Close socket [18:33:33]Sock 9.Thread stoped [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:18]accept exits with 7 [18:38:18]New connection [18:38:18]New thread 3067055460 created [18:38:18]Thread 3067198820 joined [18:38:18]Waiting for new connection... [18:38:18] Sock 7.Parse request [18:38:18]Sock 7.Check first char [18:38:18]Sock 7.First char is OK [18:38:18]request: POST /json_proto HTTP/1.0 [18:38:18]Method: POST [18:38:18]URL: /json_proto [18:38:18]Method is POST - this is cgi request [18:38:18]url: /json_proto [18:38:18]query_string will be loaded in cgi processing [18:38:18]execute_cgi json_proto POST (null) [18:38:18]execute_cgi path=json_proto method=POST [18:38:18]POST find Content-Length [18:38:18]Host: 172.17.46.196:8080 [18:38:18]Content-Length: 646 [18:38:18]Content-Type: application/json [18:38:18] [18:38:18]POST finish read [18:38:18]Found Content-Length = 646 [18:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190021", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:18]execute_script... [18:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190021", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:18]POST & json_proto [18:38:18]process_json_proto [18:38:18]json parsed OK: [18:38:18]protocol is kg_v1.0 [18:38:18]action value=close_receipt [18:38:18]process_action close_receipt [18:38:18]cmd_close_receipt [18:38:18]MH_GetDate [18:38:18]Write to MH i2c: F0 00 00 71 06 66 [18:38:18]Write i2c OK [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: F0 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: F0 09 00 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: F0 09 00 71 06 00 9B 3F C2 66 27 15 C2 66 D5 [18:38:18]GetLastDocTimeStamp 1724006009 [18:38:18]current date 1724006299 [18:38:18]FM_GetShiftState [18:38:18]SAM_PROTO_GetShiftState [18:38:18]wFMCommunicate request_size=4 [18:38:18]MH_SAM_APDU [18:38:18]CAPDU: 80 13 01 00 [18:38:18]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [18:38:18]Write i2c OK [18:38:18]MH_I2C_Read... [18:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:18]Read from MH i2c: E2 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 0E 00 [18:38:18]MH_I2C_Read... [18:38:18]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 12 [18:38:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:38:18]wFMCommunicate OK [18:38:18]SAM_PROTO_GetShiftState done [18:38:18]FM_GetShiftState done [18:38:18]opened in 1723939759 [18:38:18]opened+sec_in_day 1724026159 [18:38:18]quantity*price = 15200 [18:38:18]sum+1 = 15201 [18:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.34 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 111 18.08.2024 18:38 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49845 ФПД: 235349585884256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183820&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49845&fm=235349585884256&tin=02508201610067®Number=0000000000092546&sum=15200 0 [18:38:19]StoreToDocumentArchive [18:38:19]shift 466 fd 49845 [18:38:19]save to /storage/0466/doc_00049845 [18:38:19]save last doc name /storage/0466/doc_00049845 to /storage/kkm_last_doc_name [18:38:19]save OK [18:38:19]Clear old archive folders... [18:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:38:19]tlvbuf is 00F8E7D0 [18:38:19]SAM_PROTO_ClearQueue [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 09 00 00 [18:38:19]Write to MH i2c: E2 08 00 7F 06 80 09 00 00 00 00 00 00 F7 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_ClearQueue done [18:38:19]KKMCreateOFDPacket [18:38:19]OFDProtocolAddRootSTLVToBuf [18:38:19]FM_MakeSignedData [18:38:19]FM_MakeSignedData [18:38:19]SAM_PROTO_SignData [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 01 02 [18:38:19]Write to MH i2c: E2 08 00 80 06 80 0D 01 02 00 00 00 00 FF [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]wFMCommunicate request_size=255 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9C 3F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [18:38:19]Write to MH i2c: E2 02 01 81 06 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9C 3F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 71 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]wFMCommunicate request_size=37 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C2 00 00 35 04 06 00 D6 0C 98 76 F4 60 [18:38:19]Write to MH i2c: E2 28 00 82 06 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C2 00 00 35 04 06 00 D6 0C 98 76 F4 60 00 00 0C [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [18:38:19]RAPDU: 90 00 [18:38:19]wFMCommunicate OK [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 0D 03 02 [18:38:19]Write to MH i2c: E2 08 00 83 06 80 0D 03 02 00 00 00 00 04 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:20]Read from MH i2c: E2 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 0B 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 0B 00 83 06 00 F9 60 C5 EF 34 9A 52 C7 90 00 F9 [18:38:20]RAPDU: F9 60 C5 EF 34 9A 52 C7 90 00 [18:38:20]wFMCommunicate OK [18:38:20]SAM_PROTO_SignData done [18:38:20]FM_MakeSignedData done [18:38:20]CreateOFDProtocolMessage [18:38:20]wFMCommunicate request_size=4 [18:38:20]MH_SAM_APDU [18:38:20]CAPDU: 80 11 00 00 [18:38:20]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:20]Read from MH i2c: E2 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 17 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4F [18:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:38:20]wFMCommunicate OK [18:38:20]CreateOFDProtocolMessage done [18:38:20]OFDSenderStorePacket 49845 [18:38:20]StoreOFDPacket docnum=49845 [18:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 1A DB 22 01 BF 89 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9C 3F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C2 00 00 35 04 06 00 D6 0C 98 76 F4 60 F9 60 C5 EF 34 9A 52 C7 [18:38:20]CheckFolder [18:38:20]dirname=/storage/ofd_packets [18:38:20]CheckFolder done [18:38:20]ProducePacketName [18:38:20]name=ofd_packets/00049845 [18:38:20]NVStorageSaveData ofd_packets/00049845 [18:38:20]File name is /storage/ofd_packets/00049845 [18:38:20]Write 328 bytes [18:38:20]NVStorageSaveData done [18:38:20]OFDSenderStorePacket done [18:38:20]KKMCreateOFDPacket done [18:38:20]NVStorageSaveData kkm_last_timestamp [18:38:20]File name is /storage/kkm_last_timestamp [18:38:20]Write 4 bytes [18:38:20]NVStorageSaveData done [18:38:20]ExternCall_PrintAddStr [18:38:20]wPrintStart [18:38:20]Write to MH i2c: 01 00 00 85 06 8B [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 07 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [18:38:20]RasterBufferAndPrint [18:38:20]line Счет N : (3)190021 [18:38:20]line ИНН: 02508201610067 [18:38:20]line Контрольно-Кассовый Чек [18:38:20]line ПРОДАЖА [18:38:20]line Товар: 90162602 [18:38:20]line Энерг напиток Red bull 0,25л [18:38:20]line 1.000 * 152.00 [18:38:20]line = 152.00 [18:38:20]line НДС 12% НСП 1% [18:38:20]line > о реализуемом товаре [18:38:20]line ИТОГО: 152.00 [18:38:20]line НСП 1% : 1.34 [18:38:20]line НДС 12% : 16.14 [18:38:20]line Наличными: 152.00 [18:38:20]line Безнал.: 0.00 [18:38:20]line Место: АЗС № 95 "Партнер Нефть" [18:38:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:38:20]line СНО: Общий режим [18:38:20]line Чек 111 18.08.2024 18:38 [18:38:20]line Смена: 466 ФФД: 1.0 [18:38:20]line ЗНМ: 0300000078 [18:38:20]line РНМ: 0000000000092546 [18:38:20]line Версия ККМ: 001 [18:38:20]line ФМ: 0000000000871800 [18:38:20]line ФД: 49845 [18:38:20]line ФПД: 235349585884256 [18:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183820&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49845&fm=235349585884256&tin=02508201610067®Number=0000000000092546&sum=15200 [18:38:20]line 0 [18:38:20]OFD Sender: Processing packet 49845 [packets to send 21, broken 20] [18:38:20]ProducePacketName [18:38:20]name=ofd_packets/00049845 [18:38:20]OFD Sender: To server: pG, [18:38:20]CommunicateWithHost lk.salyk.kg:30040 [18:38:20]ConnectInit lk.salyk.kg [18:38:20]written 0, free lines is 4095 [18:38:20]Connected sock=10 [18:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 1A DB 22 01 BF 89 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9C 3F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C2 00 00 35 04 06 00 D6 0C 98 76 F4 60 F9 60 C5 EF 34 9A 52 C7 [18:38:20]Write to MH i2c: 01 00 00 AD 06 B3 [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 07 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: 01 07 00 AD 06 00 00 00 00 00 EA 0C B0 [18:38:20]RasterBufferAndPrint [18:38:20]line [18:38:20]line [18:38:20]line [18:38:20]line [18:38:20]line [18:38:20]written 0, free lines is 3312 [18:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AC 53 47 00 E1 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B5 C2 00 00 F4 03 04 00 10 EA C1 66 B6 04 01 00 00 C3 27 8B C6 26 43 27 37 [18:38:20]CommunicateWithHost err = 0 [18:38:20]CheckOFDResponse [18:38:20]1017 (14) - 77093643461234 [18:38:20]1041 (16) - 0000000000871800 [18:38:20]1040 (4) - 49845 [18:38:20]1012 (4) - 18.08.2024 12:33 [18:38:20]1206 (1) - 0 [18:38:20]OFD Sender: Remove packet 49845 [18:38:20]ProducePacketName [18:38:20]name=ofd_packets/00049845 [18:38:20]NVStorageDeleteData [18:38:20]MH_Cut [18:38:20]Write to MH i2c: D1 01 00 B4 06 01 8C [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: D1 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: D1 01 00 [18:38:20]MH_I2C_Read... [18:38:20]Read from MH i2c: D1 01 00 B4 06 00 8B [18:38:20]Write to MH i2c: 01 00 00 B5 06 BB [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:21]OFD Sender: No OFD packet to send [18:38:21]*** Cut start [18:38:21]*** Purtial cut [18:38:21]*** Stage 1: CUTSNS_PIN = 1 [18:38:21]Read from MH i2c: 01 [18:38:21]MH_I2C_Read... [18:38:21]*** Stop cut motor [18:38:21]*** Cut end [18:38:21]Read from MH i2c: 01 07 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 FF 0F D0 [18:38:21]process_action close_receipt done [18:38:21]requested_data is exist [18:38:21]produce_requested_data [18:38:21]requested_item fm.sn is exist - process it [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 11 00 00 [18:38:21]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [18:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:38:21]wFMCommunicate OK [18:38:21]requested_item fd.num is exist - process it [18:38:21]SAM_PROTO_GetFieldsCounters [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 13 00 00 [18:38:21]Write to MH i2c: E2 08 00 B7 06 80 13 00 00 00 00 00 00 39 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 62 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 62 00 B7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_GetFieldsCounters done [18:38:22]requested_item shift.num is exist - process it [18:38:22]requested_item shift.opened is exist - process it [18:38:22]req_shift_opened [18:38:22]FM_GetShiftState [18:38:22]SAM_PROTO_GetShiftState [18:38:22]wFMCommunicate request_size=4 [18:38:22]MH_SAM_APDU [18:38:22]CAPDU: 80 13 01 00 [18:38:22]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 [18:38:22]MH_I2C_Read... [18:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:22]Read from MH i2c: E2 0E 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 58 [18:38:22]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:38:22]wFMCommunicate OK [18:38:22]SAM_PROTO_GetShiftState done [18:38:22]FM_GetShiftState done [18:38:22]req_shift_opened done [18:38:22]requested_item shift.open_date is exist - process it [18:38:22]req_shift_open_date [18:38:22]req_shift_open_date done [18:38:22]produce_requested_data done [18:38:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49845,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:38:22]process_action_free close_receipt [18:38:22]json_value_free [18:38:22]json_value_free done [18:38:22]process_json_proto returns [18:38:22]Send response to host [18:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49845,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:38:22]free response buf [18:38:22]execute_script done [18:38:22]execute_script returns [18:38:22]free content buf [18:38:22]Sock 7.Close socket [18:38:22]Sock 7.Thread stoped [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:37]int [18:38:37]Write to MH i2c: 01 00 00 B9 06 BF [18:38:37]*** FLAG_PRN_KEY set [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 B9 06 00 08 00 00 00 FF 0F DC [18:38:37]state=0 [18:38:37]Key pressed [18:38:37]Feed [18:38:37]Write to MH i2c: D8 00 00 BA 06 97 [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D8 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D8 01 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D8 01 00 BA 06 00 98 [18:38:37]int [18:38:37]Write to MH i2c: 01 00 00 BB 06 C1 [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 BB 06 00 48 00 00 00 3C 00 4C [18:38:37]state=2 [18:38:37]Key pressed [18:38:37]int [18:38:37]Write to MH i2c: 01 00 00 BC 06 C2 [18:38:37]*** FLAG_PRN_KEY reset [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 F5 0F CD [18:38:37]state=2 [18:38:37]Stop feed [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:53]accept exits with 9 [18:40:53]New connection [18:40:53]New thread 3067198820 created [18:40:53]Thread 3067055460 joined [18:40:53]Waiting for new connection... [18:40:53] Sock 9.Parse request [18:40:53]Sock 9.Check first char [18:40:53]Sock 9.First char is OK [18:40:53]request: POST /json_proto HTTP/1.0 [18:40:53]Method: POST [18:40:53]URL: /json_proto [18:40:53]Method is POST - this is cgi request [18:40:53]url: /json_proto [18:40:53]query_string will be loaded in cgi processing [18:40:53]execute_cgi json_proto POST (null) [18:40:53]execute_cgi path=json_proto method=POST [18:40:53]POST find Content-Length [18:40:53]Host: 172.17.46.196:8080 [18:40:53]Content-Length: 655 [18:40:53]Content-Type: application/json [18:40:53] [18:40:53]POST finish read [18:40:53]Found Content-Length = 655 [18:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190022", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:53]execute_script... [18:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190022", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:53]POST & json_proto [18:40:53]process_json_proto [18:40:53]json parsed OK: [18:40:53]protocol is kg_v1.0 [18:40:53]action value=close_receipt [18:40:53]process_action close_receipt [18:40:53]cmd_close_receipt [18:40:53]MH_GetDate [18:40:53]Write to MH i2c: F0 00 00 BD 06 B2 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: F0 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: F0 09 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: F0 09 00 BD 06 00 36 40 C2 66 27 15 C2 66 BD [18:40:53]GetLastDocTimeStamp 1724006300 [18:40:53]current date 1724006454 [18:40:53]FM_GetShiftState [18:40:53]SAM_PROTO_GetShiftState [18:40:53]wFMCommunicate request_size=4 [18:40:53]MH_SAM_APDU [18:40:53]CAPDU: 80 13 01 00 [18:40:53]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:53]Read from MH i2c: E2 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 0E 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 5E [18:40:53]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:40:53]wFMCommunicate OK [18:40:53]SAM_PROTO_GetShiftState done [18:40:53]FM_GetShiftState done [18:40:53]opened in 1723939759 [18:40:53]opened+sec_in_day 1724026159 [18:40:53]quantity*price = 26000 [18:40:53]sum+1 = 26001 [18:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 112 18.08.2024 18:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49846 ФПД: 129764446945180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49846&fm=129764446945180&tin=02508201610067®Number=0000000000092546&sum=26000 0 [18:40:54]StoreToDocumentArchive [18:40:54]shift 466 fd 49846 [18:40:54]save to /storage/0466/doc_00049846 [18:40:54]save last doc name /storage/0466/doc_00049846 to /storage/kkm_last_doc_name [18:40:54]save OK [18:40:54]Clear old archive folders... [18:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=279 [18:40:54]tlvbuf is 00F8E1E0 [18:40:54]SAM_PROTO_ClearQueue [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 09 00 00 [18:40:54]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [18:40:54]RAPDU: 90 00 [18:40:54]wFMCommunicate OK [18:40:54]SAM_PROTO_ClearQueue done [18:40:54]KKMCreateOFDPacket [18:40:54]OFDProtocolAddRootSTLVToBuf [18:40:54]FM_MakeSignedData [18:40:54]FM_MakeSignedData [18:40:54]SAM_PROTO_SignData [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 0D 01 02 [18:40:54]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [18:40:54]RAPDU: 90 00 [18:40:54]wFMCommunicate OK [18:40:54]wFMCommunicate request_size=255 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 37 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 [18:40:54]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 37 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 00 00 28 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [18:40:54]RAPDU: 90 00 [18:40:54]wFMCommunicate OK [18:40:54]wFMCommunicate request_size=38 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C2 00 00 35 04 06 00 76 05 23 C3 BF 9C [18:40:54]Write to MH i2c: E2 29 00 CE 06 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C2 00 00 35 04 06 00 76 05 23 C3 BF 9C 00 00 03 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [18:40:54]RAPDU: 90 00 [18:40:54]wFMCommunicate OK [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 0D 03 02 [18:40:54]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:55]Read from MH i2c: E2 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 0B 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 0B 00 CF 06 00 69 3F 88 57 AB 59 0E 9C 90 00 86 [18:40:55]RAPDU: 69 3F 88 57 AB 59 0E 9C 90 00 [18:40:55]wFMCommunicate OK [18:40:55]SAM_PROTO_SignData done [18:40:55]FM_MakeSignedData done [18:40:55]CreateOFDProtocolMessage [18:40:55]wFMCommunicate request_size=4 [18:40:55]MH_SAM_APDU [18:40:55]CAPDU: 80 11 00 00 [18:40:55]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:55]Read from MH i2c: E2 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 17 00 [18:40:55]MH_I2C_Read... [18:40:55]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 38 30 30 90 00 9B [18:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:40:55]wFMCommunicate OK [18:40:55]CreateOFDProtocolMessage done [18:40:55]OFDSenderStorePacket 49846 [18:40:55]StoreOFDPacket docnum=49846 [18:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2B 01 00 00 30 99 23 01 90 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 37 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C2 00 00 35 04 06 00 76 05 23 C3 BF 9C 69 3F 88 57 AB 59 0E 9C [18:40:55]CheckFolder [18:40:55]dirname=/storage/ofd_packets [18:40:55]CheckFolder done [18:40:55]ProducePacketName [18:40:55]name=ofd_packets/00049846 [18:40:55]NVStorageSaveData ofd_packets/00049846 [18:40:55]File name is /storage/ofd_packets/00049846 [18:40:55]Write 329 bytes [18:40:55]NVStorageSaveData done [18:40:55]OFDSenderStorePacket done [18:40:55]KKMCreateOFDPacket done [18:40:55]NVStorageSaveData kkm_last_timestamp [18:40:55]File name is /storage/kkm_last_timestamp [18:40:55]Write 4 bytes [18:40:55]NVStorageSaveData done [18:40:55]ExternCall_PrintAddStr [18:40:55]wPrintStart [18:40:55]Write to MH i2c: 01 00 00 D1 06 D7 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 07 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [18:40:55]RasterBufferAndPrint [18:40:55]line Счет N : (3)190022 [18:40:55]line ИНН: 02508201610067 [18:40:55]line Контрольно-Кассовый Чек [18:40:55]line ПРОДАЖА [18:40:55]line Товар: 4700002086380 [18:40:55]line Водка Сары челек 0,35л [18:40:55]line 1.000 * 260.00 [18:40:55]line = 260.00 [18:40:55]line НДС 12% НСП 1% [18:40:55]line > о реализуемом товаре [18:40:55]line ИТОГО: 260.00 [18:40:55]line НСП 1% : 2.30 [18:40:55]line НДС 12% : 27.61 [18:40:55]line Наличными: 260.00 [18:40:55]line Безнал.: 0.00 [18:40:55]line Место: АЗС № 95 "Партнер Нефть" [18:40:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:40:55]line СНО: Общий режим [18:40:55]line Чек 112 18.08.2024 18:40 [18:40:55]line Смена: 466 ФФД: 1.0 [18:40:55]line ЗНМ: 0300000078 [18:40:55]line РНМ: 0000000000092546 [18:40:55]line Версия ККМ: 001 [18:40:55]line ФМ: 0000000000871800 [18:40:55]line ФД: 49846 [18:40:55]line ФПД: 129764446945180 [18:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49846&fm=129764446945180&tin=02508201610067®Number=0000000000092546&sum=26000 [18:40:55]line 0 [18:40:55]OFD Sender: Processing packet 49846 [packets to send 21, broken 20] [18:40:55]ProducePacketName [18:40:55]name=ofd_packets/00049846 [18:40:55]OFD Sender: To server: pG, [18:40:55]CommunicateWithHost lk.salyk.kg:30040 [18:40:55]ConnectInit lk.salyk.kg [18:40:55]written 0, free lines is 4095 [18:40:55]Write to MH i2c: 01 00 00 F9 06 FF [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 07 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 F4 0C 06 [18:40:55]RasterBufferAndPrint [18:40:55]line [18:40:55]line [18:40:55]line [18:40:55]line [18:40:55]line [18:40:55]written 0, free lines is 3323 [18:40:55]MH_Cut [18:40:55]Write to MH i2c: D1 01 00 00 07 01 D9 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: D1 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: D1 01 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: D1 01 00 00 07 00 D8 [18:40:55]Write to MH i2c: 01 00 00 01 07 08 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]Connected sock=10 [18:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2B 01 00 00 30 99 23 01 90 1A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 37 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C2 00 00 35 04 06 00 76 05 23 C3 BF 9C 69 3F 88 57 AB 59 0E 9C [18:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C 3B 47 00 DA C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B6 C2 00 00 F4 03 04 00 AB EA C1 66 B6 04 01 00 00 D8 AE CA 92 A0 38 38 FE [18:40:56]CommunicateWithHost err = 0 [18:40:56]CheckOFDResponse [18:40:56]1017 (14) - 77093643461234 [18:40:56]1041 (16) - 0000000000871800 [18:40:56]1040 (4) - 49846 [18:40:56]1012 (4) - 18.08.2024 12:35 [18:40:56]1206 (1) - 0 [18:40:56]OFD Sender: Remove packet 49846 [18:40:56]ProducePacketName [18:40:56]name=ofd_packets/00049846 [18:40:56]NVStorageDeleteData [18:40:56]*** Cut start [18:40:56]*** Purtial cut [18:40:56]*** CUTSNS_PIN = 0 [18:40:56]OFD Sender: No OFD packet to send [18:40:56]*** Stage 1: CUTSNS_PIN = 1 [18:40:58]Read from MH i2c: 01 [18:40:58]MH_I2C_Read... [18:40:58]*** Stop cut motor [18:40:58]*** Cut end [18:40:58]Read from MH i2c: 01 07 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [18:40:58]process_action close_receipt done [18:40:58]requested_data is exist [18:40:58]produce_requested_data [18:40:58]requested_item fm.sn is exist - process it [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 11 00 00 [18:40:58]Write to MH i2c: E2 08 00 02 07 80 11 00 00 00 00 00 00 83 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:58]Read from MH i2c: E2 17 00 [18:40:58]MH_I2C_Read... [18:40:58]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 38 30 30 90 00 CE [18:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:40:58]wFMCommunicate OK [18:40:58]requested_item fd.num is exist - process it [18:40:58]SAM_PROTO_GetFieldsCounters [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 13 00 00 [18:40:58]Write to MH i2c: E2 08 00 03 07 80 13 00 00 00 00 00 00 86 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 62 00 [18:40:58]MH_I2C_Read... [18:40:58]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:58]wFMCommunicate OK [18:40:58]SAM_PROTO_GetFieldsCounters done [18:40:58]requested_item shift.num is exist - process it [18:40:58]requested_item shift.opened is exist - process it [18:40:58]req_shift_opened [18:40:58]FM_GetShiftState [18:40:58]SAM_PROTO_GetShiftState [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 13 01 00 [18:40:58]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A5 [18:40:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:40:58]wFMCommunicate OK [18:40:58]SAM_PROTO_GetShiftState done [18:40:58]FM_GetShiftState done [18:40:58]req_shift_opened done [18:40:58]requested_item shift.open_date is exist - process it [18:40:58]req_shift_open_date [18:40:58]req_shift_open_date done [18:40:58]produce_requested_data done [18:40:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49846,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:40:58]process_action_free close_receipt [18:40:58]json_value_free [18:40:58]json_value_free done [18:40:58]process_json_proto returns [18:40:58]Send response to host [18:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49846,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:40:58]free response buf [18:40:58]execute_script done [18:40:58]execute_script returns [18:40:58]free content buf [18:40:58]Sock 9.Close socket [18:40:58]Sock 9.Thread stoped [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:55]accept exits with 7 [18:41:55]New connection [18:41:55]New thread 3067055460 created [18:41:55]Thread 3067198820 joined [18:41:55]Waiting for new connection... [18:41:55] Sock 7.Parse request [18:41:55]Sock 7.Check first char [18:41:55]Sock 7.First char is OK [18:41:55]request: POST /json_proto HTTP/1.0 [18:41:55]Method: POST [18:41:55]URL: /json_proto [18:41:55]Method is POST - this is cgi request [18:41:55]url: /json_proto [18:41:55]query_string will be loaded in cgi processing [18:41:55]execute_cgi json_proto POST (null) [18:41:55]execute_cgi path=json_proto method=POST [18:41:55]POST find Content-Length [18:41:55]Host: 172.17.46.196:8080 [18:41:55]Content-Length: 736 [18:41:55]Content-Type: application/json [18:41:55] [18:41:55]POST finish read [18:41:55]Found Content-Length = 736 [18:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190023", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 133.00, "quantity" : 1.000, "sum" : 133.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:55]execute_script... [18:41: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 : (3)190023", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 133.00, "quantity" : 1.000, "sum" : 133.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 133.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:55]POST & json_proto [18:41:55]process_json_proto [18:41:55]json parsed OK: [18:41:55]protocol is kg_v1.0 [18:41:55]action value=close_receipt [18:41:55]process_action close_receipt [18:41:55]cmd_close_receipt [18:41:55]MH_GetDate [18:41:55]Write to MH i2c: F0 00 00 05 07 FB [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: F0 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: F0 09 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: F0 09 00 05 07 00 74 40 C2 66 27 15 C2 66 44 [18:41:55]GetLastDocTimeStamp 1724006455 [18:41:55]current date 1724006516 [18:41:55]FM_GetShiftState [18:41:55]SAM_PROTO_GetShiftState [18:41:55]wFMCommunicate request_size=4 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 13 01 00 [18:41:55]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 0E 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A7 [18:41:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:41:55]wFMCommunicate OK [18:41:55]SAM_PROTO_GetShiftState done [18:41:55]FM_GetShiftState done [18:41:55]opened in 1723939759 [18:41:55]opened+sec_in_day 1724026159 [18:41:55]quantity*price = 13300 [18:41:55]sum+1 = 13301 [18:41:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 133.00 НСП 1% : 1.18 НДС 12% : 14.12 Наличными: 0.00 Безнал.: 133.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 113 18.08.2024 18:41 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49847 ФПД: 243591588919685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49847&fm=243591588919685&tin=02508201610067®Number=0000000000092546&sum=13300 0 [18:41:56]StoreToDocumentArchive [18:41:56]shift 466 fd 49847 [18:41:56]save to /storage/0466/doc_00049847 [18:41:56]save last doc name /storage/0466/doc_00049847 to /storage/kkm_last_doc_name [18:41:56]save OK [18:41:56]Clear old archive folders... [18:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=259 [18:41:56]tlvbuf is 00FAB6D0 [18:41:56]SAM_PROTO_ClearQueue [18:41:56]wFMCommunicate request_size=4 [18:41:56]MH_SAM_APDU [18:41:56]CAPDU: 80 09 00 00 [18:41:56]Write to MH i2c: E2 08 00 13 07 80 09 00 00 00 00 00 00 8C [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:56]Read from MH i2c: E2 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [18:41:56]RAPDU: 90 00 [18:41:56]wFMCommunicate OK [18:41:56]SAM_PROTO_ClearQueue done [18:41:56]KKMCreateOFDPacket [18:41:56]OFDProtocolAddRootSTLVToBuf [18:41:56]FM_MakeSignedData [18:41:56]FM_MakeSignedData [18:41:56]SAM_PROTO_SignData [18:41:56]wFMCommunicate request_size=4 [18:41:56]MH_SAM_APDU [18:41:56]CAPDU: 80 0D 01 02 [18:41:56]Write to MH i2c: E2 08 00 14 07 80 0D 01 02 00 00 00 00 94 [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:56]Read from MH i2c: E2 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [18:41:56]RAPDU: 90 00 [18:41:56]wFMCommunicate OK [18:41:56]wFMCommunicate request_size=255 [18:41:56]MH_SAM_APDU [18:41:56]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 75 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 [18:41:56]Write to MH i2c: E2 02 01 15 07 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 75 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 00 00 B2 [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]OFD Sender: No OFD packet to send [18:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:56]Read from MH i2c: E2 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [18:41:56]RAPDU: 90 00 [18:41:56]wFMCommunicate OK [18:41:56]wFMCommunicate request_size=18 [18:41:56]MH_SAM_APDU [18:41:56]CAPDU: 80 0D 02 02 0D C2 00 00 35 04 06 00 DD 8B 96 20 B9 85 [18:41:56]Write to MH i2c: E2 15 00 16 07 80 0D 02 02 0D 00 C2 00 00 35 04 06 00 DD 8B 96 20 B9 85 00 00 0E [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:56]Read from MH i2c: E2 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [18:41:56]RAPDU: 90 00 [18:41:56]wFMCommunicate OK [18:41:56]wFMCommunicate request_size=4 [18:41:56]MH_SAM_APDU [18:41:56]CAPDU: 80 0D 03 02 [18:41:56]Write to MH i2c: E2 08 00 17 07 80 0D 03 02 00 00 00 00 99 [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:57]Read from MH i2c: E2 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 0B 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 0B 00 17 07 00 83 8E F7 8C 7F 71 F6 10 90 00 24 [18:41:57]RAPDU: 83 8E F7 8C 7F 71 F6 10 90 00 [18:41:57]wFMCommunicate OK [18:41:57]SAM_PROTO_SignData done [18:41:57]FM_MakeSignedData done [18:41:57]CreateOFDProtocolMessage [18:41:57]wFMCommunicate request_size=4 [18:41:57]MH_SAM_APDU [18:41:57]CAPDU: 80 11 00 00 [18:41:57]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:57]Read from MH i2c: E2 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 17 00 [18:41:57]MH_I2C_Read... [18:41:57]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 38 30 30 90 00 E4 [18:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:41:57]wFMCommunicate OK [18:41:57]CreateOFDProtocolMessage done [18:41:57]OFDSenderStorePacket 49847 [18:41:57]StoreOFDPacket docnum=49847 [18:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 17 01 00 00 ED B7 0F 01 20 B0 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 75 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 C2 00 00 35 04 06 00 DD 8B 96 20 B9 85 83 8E F7 8C 7F 71 F6 10 [18:41:57]CheckFolder [18:41:57]dirname=/storage/ofd_packets [18:41:57]CheckFolder done [18:41:57]ProducePacketName [18:41:57]name=ofd_packets/00049847 [18:41:57]NVStorageSaveData ofd_packets/00049847 [18:41:57]File name is /storage/ofd_packets/00049847 [18:41:57]Write 309 bytes [18:41:57]NVStorageSaveData done [18:41:57]OFDSenderStorePacket done [18:41:57]KKMCreateOFDPacket done [18:41:57]NVStorageSaveData kkm_last_timestamp [18:41:57]File name is /storage/kkm_last_timestamp [18:41:57]Write 4 bytes [18:41:57]NVStorageSaveData done [18:41:57]ExternCall_PrintAddStr [18:41:57]wPrintStart [18:41:57]Write to MH i2c: 01 00 00 19 07 20 [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 07 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [18:41:57]RasterBufferAndPrint [18:41:57]line Счет N : (3)190023 [18:41:57]line ИНН: 02508201610067 [18:41:57]line Контрольно-Кассовый Чек [18:41:57]line ПРОДАЖА [18:41:57]line Товар: 48744713 [18:41:57]line LD Compact Purple Beat [18:41:57]line 1.000 * 133.00 [18:41:57]line = 133.00 [18:41:57]line НДС 12% НСП 1% [18:41:57]line > о реализуемом товаре [18:41:57]line ИТОГО: 133.00 [18:41:57]line НСП 1% : 1.18 [18:41:57]line НДС 12% : 14.12 [18:41:57]line Наличными: 0.00 [18:41:57]line Безнал.: 133.00 [18:41:57]line Место: АЗС № 95 "Партнер Нефть" [18:41:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:41:57]line СНО: Общий режим [18:41:57]line Чек 113 18.08.2024 18:41 [18:41:57]line Смена: 466 ФФД: 1.0 [18:41:57]line ЗНМ: 0300000078 [18:41:57]line РНМ: 0000000000092546 [18:41:57]line Версия ККМ: 001 [18:41:57]line Платежная система: O! деньги [18:41:57]line ФМ: 0000000000871800 [18:41:57]line ФД: 49847 [18:41:57]line ФПД: 243591588919685 [18:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49847&fm=243591588919685&tin=02508201610067®Number=0000000000092546&sum=13300 [18:41:57]OFD Sender: Processing packet 49847 [packets to send 21, broken 20] [18:41:57]ProducePacketName [18:41:57]name=ofd_packets/00049847 [18:41:57]OFD Sender: To server: pG, [18:41:57]CommunicateWithHost lk.salyk.kg:30040 [18:41:57]ConnectInit lk.salyk.kg [18:41:57]line 0 [18:41:57]written 0, free lines is 4095 [18:41:57]Connected sock=10 [18:41:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 17 01 00 00 ED B7 0F 01 20 B0 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 33 00 00 00 00 13 04 06 00 F4 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 75 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 C2 00 00 35 04 06 00 DD 8B 96 20 B9 85 83 8E F7 8C 7F 71 F6 10 [18:41:57]Write to MH i2c: 01 00 00 43 07 4A [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 07 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 07 00 43 07 00 00 00 00 00 D7 0C 34 [18:41:57]RasterBufferAndPrint [18:41:57]line [18:41:57]line [18:41:57]line [18:41:57]line [18:41:57]line [18:41:57]written 0, free lines is 3293 [18:41:57]MH_Cut [18:41:57]Write to MH i2c: D1 01 00 4A 07 01 23 [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: D1 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: D1 01 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: D1 01 00 4A 07 00 22 [18:41:57]Write to MH i2c: 01 00 00 4B 07 52 [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 44 E4 47 00 F9 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B7 C2 00 00 F4 03 04 00 E9 EA C1 66 B6 04 01 00 00 8F EE 5F D0 73 2E 84 AE [18:41:58]CommunicateWithHost err = 0 [18:41:58]CheckOFDResponse [18:41:58]1017 (14) - 77093643461234 [18:41:58]1041 (16) - 0000000000871800 [18:41:58]1040 (4) - 49847 [18:41:58]1012 (4) - 18.08.2024 12:36 [18:41:58]1206 (1) - 0 [18:41:58]OFD Sender: Remove packet 49847 [18:41:58]ProducePacketName [18:41:58]name=ofd_packets/00049847 [18:41:58]NVStorageDeleteData [18:41:58]OFD Sender: No OFD packet to send [18:41:58]*** Cut start [18:41:58]*** Purtial cut [18:41:58]*** Stage 1: CUTSNS_PIN = 1 [18:41:58]Read from MH i2c: 01 [18:41:58]MH_I2C_Read... [18:41:58]*** Stop cut motor [18:41:58]*** Cut end [18:41:58]Read from MH i2c: 01 07 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [18:41:58]process_action close_receipt done [18:41:58]requested_data is exist [18:41:58]produce_requested_data [18:41:58]requested_item fm.sn is exist - process it [18:41:58]wFMCommunicate request_size=4 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 11 00 00 [18:41:58]Write to MH i2c: E2 08 00 4C 07 80 11 00 00 00 00 00 00 CD [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:59]Read from MH i2c: E2 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: E2 17 00 [18:41:59]MH_I2C_Read... [18:41:59]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 38 30 30 90 00 18 [18:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:41:59]wFMCommunicate OK [18:41:59]requested_item fd.num is exist - process it [18:41:59]SAM_PROTO_GetFieldsCounters [18:41:59]wFMCommunicate request_size=4 [18:41:59]MH_SAM_APDU [18:41:59]CAPDU: 80 13 00 00 [18:41:59]Write to MH i2c: E2 08 00 4D 07 80 13 00 00 00 00 00 00 D0 [18:41:59]Write i2c OK [18:41:59]MH_I2C_Read... [18:41:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:59]Read from MH i2c: E2 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: E2 62 00 [18:41:59]MH_I2C_Read... [18:41:59]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:41:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:59]wFMCommunicate OK [18:41:59]SAM_PROTO_GetFieldsCounters done [18:41:59]requested_item shift.num is exist - process it [18:41:59]requested_item shift.opened is exist - process it [18:41:59]req_shift_opened [18:41:59]FM_GetShiftState [18:41:59]SAM_PROTO_GetShiftState [18:41:59]wFMCommunicate request_size=4 [18:41:59]MH_SAM_APDU [18:41:59]CAPDU: 80 13 01 00 [18:41:59]Write to MH i2c: E2 08 00 4E 07 80 13 01 00 00 00 00 00 D2 [18:41:59]Write i2c OK [18:41:59]MH_I2C_Read... [18:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:59]Read from MH i2c: E2 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: E2 0E 00 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: E2 0E 00 4E 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EF [18:41:59]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:41:59]wFMCommunicate OK [18:41:59]SAM_PROTO_GetShiftState done [18:41:59]FM_GetShiftState done [18:41:59]req_shift_opened done [18:41:59]requested_item shift.open_date is exist - process it [18:41:59]req_shift_open_date [18:41:59]req_shift_open_date done [18:41:59]produce_requested_data done [18:41:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49847,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:41:59]process_action_free close_receipt [18:41:59]json_value_free [18:41:59]json_value_free done [18:41:59]process_json_proto returns [18:41:59]Send response to host [18:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49847,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:41:59]free response buf [18:41:59]execute_script done [18:41:59]execute_script returns [18:41:59]free content buf [18:41:59]Sock 7.Close socket [18:41:59]Sock 7.Thread stoped [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:37]accept exits with 9 [18:43:37]New connection [18:43:37]New thread 3067198820 created [18:43:37]Thread 3067055460 joined [18:43:37]Waiting for new connection... [18:43:37] Sock 9.Parse request [18:43:37]Sock 9.Check first char [18:43:37]Sock 9.First char is OK [18:43:37]request: POST /json_proto HTTP/1.0 [18:43:37]Method: POST [18:43:37]URL: /json_proto [18:43:37]Method is POST - this is cgi request [18:43:37]url: /json_proto [18:43:37]query_string will be loaded in cgi processing [18:43:37]execute_cgi json_proto POST (null) [18:43:37]execute_cgi path=json_proto method=POST [18:43:37]POST find Content-Length [18:43:37]Host: 172.17.46.196:8080 [18:43:37]Content-Length: 688 [18:43:37]Content-Type: application/json [18:43:37] [18:43:37]POST finish read [18:43:37]Found Content-Length = 688 [18:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190024", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:37]execute_script... [18:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190024", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:37]POST & json_proto [18:43:37]process_json_proto [18:43:37]json parsed OK: [18:43:37]protocol is kg_v1.0 [18:43:37]action value=close_receipt [18:43:37]process_action close_receipt [18:43:37]cmd_close_receipt [18:43:37]MH_GetDate [18:43:37]Write to MH i2c: F0 00 00 4F 07 45 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 09 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: F0 09 00 4F 07 00 DA 40 C2 66 27 15 C2 66 F4 [18:43:37]GetLastDocTimeStamp 1724006517 [18:43:37]current date 1724006618 [18:43:37]FM_GetShiftState [18:43:37]SAM_PROTO_GetShiftState [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 13 01 00 [18:43:37]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0E 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F1 [18:43:37]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:43:37]wFMCommunicate OK [18:43:37]SAM_PROTO_GetShiftState done [18:43:37]FM_GetShiftState done [18:43:37]opened in 1723939759 [18:43:37]opened+sec_in_day 1724026159 [18:43:37]quantity*price = 9500 [18:43:37]sum+1 = 9501 [18:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 114 18.08.2024 18:43 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49848 ФПД: 89954883154843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184338&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49848&fm=89954883154843&tin=02508201610067®Number=0000000000092546&sum=9500 0 [18:43:38]StoreToDocumentArchive [18:43:38]shift 466 fd 49848 [18:43:38]save to /storage/0466/doc_00049848 [18:43:38]save last doc name /storage/0466/doc_00049848 to /storage/kkm_last_doc_name [18:43:38]save OK [18:43:38]Clear old archive folders... [18:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=299 [18:43:38]tlvbuf is 00FA38E0 [18:43:38]SAM_PROTO_ClearQueue [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 09 00 00 [18:43:38]Write to MH i2c: E2 08 00 5D 07 80 09 00 00 00 00 00 00 D6 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_ClearQueue done [18:43:38]KKMCreateOFDPacket [18:43:38]OFDProtocolAddRootSTLVToBuf [18:43:38]FM_MakeSignedData [18:43:38]FM_MakeSignedData [18:43:38]SAM_PROTO_SignData [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 0D 01 02 [18:43:38]Write to MH i2c: E2 08 00 5E 07 80 0D 01 02 00 00 00 00 DE [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]wFMCommunicate request_size=255 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DA 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [18:43:38]Write to MH i2c: E2 02 01 5F 07 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DA 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 0C [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]OFD Sender: No OFD packet to send [18:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]wFMCommunicate request_size=58 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B8 C2 00 00 35 04 06 00 51 D0 40 DB 33 9B [18:43:38]Write to MH i2c: E2 3D 00 60 07 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B8 C2 00 00 35 04 06 00 51 D0 40 DB 33 9B 00 00 4D [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [18:43:38]RAPDU: 90 00 [18:43:38]wFMCommunicate OK [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 0D 03 02 [18:43:38]Write to MH i2c: E2 08 00 61 07 80 0D 03 02 00 00 00 00 E3 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0B 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0B 00 61 07 00 D5 14 AB 6B 0F A0 89 1A 90 00 35 [18:43:38]RAPDU: D5 14 AB 6B 0F A0 89 1A 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_SignData done [18:43:38]FM_MakeSignedData done [18:43:38]CreateOFDProtocolMessage [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 11 00 00 [18:43:38]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 17 00 [18:43:38]MH_I2C_Read... [18:43:38]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 38 30 30 90 00 2E [18:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:43:38]wFMCommunicate OK [18:43:38]CreateOFDProtocolMessage done [18:43:38]OFDSenderStorePacket 49848 [18:43:38]StoreOFDPacket docnum=49848 [18:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 00 72 37 01 DE C3 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DA 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B8 C2 00 00 35 04 06 00 51 D0 40 DB 33 9B D5 14 AB 6B 0F A0 89 1A [18:43:38]CheckFolder [18:43:38]dirname=/storage/ofd_packets [18:43:38]CheckFolder done [18:43:38]ProducePacketName [18:43:38]name=ofd_packets/00049848 [18:43:38]NVStorageSaveData ofd_packets/00049848 [18:43:38]File name is /storage/ofd_packets/00049848 [18:43:38]Write 349 bytes [18:43:38]NVStorageSaveData done [18:43:38]OFDSenderStorePacket done [18:43:38]KKMCreateOFDPacket done [18:43:38]NVStorageSaveData kkm_last_timestamp [18:43:38]File name is /storage/kkm_last_timestamp [18:43:38]Write 4 bytes [18:43:38]NVStorageSaveData done [18:43:38]ExternCall_PrintAddStr [18:43:38]wPrintStart [18:43:38]Write to MH i2c: 01 00 00 63 07 6A [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 07 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [18:43:38]RasterBufferAndPrint [18:43:38]line Счет N : (3)190024 [18:43:38]line ИНН: 02508201610067 [18:43:38]line Контрольно-Кассовый Чек [18:43:38]line ПРОДАЖА [18:43:38]line Товар: 4700003010070 [18:43:38]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [18:43:38]line 1.000 * 95.00 [18:43:38]line = 95.00 [18:43:38]line НДС 12% НСП 1% [18:43:38]line > о реализуемом товаре [18:43:38]line ИТОГО: 95.00 [18:43:38]line НСП 1% : 0.84 [18:43:38]line НДС 12% : 10.09 [18:43:38]line Наличными: 95.00 [18:43:38]line Безнал.: 0.00 [18:43:38]line Место: АЗС № 95 "Партнер Нефть" [18:43:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:43:38]line СНО: Общий режим [18:43:38]line Чек 114 18.08.2024 18:43 [18:43:38]line Смена: 466 ФФД: 1.0 [18:43:38]line ЗНМ: 0300000078 [18:43:38]line РНМ: 0000000000092546 [18:43:38]line Версия ККМ: 001 [18:43:38]line ФМ: 0000000000871800 [18:43:38]line ФД: 49848 [18:43:38]line ФПД: 89954883154843 [18:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184338&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49848&fm=89954883154843&tin=02508201610067®Number=0000000000092546&sum=9500 [18:43:39]line 0 [18:43:39]OFD Sender: Processing packet 49848 [packets to send 21, broken 20] [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00049848 [18:43:39]OFD Sender: To server: pG, [18:43:39]CommunicateWithHost lk.salyk.kg:30040 [18:43:39]ConnectInit lk.salyk.kg [18:43:39]written 0, free lines is 4095 [18:43:39]Connected sock=7 [18:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 00 72 37 01 DE C3 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DA 40 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B8 C2 00 00 35 04 06 00 51 D0 40 DB 33 9B D5 14 AB 6B 0F A0 89 1A [18:43:39]Write to MH i2c: 01 00 00 8C 07 93 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 D5 0C 7B [18:43:39]RasterBufferAndPrint [18:43:39]line [18:43:39]line [18:43:39]line [18:43:39]line [18:43:39]line [18:43:39]written 0, free lines is 3292 [18:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B6 6D 47 00 3C 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 38 30 30 10 04 04 00 B8 C2 00 00 F4 03 04 00 4F EB C1 66 B6 04 01 00 00 12 22 51 17 A3 07 37 60 [18:43:39]CommunicateWithHost err = 0 [18:43:39]CheckOFDResponse [18:43:39]1017 (14) - 77093643461234 [18:43:39]1041 (16) - 0000000000871800 [18:43:39]1040 (4) - 49848 [18:43:39]1012 (4) - 18.08.2024 12:38 [18:43:39]1206 (1) - 0 [18:43:39]OFD Sender: Remove packet 49848 [18:43:39]ProducePacketName [18:43:39]name=ofd_packets/00049848 [18:43:39]NVStorageDeleteData [18:43:39]MH_Cut [18:43:39]Write to MH i2c: D1 01 00 93 07 01 6C [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: D1 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: D1 01 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: D1 01 00 93 07 00 6B [18:43:39]Write to MH i2c: 01 00 00 94 07 9B [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:40]OFD Sender: No OFD packet to send [18:43:40]*** Cut start [18:43:40]*** Purtial cut [18:43:40]*** CUTSNS_PIN = 0 [18:43:40]*** Stage 1: CUTSNS_PIN = 1 [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]*** Stop cut motor [18:43:42]*** Cut end [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 FF 0F B0 [18:43:42]process_action close_receipt done [18:43:42]requested_data is exist [18:43:42]produce_requested_data [18:43:42]requested_item fm.sn is exist - process it [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 95 07 80 11 00 00 00 00 00 00 16 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 95 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:43:42]wFMCommunicate OK [18:43:42]requested_item fd.num is exist - process it [18:43:42]SAM_PROTO_GetFieldsCounters [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 00 00 [18:43:42]Write to MH i2c: E2 08 00 96 07 80 13 00 00 00 00 00 00 19 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 96 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetFieldsCounters done [18:43:42]requested_item shift.num is exist - process it [18:43:42]requested_item shift.opened is exist - process it [18:43:42]req_shift_opened [18:43:42]FM_GetShiftState [18:43:42]SAM_PROTO_GetShiftState [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 01 00 [18:43:42]Write to MH i2c: E2 08 00 97 07 80 13 01 00 00 00 00 00 1B [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 97 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 38 [18:43:42]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetShiftState done [18:43:42]FM_GetShiftState done [18:43:42]req_shift_opened done [18:43:42]requested_item shift.open_date is exist - process it [18:43:42]req_shift_open_date [18:43:42]req_shift_open_date done [18:43:42]produce_requested_data done [18:43:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49848,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:43:42]process_action_free close_receipt [18:43:42]json_value_free [18:43:42]json_value_free done [18:43:42]process_json_proto returns [18:43:42]Send response to host [18:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49848,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:43:42]free response buf [18:43:42]execute_script done [18:43:42]execute_script returns [18:43:42]free content buf [18:43:42]Sock 9.Close socket [18:43:42]Sock 9.Thread stoped [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:28]int [18:44:28]Write to MH i2c: 01 00 00 98 07 9F [18:44:28]*** FLAG_PRN_KEY set [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 98 07 00 08 00 00 00 FF 0F BC [18:44:28]state=0 [18:44:28]Key pressed [18:44:28]Feed [18:44:28]Write to MH i2c: D8 00 00 99 07 77 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: D8 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: D8 01 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: D8 01 00 99 07 00 78 [18:44:28]int [18:44:28]Write to MH i2c: 01 00 00 9A 07 A1 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 9A 07 00 48 00 00 00 3C 00 2C [18:44:28]state=2 [18:44:28]Key pressed [18:44:28]int [18:44:28]Write to MH i2c: 01 00 00 9B 07 A2 [18:44:28]*** FLAG_PRN_KEY reset [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 F6 0F AE [18:44:28]state=2 [18:44:28]Stop feed [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]accept exits with 10 [18:44:45]New connection [18:44:45]New thread 3067055460 created [18:44:45]Thread 3067198820 joined [18:44:45]Waiting for new connection... [18:44:45] Sock 10.Parse request [18:44:45]Sock 10.Check first char [18:44:45]Sock 10.First char is OK [18:44:45]request: POST /json_proto HTTP/1.0 [18:44:45]Method: POST [18:44:45]URL: /json_proto [18:44:45]Method is POST - this is cgi request [18:44:45]url: /json_proto [18:44:45]query_string will be loaded in cgi processing [18:44:45]execute_cgi json_proto POST (null) [18:44:45]execute_cgi path=json_proto method=POST [18:44:45]POST find Content-Length [18:44:45]Host: 172.17.46.196:8080 [18:44:45]Content-Length: 656 [18:44:45]Content-Type: application/json [18:44:45] [18:44:45]POST finish read [18:44:45]Found Content-Length = 656 [18:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190025", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 3.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:45]execute_script... [18:44:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190025", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 3.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:45]POST & json_proto [18:44:45]process_json_proto [18:44:45]json parsed OK: [18:44:45]protocol is kg_v1.0 [18:44:45]action value=close_receipt [18:44:45]process_action close_receipt [18:44:45]cmd_close_receipt [18:44:45]MH_GetDate [18:44:45]Write to MH i2c: F0 00 00 9C 07 92 [18:44:45]Write i2c OK [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: F0 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: F0 09 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: F0 09 00 9C 07 00 1E 41 C2 66 27 15 C2 66 86 [18:44:45]GetLastDocTimeStamp 1724006618 [18:44:45]current date 1724006686 [18:44:45]FM_GetShiftState [18:44:45]SAM_PROTO_GetShiftState [18:44:45]wFMCommunicate request_size=4 [18:44:45]MH_SAM_APDU [18:44:45]CAPDU: 80 13 01 00 [18:44:45]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [18:44:45]Write i2c OK [18:44:45]MH_I2C_Read... [18:44:45]OFD Sender: No OFD packet to send [18:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:45]Read from MH i2c: E2 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 0E 00 [18:44:45]MH_I2C_Read... [18:44:45]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 3E [18:44:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:44:45]wFMCommunicate OK [18:44:45]SAM_PROTO_GetShiftState done [18:44:45]FM_GetShiftState done [18:44:45]opened in 1723939759 [18:44:45]opened+sec_in_day 1724026159 [18:44:45]quantity*price = 14700 [18:44:45]sum+1 = 14701 [18:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 115 18.08.2024 18:44 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49849 ФПД: 144579793152637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184446&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49849&fm=144579793152637&tin=02508201610067®Number=0000000000092546&sum=14700 0 [18:44:46]StoreToDocumentArchive [18:44:46]shift 466 fd 49849 [18:44:46]save to /storage/0466/doc_00049849 [18:44:46]save last doc name /storage/0466/doc_00049849 to /storage/kkm_last_doc_name [18:44:46]save OK [18:44:46]Clear old archive folders... [18:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=289 [18:44:46]tlvbuf is 00FABF10 [18:44:46]SAM_PROTO_ClearQueue [18:44:46]wFMCommunicate request_size=4 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 09 00 00 [18:44:46]Write to MH i2c: E2 08 00 AA 07 80 09 00 00 00 00 00 00 23 [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [18:44:46]RAPDU: 90 00 [18:44:46]wFMCommunicate OK [18:44:46]SAM_PROTO_ClearQueue done [18:44:46]KKMCreateOFDPacket [18:44:46]OFDProtocolAddRootSTLVToBuf [18:44:46]FM_MakeSignedData [18:44:46]FM_MakeSignedData [18:44:46]SAM_PROTO_SignData [18:44:46]wFMCommunicate request_size=4 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 0D 01 02 [18:44:46]Write to MH i2c: E2 08 00 AB 07 80 0D 01 02 00 00 00 00 2B [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [18:44:46]RAPDU: 90 00 [18:44:46]wFMCommunicate OK [18:44:46]wFMCommunicate request_size=255 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 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 1E 41 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [18:44:46]Write to MH i2c: E2 02 01 AC 07 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 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 1E 41 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 4C [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [18:44:46]RAPDU: 90 00 [18:44:46]wFMCommunicate OK [18:44:46]wFMCommunicate request_size=48 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 0D 02 02 2B 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C2 00 00 35 04 06 00 83 7E 9B 36 6A 7D [18:44:46]Write to MH i2c: E2 33 00 AD 07 80 0D 02 02 2B 00 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C2 00 00 35 04 06 00 83 7E 9B 36 6A 7D 00 00 56 [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [18:44:46]RAPDU: 90 00 [18:44:46]wFMCommunicate OK [18:44:46]wFMCommunicate request_size=4 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 0D 03 02 [18:44:46]Write to MH i2c: E2 08 00 AE 07 80 0D 03 02 00 00 00 00 30 [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 0B 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 0B 00 AE 07 00 1A 13 7D 88 FC C9 27 91 90 00 E0 [18:44:46]RAPDU: 1A 13 7D 88 FC C9 27 91 90 00 [18:44:46]wFMCommunicate OK [18:44:46]SAM_PROTO_SignData done [18:44:46]FM_MakeSignedData done [18:44:46]CreateOFDProtocolMessage [18:44:46]wFMCommunicate request_size=4 [18:44:46]MH_SAM_APDU [18:44:46]CAPDU: 80 11 00 00 [18:44:46]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:46]Read from MH i2c: E2 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 17 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [18:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:44:46]wFMCommunicate OK [18:44:46]CreateOFDProtocolMessage done [18:44:46]OFDSenderStorePacket 49849 [18:44:46]StoreOFDPacket docnum=49849 [18:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 01 00 00 69 3C 2D 01 C2 FF 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 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 1E 41 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C2 00 00 35 04 06 00 83 7E 9B 36 6A 7D 1A 13 7D 88 FC C9 27 91 [18:44:46]CheckFolder [18:44:46]dirname=/storage/ofd_packets [18:44:46]CheckFolder done [18:44:46]ProducePacketName [18:44:46]name=ofd_packets/00049849 [18:44:46]NVStorageSaveData ofd_packets/00049849 [18:44:46]File name is /storage/ofd_packets/00049849 [18:44:46]Write 339 bytes [18:44:46]NVStorageSaveData done [18:44:46]OFDSenderStorePacket done [18:44:46]KKMCreateOFDPacket done [18:44:46]NVStorageSaveData kkm_last_timestamp [18:44:46]File name is /storage/kkm_last_timestamp [18:44:46]Write 4 bytes [18:44:46]NVStorageSaveData done [18:44:46]ExternCall_PrintAddStr [18:44:46]wPrintStart [18:44:46]Write to MH i2c: 01 00 00 B0 07 B7 [18:44:46]Write i2c OK [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: 01 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: 01 07 00 [18:44:46]MH_I2C_Read... [18:44:46]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [18:44:46]RasterBufferAndPrint [18:44:46]line Счет N : (3)190025 [18:44:46]line ИНН: 02508201610067 [18:44:46]line Контрольно-Кассовый Чек [18:44:46]line ПРОДАЖА [18:44:46]line Товар: 46214638 [18:44:46]line Р/ж mentos p.white нежная мята 16/15,5г [18:44:46]line 3.000 * 49.00 [18:44:46]line = 147.00 [18:44:46]line НДС 12% НСП 1% [18:44:46]line > о реализуемом товаре [18:44:46]line ИТОГО: 147.00 [18:44:46]line НСП 1% : 1.30 [18:44:46]line НДС 12% : 15.61 [18:44:46]line Наличными: 147.00 [18:44:46]line Безнал.: 0.00 [18:44:46]line Место: АЗС № 95 "Партнер Нефть" [18:44:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:44:46]line СНО: Общий режим [18:44:46]line Чек 115 18.08.2024 18:44 [18:44:46]line Смена: 466 ФФД: 1.0 [18:44:46]line ЗНМ: 0300000078 [18:44:46]line РНМ: 0000000000092546 [18:44:46]line Версия ККМ: 001 [18:44:46]line ФМ: 0000000000871800 [18:44:46]line ФД: 49849 [18:44:46]line ФПД: 144579793152637 [18:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184446&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49849&fm=144579793152637&tin=02508201610067®Number=0000000000092546&sum=14700 [18:44:46]line 0 [18:44:47]written 0, free lines is 4095 [18:44:47]OFD Sender: Processing packet 49849 [packets to send 21, broken 20] [18:44:47]ProducePacketName [18:44:47]name=ofd_packets/00049849 [18:44:47]OFD Sender: To server: pG, [18:44:47]CommunicateWithHost lk.salyk.kg:30040 [18:44:47]ConnectInit lk.salyk.kg [18:44:47]Connected sock=9 [18:44:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 01 00 00 69 3C 2D 01 C2 FF 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 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 1E 41 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C2 00 00 35 04 06 00 83 7E 9B 36 6A 7D 1A 13 7D 88 FC C9 27 91 [18:44:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B1 A0 47 00 EF 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 B9 C2 00 00 F4 03 04 00 93 EB C1 66 B6 04 01 00 00 72 AD A2 2A 6A DB 8C 41 [18:44:47]CommunicateWithHost err = 0 [18:44:47]CheckOFDResponse [18:44:47]1017 (14) - 77093643461234 [18:44:47]1041 (16) - 0000000000871800 [18:44:47]1040 (4) - 49849 [18:44:47]1012 (4) - 18.08.2024 12:39 [18:44:47]1206 (1) - 0 [18:44:47]OFD Sender: Remove packet 49849 [18:44:47]ProducePacketName [18:44:47]name=ofd_packets/00049849 [18:44:47]NVStorageDeleteData [18:44:47]Write to MH i2c: 01 00 00 D9 07 E0 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 07 00 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 D1 0C C4 [18:44:47]RasterBufferAndPrint [18:44:47]line [18:44:47]line [18:44:47]line [18:44:47]line [18:44:47]line [18:44:47]written 0, free lines is 3287 [18:44:47]MH_Cut [18:44:47]Write to MH i2c: D1 01 00 E0 07 01 B9 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: D1 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: D1 01 00 [18:44:47]MH_I2C_Read... [18:44:47]Read from MH i2c: D1 01 00 E0 07 00 B8 [18:44:47]Write to MH i2c: 01 00 00 E1 07 E8 [18:44:47]Write i2c OK [18:44:47]MH_I2C_Read... [18:44:48]OFD Sender: No OFD packet to send [18:44:48]*** Cut start [18:44:48]*** Purtial cut [18:44:48]*** Stage 1: CUTSNS_PIN = 1 [18:44:48]Read from MH i2c: 01 [18:44:48]MH_I2C_Read... [18:44:48]*** Stop cut motor [18:44:48]*** Cut end [18:44:48]Read from MH i2c: 01 07 00 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [18:44:48]process_action close_receipt done [18:44:48]requested_data is exist [18:44:48]produce_requested_data [18:44:48]requested_item fm.sn is exist - process it [18:44:48]wFMCommunicate request_size=4 [18:44:48]MH_SAM_APDU [18:44:48]CAPDU: 80 11 00 00 [18:44:48]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:48]Read from MH i2c: E2 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: E2 17 00 [18:44:48]MH_I2C_Read... [18:44:48]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 38 30 30 90 00 AE [18:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:44:48]wFMCommunicate OK [18:44:48]requested_item fd.num is exist - process it [18:44:48]SAM_PROTO_GetFieldsCounters [18:44:48]wFMCommunicate request_size=4 [18:44:48]MH_SAM_APDU [18:44:48]CAPDU: 80 13 00 00 [18:44:48]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 62 00 [18:44:49]MH_I2C_Read... [18:44:49]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [18:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 B9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:49]wFMCommunicate OK [18:44:49]SAM_PROTO_GetFieldsCounters done [18:44:49]requested_item shift.num is exist - process it [18:44:49]requested_item shift.opened is exist - process it [18:44:49]req_shift_opened [18:44:49]FM_GetShiftState [18:44:49]SAM_PROTO_GetShiftState [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 13 01 00 [18:44:49]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0E 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 85 [18:44:49]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:44:49]wFMCommunicate OK [18:44:49]SAM_PROTO_GetShiftState done [18:44:49]FM_GetShiftState done [18:44:49]req_shift_opened done [18:44:49]requested_item shift.open_date is exist - process it [18:44:49]req_shift_open_date [18:44:49]req_shift_open_date done [18:44:49]produce_requested_data done [18:44:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49849,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:44:49]process_action_free close_receipt [18:44:49]json_value_free [18:44:49]json_value_free done [18:44:49]process_json_proto returns [18:44:49]Send response to host [18:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49849,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:44:49]free response buf [18:44:49]execute_script done [18:44:49]execute_script returns [18:44:49]free content buf [18:44:49]Sock 10.Close socket [18:44:49]Sock 10.Thread stoped [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]accept exits with 7 [18:49:58]New connection [18:49:58]New thread 3067198820 created [18:49:58]Thread 3067055460 joined [18:49:58]Waiting for new connection... [18:49:58] Sock 7.Parse request [18:49:58]Sock 7.Check first char [18:49:58]Sock 7.First char is OK [18:49:58]request: POST /json_proto HTTP/1.0 [18:49:58]Method: POST [18:49:58]URL: /json_proto [18:49:58]Method is POST - this is cgi request [18:49:58]url: /json_proto [18:49:58]query_string will be loaded in cgi processing [18:49:58]execute_cgi json_proto POST (null) [18:49:58]execute_cgi path=json_proto method=POST [18:49:58]POST find Content-Length [18:49:58]Host: 172.17.46.196:8080 [18:49:58]Content-Length: 624 [18:49:58]Content-Type: application/json [18:49:58] [18:49:58]POST finish read [18:49:58]Found Content-Length = 624 [18:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190026", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:58]execute_script... [18:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190026", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:58]POST & json_proto [18:49:58]process_json_proto [18:49:58]json parsed OK: [18:49:58]protocol is kg_v1.0 [18:49:58]action value=close_receipt [18:49:58]process_action close_receipt [18:49:58]cmd_close_receipt [18:49:58]MH_GetDate [18:49:58]Write to MH i2c: F0 00 00 E5 07 DB [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 09 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: F0 09 00 E5 07 00 57 42 C2 66 27 15 C2 66 09 [18:49:58]GetLastDocTimeStamp 1724006686 [18:49:58]current date 1724006999 [18:49:58]FM_GetShiftState [18:49:58]SAM_PROTO_GetShiftState [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 13 01 00 [18:49:58]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0E 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 87 [18:49:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:49:58]wFMCommunicate OK [18:49:58]SAM_PROTO_GetShiftState done [18:49:58]FM_GetShiftState done [18:49:58]opened in 1723939759 [18:49:58]opened+sec_in_day 1724026159 [18:49:58]quantity*price = 15100 [18:49:58]sum+1 = 15101 [18:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 116 18.08.2024 18:49 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49850 ФПД: 103830989896123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184959&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49850&fm=103830989896123&tin=02508201610067®Number=0000000000092546&sum=15100 0 [18:49:59]StoreToDocumentArchive [18:49:59]shift 466 fd 49850 [18:49:59]save to /storage/0466/doc_00049850 [18:49:59]save last doc name /storage/0466/doc_00049850 to /storage/kkm_last_doc_name [18:49:59]save OK [18:49:59]Clear old archive folders... [18:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:49:59]tlvbuf is 00FD9F40 [18:49:59]SAM_PROTO_ClearQueue [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 09 00 00 [18:49:59]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_ClearQueue done [18:49:59]KKMCreateOFDPacket [18:49:59]OFDProtocolAddRootSTLVToBuf [18:49:59]FM_MakeSignedData [18:49:59]FM_MakeSignedData [18:49:59]SAM_PROTO_SignData [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 01 02 [18:49:59]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=255 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 57 42 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [18:49:59]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 57 42 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 CF [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=35 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C2 00 00 35 04 06 00 5E 6F 09 44 F9 BB [18:49:59]Write to MH i2c: E2 26 00 F6 07 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C2 00 00 35 04 06 00 5E 6F 09 44 F9 BB 00 00 AC [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [18:49:59]RAPDU: 90 00 [18:49:59]wFMCommunicate OK [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 0D 03 02 [18:49:59]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0B 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0B 00 F7 07 00 32 B0 45 D1 68 13 7D 78 90 00 E2 [18:49:59]RAPDU: 32 B0 45 D1 68 13 7D 78 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_SignData done [18:49:59]FM_MakeSignedData done [18:49:59]CreateOFDProtocolMessage [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 11 00 00 [18:49:59]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 17 00 [18:49:59]MH_I2C_Read... [18:49:59]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 38 30 30 90 00 C4 [18:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:49:59]wFMCommunicate OK [18:49:59]CreateOFDProtocolMessage done [18:49:59]OFDSenderStorePacket 49850 [18:49:59]StoreOFDPacket docnum=49850 [18:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 2C 02 20 01 20 3F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 57 42 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C2 00 00 35 04 06 00 5E 6F 09 44 F9 BB 32 B0 45 D1 68 13 7D 78 [18:49:59]CheckFolder [18:49:59]dirname=/storage/ofd_packets [18:49:59]CheckFolder done [18:49:59]ProducePacketName [18:49:59]name=ofd_packets/00049850 [18:49:59]NVStorageSaveData ofd_packets/00049850 [18:49:59]File name is /storage/ofd_packets/00049850 [18:49:59]Write 326 bytes [18:49:59]NVStorageSaveData done [18:49:59]OFDSenderStorePacket done [18:49:59]KKMCreateOFDPacket done [18:49:59]NVStorageSaveData kkm_last_timestamp [18:49:59]File name is /storage/kkm_last_timestamp [18:49:59]Write 4 bytes [18:49:59]NVStorageSaveData done [18:49:59]ExternCall_PrintAddStr [18:49:59]wPrintStart [18:49:59]Write to MH i2c: 01 00 00 F9 07 00 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [18:49:59]RasterBufferAndPrint [18:49:59]line Счет N : (3)190026 [18:49:59]line ИНН: 02508201610067 [18:49:59]line Контрольно-Кассовый Чек [18:49:59]line ПРОДАЖА [18:49:59]line Товар: 48742245 [18:49:59]line Сигареты Parliament Silver Blue [18:49:59]line 1.000 * 151.00 [18:49:59]line = 151.00 [18:49:59]line НДС 12% НСП 1% [18:49:59]line > о реализуемом товаре [18:49:59]line ИТОГО: 151.00 [18:49:59]line НСП 1% : 1.34 [18:49:59]line НДС 12% : 16.03 [18:49:59]line Наличными: 151.00 [18:49:59]line Безнал.: 0.00 [18:49:59]line Место: АЗС № 95 "Партнер Нефть" [18:49:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:49:59]line СНО: Общий режим [18:49:59]line Чек 116 18.08.2024 18:49 [18:49:59]line Смена: 466 ФФД: 1.0 [18:49:59]line ЗНМ: 0300000078 [18:49:59]line РНМ: 0000000000092546 [18:49:59]line Версия ККМ: 001 [18:49:59]line ФМ: 0000000000871800 [18:49:59]line ФД: 49850 [18:49:59]line ФПД: 103830989896123 [18:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184959&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49850&fm=103830989896123&tin=02508201610067®Number=0000000000092546&sum=15100 [18:49:59]line 0 [18:50:00]written 0, free lines is 4095 [18:50:00]OFD Sender: Processing packet 49850 [packets to send 21, broken 20] [18:50:00]ProducePacketName [18:50:00]name=ofd_packets/00049850 [18:50:00]OFD Sender: To server: pG, [18:50:00]CommunicateWithHost lk.salyk.kg:30040 [18:50:00]ConnectInit lk.salyk.kg [18:50:00]Connected sock=10 [18:50: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 38 30 30 28 01 00 00 2C 02 20 01 20 3F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 57 42 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C2 00 00 35 04 06 00 5E 6F 09 44 F9 BB 32 B0 45 D1 68 13 7D 78 [18:50:00]Write to MH i2c: 01 00 00 22 08 2A [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 07 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 C6 0C 03 [18:50:00]RasterBufferAndPrint [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]line [18:50:00]written 0, free lines is 3274 [18:50:00]MH_Cut [18:50:00]Write to MH i2c: D1 01 00 29 08 01 03 [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 01 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: D1 01 00 29 08 00 02 [18:50:00]Write to MH i2c: 01 00 00 2A 08 32 [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DF 7C 47 00 A8 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BA C2 00 00 F4 03 04 00 CC EC C1 66 B6 04 01 00 00 29 3B F1 C7 9B AD E9 F5 [18:50:00]CommunicateWithHost err = 0 [18:50:00]CheckOFDResponse [18:50:00]1017 (14) - 77093643461234 [18:50:00]1041 (16) - 0000000000871800 [18:50:00]1040 (4) - 49850 [18:50:00]1012 (4) - 18.08.2024 12:45 [18:50:00]1206 (1) - 0 [18:50:00]OFD Sender: Remove packet 49850 [18:50:00]ProducePacketName [18:50:00]name=ofd_packets/00049850 [18:50:00]NVStorageDeleteData [18:50:01]OFD Sender: No OFD packet to send [18:50:01]*** Cut start [18:50:01]*** Purtial cut [18:50:01]*** CUTSNS_PIN = 0 [18:50:01]*** Stage 1: CUTSNS_PIN = 1 [18:50:03]Read from MH i2c: 01 [18:50:03]MH_I2C_Read... [18:50:03]*** Stop cut motor [18:50:03]*** Cut end [18:50:03]Read from MH i2c: 01 07 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 FF 0F 47 [18:50:03]process_action close_receipt done [18:50:03]requested_data is exist [18:50:03]produce_requested_data [18:50:03]requested_item fm.sn is exist - process it [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 11 00 00 [18:50:03]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [18:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:50:03]wFMCommunicate OK [18:50:03]requested_item fd.num is exist - process it [18:50:03]SAM_PROTO_GetFieldsCounters [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 00 00 [18:50:03]Write to MH i2c: E2 08 00 2C 08 80 13 00 00 00 00 00 00 B0 [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 2C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [18:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetFieldsCounters done [18:50:03]requested_item shift.num is exist - process it [18:50:03]requested_item shift.opened is exist - process it [18:50:03]req_shift_opened [18:50:03]FM_GetShiftState [18:50:03]SAM_PROTO_GetShiftState [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 01 00 [18:50:03]Write to MH i2c: E2 08 00 2D 08 80 13 01 00 00 00 00 00 B2 [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:03]Read from MH i2c: E2 0E 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 0E 00 2D 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 CF [18:50:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetShiftState done [18:50:03]FM_GetShiftState done [18:50:03]req_shift_opened done [18:50:03]requested_item shift.open_date is exist - process it [18:50:03]req_shift_open_date [18:50:03]req_shift_open_date done [18:50:03]produce_requested_data done [18:50:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49850,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:50:03]process_action_free close_receipt [18:50:03]json_value_free [18:50:03]json_value_free done [18:50:03]process_json_proto returns [18:50:03]Send response to host [18:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49850,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:50:03]free response buf [18:50:03]execute_script done [18:50:03]execute_script returns [18:50:03]free content buf [18:50:03]Sock 7.Close socket [18:50:03]Sock 7.Thread stoped [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:37]accept exits with 9 [18:53:37]New connection [18:53:37]New thread 3067055460 created [18:53:37]Thread 3067198820 joined [18:53:37]Waiting for new connection... [18:53:37] Sock 9.Parse request [18:53:37]Sock 9.Check first char [18:53:37]Sock 9.First char is OK [18:53:37]request: POST /json_proto HTTP/1.0 [18:53:37]Method: POST [18:53:37]URL: /json_proto [18:53:37]Method is POST - this is cgi request [18:53:37]url: /json_proto [18:53:37]query_string will be loaded in cgi processing [18:53:37]execute_cgi json_proto POST (null) [18:53:37]execute_cgi path=json_proto method=POST [18:53:37]POST find Content-Length [18:53:37]Host: 172.17.46.196:8080 [18:53:37]Content-Length: 623 [18:53:37]Content-Type: application/json [18:53:37] [18:53:37]POST finish read [18:53:37]Found Content-Length = 623 [18:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190027", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:37]execute_script... [18:53: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 : (3)190027", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:37]POST & json_proto [18:53:37]process_json_proto [18:53:37]json parsed OK: [18:53:37]protocol is kg_v1.0 [18:53:37]action value=close_receipt [18:53:37]process_action close_receipt [18:53:37]cmd_close_receipt [18:53:37]MH_GetDate [18:53:37]Write to MH i2c: F0 00 00 2E 08 25 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: F0 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: F0 09 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: F0 09 00 2E 08 00 33 43 C2 66 27 15 C2 66 30 [18:53:37]GetLastDocTimeStamp 1724006999 [18:53:37]current date 1724007219 [18:53:37]FM_GetShiftState [18:53:37]SAM_PROTO_GetShiftState [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 13 01 00 [18:53:37]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0E 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D1 [18:53:37]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_GetShiftState done [18:53:37]FM_GetShiftState done [18:53:37]opened in 1723939759 [18:53:37]opened+sec_in_day 1724026159 [18:53:37]quantity*price = 28000 [18:53:37]sum+1 = 28001 [18:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 117 18.08.2024 18:53 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49851 ФПД: 258540229435064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49851&fm=258540229435064&tin=02508201610067®Number=0000000000092546&sum=28000 0 [18:53:38]StoreToDocumentArchive [18:53:38]shift 466 fd 49851 [18:53:38]save to /storage/0466/doc_00049851 [18:53:38]save last doc name /storage/0466/doc_00049851 to /storage/kkm_last_doc_name [18:53:38]save OK [18:53:38]Clear old archive folders... [18:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:53:38]tlvbuf is 00FB7BF0 [18:53:38]SAM_PROTO_ClearQueue [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 09 00 00 [18:53:38]Write to MH i2c: E2 08 00 3C 08 80 09 00 00 00 00 00 00 B6 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]SAM_PROTO_ClearQueue done [18:53:38]KKMCreateOFDPacket [18:53:38]OFDProtocolAddRootSTLVToBuf [18:53:38]FM_MakeSignedData [18:53:38]FM_MakeSignedData [18:53:38]SAM_PROTO_SignData [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 01 02 [18:53:38]Write to MH i2c: E2 08 00 3D 08 80 0D 01 02 00 00 00 00 BE [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]wFMCommunicate request_size=255 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 33 43 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [18:53:38]Write to MH i2c: E2 02 01 3E 08 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 33 43 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 26 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]wFMCommunicate request_size=34 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C2 00 00 35 04 06 00 EB 24 16 89 1E B8 [18:53:38]Write to MH i2c: E2 25 00 3F 08 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C2 00 00 35 04 06 00 EB 24 16 89 1E B8 00 00 7B [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 03 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [18:53:39]RAPDU: 90 00 [18:53:39]wFMCommunicate OK [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 0D 03 02 [18:53:39]Write to MH i2c: E2 08 00 40 08 80 0D 03 02 00 00 00 00 C3 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0B 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0B 00 40 08 00 89 94 27 49 B0 16 44 6F 90 00 CA [18:53:39]RAPDU: 89 94 27 49 B0 16 44 6F 90 00 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_SignData done [18:53:39]FM_MakeSignedData done [18:53:39]CreateOFDProtocolMessage [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 11 00 00 [18:53:39]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 41 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0E [18:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:53:39]wFMCommunicate OK [18:53:39]CreateOFDProtocolMessage done [18:53:39]OFDSenderStorePacket 49851 [18:53:39]StoreOFDPacket docnum=49851 [18:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 F3 72 1F 01 7C 72 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 33 43 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C2 00 00 35 04 06 00 EB 24 16 89 1E B8 89 94 27 49 B0 16 44 6F [18:53:39]CheckFolder [18:53:39]dirname=/storage/ofd_packets [18:53:39]CheckFolder done [18:53:39]ProducePacketName [18:53:39]name=ofd_packets/00049851 [18:53:39]NVStorageSaveData ofd_packets/00049851 [18:53:39]File name is /storage/ofd_packets/00049851 [18:53:39]Write 325 bytes [18:53:39]NVStorageSaveData done [18:53:39]OFDSenderStorePacket done [18:53:39]KKMCreateOFDPacket done [18:53:39]NVStorageSaveData kkm_last_timestamp [18:53:39]File name is /storage/kkm_last_timestamp [18:53:39]Write 4 bytes [18:53:39]NVStorageSaveData done [18:53:39]ExternCall_PrintAddStr [18:53:39]wPrintStart [18:53:39]Write to MH i2c: 01 00 00 42 08 4A [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 FF 0F 5F [18:53:39]RasterBufferAndPrint [18:53:39]line Счет N : (3)190027 [18:53:39]line ИНН: 02508201610067 [18:53:39]line Контрольно-Кассовый Чек [18:53:39]line ПРОДАЖА [18:53:39]line Товар: 48743587 [18:53:39]line Сигареты Winston XStyle Silver [18:53:39]line 2.000 * 140.00 [18:53:39]line = 280.00 [18:53:39]line НДС 12% НСП 1% [18:53:39]line > о реализуемом товаре [18:53:39]line ИТОГО: 280.00 [18:53:39]line НСП 1% : 2.48 [18:53:39]line НДС 12% : 29.73 [18:53:39]line Наличными: 280.00 [18:53:39]line Безнал.: 0.00 [18:53:39]line Место: АЗС № 95 "Партнер Нефть" [18:53:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:53:39]line СНО: Общий режим [18:53:39]line Чек 117 18.08.2024 18:53 [18:53:39]line Смена: 466 ФФД: 1.0 [18:53:39]line ЗНМ: 0300000078 [18:53:39]line РНМ: 0000000000092546 [18:53:39]line Версия ККМ: 001 [18:53:39]line ФМ: 0000000000871800 [18:53:39]line ФД: 49851 [18:53:39]line ФПД: 258540229435064 [18:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49851&fm=258540229435064&tin=02508201610067®Number=0000000000092546&sum=28000 [18:53:39]OFD Sender: Processing packet 49851 [packets to send 21, broken 20] [18:53:39]ProducePacketName [18:53:39]name=ofd_packets/00049851 [18:53:39]OFD Sender: To server: pG, [18:53:39]CommunicateWithHost lk.salyk.kg:30040 [18:53:39]ConnectInit lk.salyk.kg [18:53:39]line 0 [18:53:39]written 0, free lines is 4095 [18:53:39]Connected sock=10 [18:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 F3 72 1F 01 7C 72 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 33 43 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BB C2 00 00 35 04 06 00 EB 24 16 89 1E B8 89 94 27 49 B0 16 44 6F [18:53:39]Write to MH i2c: 01 00 00 6B 08 73 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 D4 0C 5A [18:53:39]RasterBufferAndPrint [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]written 0, free lines is 3291 [18:53:39]MH_Cut [18:53:39]Write to MH i2c: D1 01 00 72 08 01 4C [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 01 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 01 00 72 08 00 4B [18:53:39]Write to MH i2c: 01 00 00 73 08 7B [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A7 98 47 00 4B 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 38 30 30 10 04 04 00 BB C2 00 00 F4 03 04 00 A7 ED C1 66 B6 04 01 00 00 78 FE 53 3A B9 21 48 A0 [18:53:39]CommunicateWithHost err = 0 [18:53:39]CheckOFDResponse [18:53:39]1017 (14) - 77093643461234 [18:53:39]1041 (16) - 0000000000871800 [18:53:39]1040 (4) - 49851 [18:53:39]1012 (4) - 18.08.2024 12:48 [18:53:39]1206 (1) - 0 [18:53:39]OFD Sender: Remove packet 49851 [18:53:39]ProducePacketName [18:53:39]name=ofd_packets/00049851 [18:53:39]NVStorageDeleteData [18:53:40]OFD Sender: No OFD packet to send [18:53:40]*** Cut start [18:53:40]*** Purtial cut [18:53:40]*** Stage 1: CUTSNS_PIN = 1 [18:53:40]Read from MH i2c: 01 [18:53:41]MH_I2C_Read... [18:53:41]*** Stop cut motor [18:53:41]*** Cut end [18:53:41]Read from MH i2c: 01 07 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [18:53:41]process_action close_receipt done [18:53:41]requested_data is exist [18:53:41]produce_requested_data [18:53:41]requested_item fm.sn is exist - process it [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 11 00 00 [18:53:41]Write to MH i2c: E2 08 00 74 08 80 11 00 00 00 00 00 00 F6 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 74 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [18:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:53:41]wFMCommunicate OK [18:53:41]requested_item fd.num is exist - process it [18:53:41]SAM_PROTO_GetFieldsCounters [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 13 00 00 [18:53:41]Write to MH i2c: E2 08 00 75 08 80 13 00 00 00 00 00 00 F9 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 62 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 62 00 75 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_GetFieldsCounters done [18:53:41]requested_item shift.num is exist - process it [18:53:41]requested_item shift.opened is exist - process it [18:53:41]req_shift_opened [18:53:41]FM_GetShiftState [18:53:41]SAM_PROTO_GetShiftState [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 13 01 00 [18:53:41]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0E 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 18 [18:53:41]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_GetShiftState done [18:53:41]FM_GetShiftState done [18:53:41]req_shift_opened done [18:53:41]requested_item shift.open_date is exist - process it [18:53:41]req_shift_open_date [18:53:41]req_shift_open_date done [18:53:41]produce_requested_data done [18:53:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49851,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [18:53:41]process_action_free close_receipt [18:53:41]json_value_free [18:53:41]json_value_free done [18:53:41]process_json_proto returns [18:53:41]Send response to host [18:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49851,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [18:53:41]free response buf [18:53:41]execute_script done [18:53:41]execute_script returns [18:53:41]free content buf [18:53:41]Sock 9.Close socket [18:53:41]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:18]accept exits with 7 [19:04:18]New connection [19:04:18]New thread 3067198820 created [19:04:18]Thread 3067055460 joined [19:04:18]Waiting for new connection... [19:04:18] Sock 7.Parse request [19:04:18]Sock 7.Check first char [19:04:18]Sock 7.First char is OK [19:04:18]request: POST /json_proto HTTP/1.0 [19:04:18]Method: POST [19:04:18]URL: /json_proto [19:04:18]Method is POST - this is cgi request [19:04:18]url: /json_proto [19:04:18]query_string will be loaded in cgi processing [19:04:18]execute_cgi json_proto POST (null) [19:04:18]execute_cgi path=json_proto method=POST [19:04:18]POST find Content-Length [19:04:18]Host: 172.17.46.196:8080 [19:04:18]Content-Length: 930 [19:04:18]Content-Type: application/json [19:04:18] [19:04:18]POST finish read [19:04:18]Found Content-Length = 930 [19:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190028", "tax_sys" : 0, "items" : [ { "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:18]execute_script... [19: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 : (3)190028", "tax_sys" : 0, "items" : [ { "code": "8691216090453", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO Chervyachki ", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:18]POST & json_proto [19:04:18]process_json_proto [19:04:18]json parsed OK: [19:04:18]protocol is kg_v1.0 [19:04:18]action value=close_receipt [19:04:18]process_action close_receipt [19:04:18]cmd_close_receipt [19:04:18]MH_GetDate [19:04:18]Write to MH i2c: F0 00 00 77 08 6E [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: F0 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: F0 09 00 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: F0 09 00 77 08 00 B4 45 C2 66 27 15 C2 66 FC [19:04:18]GetLastDocTimeStamp 1724007219 [19:04:18]current date 1724007860 [19:04:18]FM_GetShiftState [19:04:18]SAM_PROTO_GetShiftState [19:04:18]wFMCommunicate request_size=4 [19:04:18]MH_SAM_APDU [19:04:18]CAPDU: 80 13 01 00 [19:04:18]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:18]Read from MH i2c: E2 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 0E 00 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 1A [19:04:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:04:18]wFMCommunicate OK [19:04:18]SAM_PROTO_GetShiftState done [19:04:18]FM_GetShiftState done [19:04:18]opened in 1723939759 [19:04:18]opened+sec_in_day 1724026159 [19:04:18]quantity*price = 10000 [19:04:18]sum+1 = 10001 [19:04:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 118 18.08.2024 19:04 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49852 ФПД: 262639195268568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190420&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49852&fm=262639195268568&tin=02508201610067®Number=0000000000092546&sum=36000 0 [19:04:19]StoreToDocumentArchive [19:04:19]shift 466 fd 49852 [19:04:19]save to /storage/0466/doc_00049852 [19:04:19]save last doc name /storage/0466/doc_00049852 to /storage/kkm_last_doc_name [19:04:19]save OK [19:04:19]Clear old archive folders... [19:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=404 [19:04:19]tlvbuf is 00FB79F0 [19:04:19]SAM_PROTO_ClearQueue [19:04:19]wFMCommunicate request_size=4 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 09 00 00 [19:04:19]Write to MH i2c: E2 08 00 85 08 80 09 00 00 00 00 00 00 FF [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [19:04:19]RAPDU: 90 00 [19:04:19]wFMCommunicate OK [19:04:19]SAM_PROTO_ClearQueue done [19:04:19]KKMCreateOFDPacket [19:04:19]OFDProtocolAddRootSTLVToBuf [19:04:19]FM_MakeSignedData [19:04:19]FM_MakeSignedData [19:04:19]SAM_PROTO_SignData [19:04:19]wFMCommunicate request_size=4 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 0D 01 02 [19:04:19]Write to MH i2c: E2 08 00 86 08 80 0D 01 02 00 00 00 00 07 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:19]Read from MH i2c: E2 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 [19:04:19]MH_I2C_Read... [19:04:19]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [19:04:19]RAPDU: 90 00 [19:04:19]wFMCommunicate OK [19:04:19]wFMCommunicate request_size=255 [19:04:19]MH_SAM_APDU [19:04:19]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 [19:04:19]Write to MH i2c: E2 02 01 87 08 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 17 [19:04:19]Write i2c OK [19:04:19]MH_I2C_Read... [19:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:20]Read from MH i2c: E2 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 03 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [19:04:20]RAPDU: 90 00 [19:04:20]wFMCommunicate OK [19:04:20]wFMCommunicate request_size=163 [19:04:20]MH_SAM_APDU [19:04:20]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 B4 45 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C2 00 00 35 04 06 00 EE DE 73 F0 25 D8 [19:04:20]Write to MH i2c: E2 A6 00 88 08 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 B4 45 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C2 00 00 35 04 06 00 EE DE 73 F0 25 D8 00 00 F8 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:20]Read from MH i2c: E2 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 03 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [19:04:20]RAPDU: 90 00 [19:04:20]wFMCommunicate OK [19:04:20]wFMCommunicate request_size=4 [19:04:20]MH_SAM_APDU [19:04:20]CAPDU: 80 0D 03 02 [19:04:20]Write to MH i2c: E2 08 00 89 08 80 0D 03 02 00 00 00 00 0C [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:20]Read from MH i2c: E2 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 0B 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 0B 00 89 08 00 A1 58 7C E7 B6 48 95 EA 90 00 E6 [19:04:20]RAPDU: A1 58 7C E7 B6 48 95 EA 90 00 [19:04:20]wFMCommunicate OK [19:04:20]SAM_PROTO_SignData done [19:04:20]FM_MakeSignedData done [19:04:20]CreateOFDProtocolMessage [19:04:20]wFMCommunicate request_size=4 [19:04:20]MH_SAM_APDU [19:04:20]CAPDU: 80 11 00 00 [19:04:20]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:20]Read from MH i2c: E2 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 17 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [19:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:04:20]wFMCommunicate OK [19:04:20]CreateOFDProtocolMessage done [19:04:20]OFDSenderStorePacket 49852 [19:04:20]StoreOFDPacket docnum=49852 [19:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 37 6A A0 01 38 36 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 B4 45 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C2 00 00 35 04 06 00 EE DE 73 F0 25 D8 A1 58 7C E7 B6 48 95 EA [19:04:20]CheckFolder [19:04:20]dirname=/storage/ofd_packets [19:04:20]CheckFolder done [19:04:20]ProducePacketName [19:04:20]name=ofd_packets/00049852 [19:04:20]NVStorageSaveData ofd_packets/00049852 [19:04:20]File name is /storage/ofd_packets/00049852 [19:04:20]Write 454 bytes [19:04:20]NVStorageSaveData done [19:04:20]OFDSenderStorePacket done [19:04:20]KKMCreateOFDPacket done [19:04:20]NVStorageSaveData kkm_last_timestamp [19:04:20]File name is /storage/kkm_last_timestamp [19:04:20]Write 4 bytes [19:04:20]NVStorageSaveData done [19:04:20]ExternCall_PrintAddStr [19:04:20]wPrintStart [19:04:20]Write to MH i2c: 01 00 00 8B 08 93 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 FF 0F A8 [19:04:20]RasterBufferAndPrint [19:04:20]line Счет N : (3)190028 [19:04:20]line ИНН: 02508201610067 [19:04:20]line Контрольно-Кассовый Чек [19:04:20]line ПРОДАЖА [19:04:20]line Товар: 8691216090453 [19:04:20]line Жевательный мармелад HARIBO Chervyachki [19:04:20]line 1.000 * 100.00 [19:04:20]line = 100.00 [19:04:20]line НДС 12% НСП 1% [19:04:20]line > о реализуемом товаре [19:04:20]line Товар: 4780014240406 [19:04:20]line Сигареты Sovereign Blue [19:04:20]line 2.000 * 130.00 [19:04:20]line = 260.00 [19:04:20]line НДС 12% НСП 1% [19:04:20]line > о реализуемом товаре [19:04:20]line ИТОГО: 360.00 [19:04:20]line НСП 1% : 3.18 [19:04:20]line НДС 12% : 38.23 [19:04:20]line Наличными: 360.00 [19:04:20]line Безнал.: 0.00 [19:04:20]line Место: АЗС № 95 "Партнер Нефть" [19:04:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:04:20]line СНО: Общий режим [19:04:20]line Чек 118 18.08.2024 19:04 [19:04:20]line Смена: 466 ФФД: 1.0 [19:04:20]line ЗНМ: 0300000078 [19:04:20]line РНМ: 0000000000092546 [19:04:20]line Версия ККМ: 001 [19:04:20]line ФМ: 0000000000871800 [19:04:20]line ФД: 49852 [19:04:20]line ФПД: 262639195268568 [19:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190420&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49852&fm=262639195268568&tin=02508201610067®Number=0000000000092546&sum=36000 [19:04:20]line 0 [19:04:20]OFD Sender: Processing packet 49852 [packets to send 21, broken 20] [19:04:20]ProducePacketName [19:04:20]name=ofd_packets/00049852 [19:04:20]OFD Sender: To server: pG, [19:04:20]CommunicateWithHost lk.salyk.kg:30040 [19:04:20]ConnectInit lk.salyk.kg [19:04:20]written 0, free lines is 4095 [19:04:20]Connected sock=10 [19:04:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 37 6A A0 01 38 36 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 35 33 06 04 3B 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 43 68 65 72 76 79 61 63 68 6B 69 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 B4 45 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C2 00 00 35 04 06 00 EE DE 73 F0 25 D8 A1 58 7C E7 B6 48 95 EA [19:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 A5 47 00 2F 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BC C2 00 00 F4 03 04 00 28 F0 C1 66 B6 04 01 00 00 E1 6C 2D 25 12 7A FD 65 [19:04:21]CommunicateWithHost err = 0 [19:04:21]CheckOFDResponse [19:04:21]1017 (14) - 77093643461234 [19:04:21]1041 (16) - 0000000000871800 [19:04:21]1040 (4) - 49852 [19:04:21]1012 (4) - 18.08.2024 12:59 [19:04:21]1206 (1) - 0 [19:04:21]OFD Sender: Remove packet 49852 [19:04:21]ProducePacketName [19:04:21]name=ofd_packets/00049852 [19:04:21]NVStorageDeleteData [19:04:21]Write to MH i2c: 01 00 00 BA 08 C2 [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 BA 08 00 00 00 00 00 76 0C 4B [19:04:21]RasterBufferAndPrint [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]written 0, free lines is 3196 [19:04:21]MH_Cut [19:04:21]Write to MH i2c: D1 01 00 C1 08 01 9B [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 01 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 01 00 C1 08 00 9A [19:04:21]Write to MH i2c: 01 00 00 C2 08 CA [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]OFD Sender: No OFD packet to send [19:04:22]*** Cut start [19:04:22]*** Purtial cut [19:04:22]*** CUTSNS_PIN = 0 [19:04:22]*** Stage 1: CUTSNS_PIN = 1 [19:04:24]Read from MH i2c: 01 [19:04:24]MH_I2C_Read... [19:04:24]*** Stop cut motor [19:04:24]*** Cut end [19:04:24]Read from MH i2c: 01 07 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [19:04:24]process_action close_receipt done [19:04:24]requested_data is exist [19:04:24]produce_requested_data [19:04:24]requested_item fm.sn is exist - process it [19:04:24]wFMCommunicate request_size=4 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 11 00 00 [19:04:24]Write to MH i2c: E2 08 00 C3 08 80 11 00 00 00 00 00 00 45 [19:04:24]Write i2c OK [19:04:24]MH_I2C_Read... [19:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:24]Read from MH i2c: E2 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 17 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 17 00 C3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [19:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:04:24]wFMCommunicate OK [19:04:24]requested_item fd.num is exist - process it [19:04:24]SAM_PROTO_GetFieldsCounters [19:04:24]wFMCommunicate request_size=4 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 13 00 00 [19:04:24]Write to MH i2c: E2 08 00 C4 08 80 13 00 00 00 00 00 00 48 [19:04:24]Write i2c OK [19:04:24]MH_I2C_Read... [19:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:24]Read from MH i2c: E2 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 62 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 62 00 C4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:24]wFMCommunicate OK [19:04:24]SAM_PROTO_GetFieldsCounters done [19:04:24]requested_item shift.num is exist - process it [19:04:24]requested_item shift.opened is exist - process it [19:04:24]req_shift_opened [19:04:24]FM_GetShiftState [19:04:24]SAM_PROTO_GetShiftState [19:04:24]wFMCommunicate request_size=4 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 13 01 00 [19:04:24]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [19:04:24]Write i2c OK [19:04:24]MH_I2C_Read... [19:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:24]Read from MH i2c: E2 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 0E 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 67 [19:04:24]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:04:24]wFMCommunicate OK [19:04:24]SAM_PROTO_GetShiftState done [19:04:24]FM_GetShiftState done [19:04:24]req_shift_opened done [19:04:24]requested_item shift.open_date is exist - process it [19:04:24]req_shift_open_date [19:04:24]req_shift_open_date done [19:04:24]produce_requested_data done [19:04:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49852,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:04:24]process_action_free close_receipt [19:04:24]json_value_free [19:04:24]json_value_free done [19:04:24]process_json_proto returns [19:04:24]Send response to host [19:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49852,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:04:24]free response buf [19:04:24]execute_script done [19:04:24]execute_script returns [19:04:24]free content buf [19:04:24]Sock 7.Close socket [19:04:24]Sock 7.Thread stoped [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:32]int [19:05:32]Write to MH i2c: 01 00 00 C6 08 CE [19:05:32]*** FLAG_PRN_KEY set [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 C6 08 00 08 00 00 00 FF 0F EB [19:05:32]state=0 [19:05:32]Key pressed [19:05:32]Feed [19:05:32]Write to MH i2c: D8 00 00 C7 08 A6 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D8 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D8 01 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D8 01 00 C7 08 00 A7 [19:05:32]int [19:05:32]Write to MH i2c: 01 00 00 C8 08 D0 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 C8 08 00 48 00 00 00 3C 00 5B [19:05:32]state=2 [19:05:32]Key pressed [19:05:32]int [19:05:32]Write to MH i2c: 01 00 00 C9 08 D1 [19:05:32]*** FLAG_PRN_KEY reset [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 F5 0F DC [19:05:32]state=2 [19:05:32]Stop feed [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]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:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:25]accept exits with 9 [19:25:25]New connection [19:25:25]New thread 3067055460 created [19:25:25]Thread 3067198820 joined [19:25:25]Waiting for new connection... [19:25:25] Sock 9.Parse request [19:25:25]Sock 9.Check first char [19:25:25]Sock 9.First char is OK [19:25:25]request: POST /json_proto HTTP/1.0 [19:25:25]Method: POST [19:25:25]URL: /json_proto [19:25:25]Method is POST - this is cgi request [19:25:25]url: /json_proto [19:25:25]query_string will be loaded in cgi processing [19:25:25]execute_cgi json_proto POST (null) [19:25:25]execute_cgi path=json_proto method=POST [19:25:25]POST find Content-Length [19:25:25]Host: 172.17.46.196:8080 [19:25:25]Content-Length: 727 [19:25:25]Content-Type: application/json [19:25:25] [19:25:25]POST finish read [19:25:25]Found Content-Length = 727 [19:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190029", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]execute_script... [19:25: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 : (3)190029", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]POST & json_proto [19:25:25]process_json_proto [19:25:25]json parsed OK: [19:25:25]protocol is kg_v1.0 [19:25:25]action value=close_receipt [19:25:25]process_action close_receipt [19:25:25]cmd_close_receipt [19:25:25]MH_GetDate [19:25:25]Write to MH i2c: F0 00 00 CA 08 C1 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 CA 08 00 A7 4A C2 66 27 15 C2 66 47 [19:25:25]GetLastDocTimeStamp 1724007860 [19:25:25]current date 1724009127 [19:25:25]FM_GetShiftState [19:25:25]SAM_PROTO_GetShiftState [19:25:25]wFMCommunicate request_size=4 [19:25:25]MH_SAM_APDU [19:25:25]CAPDU: 80 13 01 00 [19:25:25]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:25]Read from MH i2c: E2 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6D [19:25:25]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:25:25]wFMCommunicate OK [19:25:25]SAM_PROTO_GetShiftState done [19:25:25]FM_GetShiftState done [19:25:25]opened in 1723939759 [19:25:25]opened+sec_in_day 1724026159 [19:25:25]quantity*price = 8000 [19:25:25]sum+1 = 8001 [19:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 119 18.08.2024 19:25 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49853 ФПД: 13305518818050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192527&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49853&fm=13305518818050&tin=02508201610067®Number=0000000000092546&sum=8000 0 [19:25:26]StoreToDocumentArchive [19:25:26]shift 466 fd 49853 [19:25:26]save to /storage/0466/doc_00049853 [19:25:26]save last doc name /storage/0466/doc_00049853 to /storage/kkm_last_doc_name [19:25:26]save OK [19:25:26]Clear old archive folders... [19:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=306 [19:25:26]tlvbuf is 00FE2BC0 [19:25:26]SAM_PROTO_ClearQueue [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 09 00 00 [19:25:26]Write to MH i2c: E2 08 00 D8 08 80 09 00 00 00 00 00 00 52 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [19:25:26]RAPDU: 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_ClearQueue done [19:25:26]KKMCreateOFDPacket [19:25:26]OFDProtocolAddRootSTLVToBuf [19:25:26]FM_MakeSignedData [19:25:26]FM_MakeSignedData [19:25:26]SAM_PROTO_SignData [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 0D 01 02 [19:25:26]Write to MH i2c: E2 08 00 D9 08 80 0D 01 02 00 00 00 00 5A [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [19:25:26]RAPDU: 90 00 [19:25:26]wFMCommunicate OK [19:25:26]wFMCommunicate request_size=255 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 A7 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 [19:25:26]Write to MH i2c: E2 02 01 DA 08 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 A7 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 00 04 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [19:25:26]RAPDU: 90 00 [19:25:26]wFMCommunicate OK [19:25:26]wFMCommunicate request_size=65 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C2 00 00 35 04 06 00 0C 19 EE B9 03 02 [19:25:26]Write to MH i2c: E2 44 00 DB 08 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C2 00 00 35 04 06 00 0C 19 EE B9 03 02 00 00 F5 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [19:25:26]RAPDU: 90 00 [19:25:26]wFMCommunicate OK [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 0D 03 02 [19:25:26]Write to MH i2c: E2 08 00 DC 08 80 0D 03 02 00 00 00 00 5F [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 0B 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 0B 00 DC 08 00 A5 F4 91 20 25 22 F6 B2 90 00 99 [19:25:26]RAPDU: A5 F4 91 20 25 22 F6 B2 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_SignData done [19:25:26]FM_MakeSignedData done [19:25:26]CreateOFDProtocolMessage [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 DD 08 80 11 00 00 00 00 00 00 5F [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 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [19:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:25:26]wFMCommunicate OK [19:25:26]CreateOFDProtocolMessage done [19:25:26]OFDSenderStorePacket 49853 [19:25:26]StoreOFDPacket docnum=49853 [19:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 46 01 00 00 AA F8 3E 01 58 16 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 A7 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C2 00 00 35 04 06 00 0C 19 EE B9 03 02 A5 F4 91 20 25 22 F6 B2 [19:25:26]CheckFolder [19:25:26]dirname=/storage/ofd_packets [19:25:26]CheckFolder done [19:25:26]ProducePacketName [19:25:26]name=ofd_packets/00049853 [19:25:26]NVStorageSaveData ofd_packets/00049853 [19:25:26]File name is /storage/ofd_packets/00049853 [19:25:26]Write 356 bytes [19:25:26]NVStorageSaveData done [19:25:26]OFDSenderStorePacket done [19:25:26]KKMCreateOFDPacket done [19:25:26]NVStorageSaveData kkm_last_timestamp [19:25:26]File name is /storage/kkm_last_timestamp [19:25:26]Write 4 bytes [19:25:27]NVStorageSaveData done [19:25:27]ExternCall_PrintAddStr [19:25:27]wPrintStart [19:25:27]Write to MH i2c: 01 00 00 DE 08 E6 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [19:25:27]RasterBufferAndPrint [19:25:27]line Счет N : (3)190029 [19:25:27]line ИНН: 02508201610067 [19:25:27]line Контрольно-Кассовый Чек [19:25:27]line ПРОДАЖА [19:25:27]line Товар: 4600338001623 [19:25:27]line Вода Фруто НЯНЯ негазир д/детей 0,33л [19:25:27]line 1.000 * 80.00 [19:25:27]line = 80.00 [19:25:27]line НДС 12% НСП 1% [19:25:27]line > о реализуемом товаре [19:25:27]line ИТОГО: 80.00 [19:25:27]line НСП 1% : 0.71 [19:25:27]line НДС 12% : 8.50 [19:25:27]line Наличными: 80.00 [19:25:27]line Безнал.: 0.00 [19:25:27]line Место: АЗС № 95 "Партнер Нефть" [19:25:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:25:27]line СНО: Общий режим [19:25:27]line Чек 119 18.08.2024 19:25 [19:25:27]line Смена: 466 ФФД: 1.0 [19:25:27]line ЗНМ: 0300000078 [19:25:27]line РНМ: 0000000000092546 [19:25:27]line Версия ККМ: 001 [19:25:27]line ФМ: 0000000000871800 [19:25:27]line ФД: 49853 [19:25:27]line ФПД: 13305518818050 [19:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192527&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49853&fm=13305518818050&tin=02508201610067®Number=0000000000092546&sum=8000 [19:25:27]line 0 [19:25:27]OFD Sender: Processing packet 49853 [packets to send 21, broken 20] [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00049853 [19:25:27]OFD Sender: To server: pG, [19:25:27]CommunicateWithHost lk.salyk.kg:30040 [19:25:27]ConnectInit lk.salyk.kg [19:25:27]written 0, free lines is 4095 [19:25:27]Connected sock=10 [19:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 46 01 00 00 AA F8 3E 01 58 16 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 A7 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C2 00 00 35 04 06 00 0C 19 EE B9 03 02 A5 F4 91 20 25 22 F6 B2 [19:25:27]Write to MH i2c: 01 00 00 07 09 10 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 DC 0C FF [19:25:27]RasterBufferAndPrint [19:25:27]line [19:25:27]line [19:25:27]line [19:25:27]line [19:25:27]line [19:25:27]written 0, free lines is 3298 [19:25:27]MH_Cut [19:25:27]Write to MH i2c: D1 01 00 0E 09 01 E9 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D1 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D1 01 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D1 01 00 0E 09 00 E8 [19:25:27]Write to MH i2c: 01 00 00 0F 09 18 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 42 60 47 00 98 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BD C2 00 00 F4 03 04 00 1B F5 C1 66 B6 04 01 00 00 55 18 FE A4 1E B4 A7 01 [19:25:27]CommunicateWithHost err = 0 [19:25:27]CheckOFDResponse [19:25:27]1017 (14) - 77093643461234 [19:25:27]1041 (16) - 0000000000871800 [19:25:27]1040 (4) - 49853 [19:25:27]1012 (4) - 18.08.2024 13:20 [19:25:27]1206 (1) - 0 [19:25:27]OFD Sender: Remove packet 49853 [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00049853 [19:25:27]NVStorageDeleteData [19:25:28]OFD Sender: No OFD packet to send [19:25:28]*** Cut start [19:25:28]*** Purtial cut [19:25:28]*** Stage 1: CUTSNS_PIN = 1 [19:25:28]Read from MH i2c: 01 [19:25:28]MH_I2C_Read... [19:25:28]*** Stop cut motor [19:25:28]*** Cut end [19:25:28]Read from MH i2c: 01 07 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 07 00 0F 09 00 00 00 00 00 FF 0F 2D [19:25:28]process_action close_receipt done [19:25:28]requested_data is exist [19:25:28]produce_requested_data [19:25:28]requested_item fm.sn is exist - process it [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 11 00 00 [19:25:28]Write to MH i2c: E2 08 00 10 09 80 11 00 00 00 00 00 00 93 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 17 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 17 00 10 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [19:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:25:28]wFMCommunicate OK [19:25:28]requested_item fd.num is exist - process it [19:25:28]SAM_PROTO_GetFieldsCounters [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 13 00 00 [19:25:28]Write to MH i2c: E2 08 00 11 09 80 13 00 00 00 00 00 00 96 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 11 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [19: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_GetFieldsCounters done [19:25:29]requested_item shift.num is exist - process it [19:25:29]requested_item shift.opened is exist - process it [19:25:29]req_shift_opened [19:25:29]FM_GetShiftState [19:25:29]SAM_PROTO_GetShiftState [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 13 01 00 [19:25:29]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0E 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B5 [19:25:29]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_GetShiftState done [19:25:29]FM_GetShiftState done [19:25:29]req_shift_opened done [19:25:29]requested_item shift.open_date is exist - process it [19:25:29]req_shift_open_date [19:25:29]req_shift_open_date done [19:25:29]produce_requested_data done [19:25:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49853,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:25:29]process_action_free close_receipt [19:25:29]json_value_free [19:25:29]json_value_free done [19:25:29]process_json_proto returns [19:25:29]Send response to host [19:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49853,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:25:29]free response buf [19:25:29]execute_script done [19:25:29]execute_script returns [19:25:29]free content buf [19:25:29]Sock 9.Close socket [19:25:29]Sock 9.Thread stoped [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:19]accept exits with 7 [19:26:19]New connection [19:26:19]New thread 3067198820 created [19:26:19]Thread 3067055460 joined [19:26:19]Waiting for new connection... [19:26:19] Sock 7.Parse request [19:26:19]Sock 7.Check first char [19:26:19]Sock 7.First char is OK [19:26:19]request: POST /json_proto HTTP/1.0 [19:26:19]Method: POST [19:26:19]URL: /json_proto [19:26:19]Method is POST - this is cgi request [19:26:19]url: /json_proto [19:26:19]query_string will be loaded in cgi processing [19:26:19]execute_cgi json_proto POST (null) [19:26:19]execute_cgi path=json_proto method=POST [19:26:19]POST find Content-Length [19:26:19]Host: 172.17.46.196:8080 [19:26:19]Content-Length: 621 [19:26:19]Content-Type: application/json [19:26:19] [19:26:19]POST finish read [19:26:19]Found Content-Length = 621 [19:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190030", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:19]execute_script... [19:26: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 : (3)190030", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:19]POST & json_proto [19:26:19]process_json_proto [19:26:19]json parsed OK: [19:26:19]protocol is kg_v1.0 [19:26:19]action value=close_receipt [19:26:19]process_action close_receipt [19:26:19]cmd_close_receipt [19:26:19]MH_GetDate [19:26:19]Write to MH i2c: F0 00 00 13 09 0B [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: F0 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: F0 09 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: F0 09 00 13 09 00 DD 4A C2 66 27 15 C2 66 C7 [19:26:19]GetLastDocTimeStamp 1724009127 [19:26:19]current date 1724009181 [19:26:19]FM_GetShiftState [19:26:19]SAM_PROTO_GetShiftState [19:26:19]wFMCommunicate request_size=4 [19:26:19]MH_SAM_APDU [19:26:19]CAPDU: 80 13 01 00 [19:26:19]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:19]Read from MH i2c: E2 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 0E 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B7 [19:26:19]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:26:19]wFMCommunicate OK [19:26:19]SAM_PROTO_GetShiftState done [19:26:19]FM_GetShiftState done [19:26:19]opened in 1723939759 [19:26:19]opened+sec_in_day 1724026159 [19:26:19]quantity*price = 14000 [19:26:19]sum+1 = 14001 [19:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 120 18.08.2024 19:26 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49854 ФПД: 240857991086676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192621&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49854&fm=240857991086676&tin=02508201610067®Number=0000000000092546&sum=14000 0 [19:26:20]StoreToDocumentArchive [19:26:20]shift 466 fd 49854 [19:26:20]save to /storage/0466/doc_00049854 [19:26:20]save last doc name /storage/0466/doc_00049854 to /storage/kkm_last_doc_name [19:26:20]save OK [19:26:20]Clear old archive folders... [19:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:26:20]tlvbuf is 00FD1200 [19:26:20]SAM_PROTO_ClearQueue [19:26:20]wFMCommunicate request_size=4 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 09 00 00 [19:26:20]Write to MH i2c: E2 08 00 21 09 80 09 00 00 00 00 00 00 9C [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [19:26:20]RAPDU: 90 00 [19:26:20]wFMCommunicate OK [19:26:20]SAM_PROTO_ClearQueue done [19:26:20]KKMCreateOFDPacket [19:26:20]OFDProtocolAddRootSTLVToBuf [19:26:20]FM_MakeSignedData [19:26:20]FM_MakeSignedData [19:26:20]SAM_PROTO_SignData [19:26:20]wFMCommunicate request_size=4 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 0D 01 02 [19:26:20]Write to MH i2c: E2 08 00 22 09 80 0D 01 02 00 00 00 00 A4 [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:20]Read from MH i2c: E2 03 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [19:26:20]RAPDU: 90 00 [19:26:20]wFMCommunicate OK [19:26:20]wFMCommunicate request_size=255 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DD 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [19:26:20]Write to MH i2c: E2 02 01 23 09 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DD 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 34 [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [19:26:20]RAPDU: 90 00 [19:26:20]wFMCommunicate OK [19:26:20]wFMCommunicate request_size=32 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C2 00 00 35 04 06 00 DB 0F 1F 00 02 54 [19:26:20]Write to MH i2c: E2 23 00 24 09 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C2 00 00 35 04 06 00 DB 0F 1F 00 02 54 00 00 DB [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [19:26:20]RAPDU: 90 00 [19:26:20]wFMCommunicate OK [19:26:20]wFMCommunicate request_size=4 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 0D 03 02 [19:26:20]Write to MH i2c: E2 08 00 25 09 80 0D 03 02 00 00 00 00 A9 [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 0B 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 0B 00 25 09 00 0A 14 47 F3 9E 93 3C 0E 90 00 7D [19:26:20]RAPDU: 0A 14 47 F3 9E 93 3C 0E 90 00 [19:26:20]wFMCommunicate OK [19:26:20]SAM_PROTO_SignData done [19:26:20]FM_MakeSignedData done [19:26:20]CreateOFDProtocolMessage [19:26:20]wFMCommunicate request_size=4 [19:26:20]MH_SAM_APDU [19:26:20]CAPDU: 80 11 00 00 [19:26:20]Write to MH i2c: E2 08 00 26 09 80 11 00 00 00 00 00 00 A9 [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:20]Read from MH i2c: E2 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 17 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: E2 17 00 26 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F4 [19:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:26:20]wFMCommunicate OK [19:26:20]CreateOFDProtocolMessage done [19:26:20]OFDSenderStorePacket 49854 [19:26:20]StoreOFDPacket docnum=49854 [19:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F4 E2 1D 01 93 F5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DD 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C2 00 00 35 04 06 00 DB 0F 1F 00 02 54 0A 14 47 F3 9E 93 3C 0E [19:26:20]CheckFolder [19:26:20]dirname=/storage/ofd_packets [19:26:20]CheckFolder done [19:26:20]ProducePacketName [19:26:20]name=ofd_packets/00049854 [19:26:20]NVStorageSaveData ofd_packets/00049854 [19:26:20]File name is /storage/ofd_packets/00049854 [19:26:20]Write 323 bytes [19:26:20]NVStorageSaveData done [19:26:20]OFDSenderStorePacket done [19:26:20]KKMCreateOFDPacket done [19:26:20]NVStorageSaveData kkm_last_timestamp [19:26:20]File name is /storage/kkm_last_timestamp [19:26:20]Write 4 bytes [19:26:20]NVStorageSaveData done [19:26:20]ExternCall_PrintAddStr [19:26:20]wPrintStart [19:26:20]Write to MH i2c: 01 00 00 27 09 30 [19:26:20]Write i2c OK [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: 01 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: 01 07 00 [19:26:20]MH_I2C_Read... [19:26:20]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [19:26:20]RasterBufferAndPrint [19:26:20]line Счет N : (3)190030 [19:26:20]line ИНН: 02508201610067 [19:26:20]line Контрольно-Кассовый Чек [19:26:20]line ПРОДАЖА [19:26:20]line Товар: 48743570 [19:26:20]line Сигареты Winston XStyle Blue [19:26:20]line 1.000 * 140.00 [19:26:20]line = 140.00 [19:26:20]line НДС 12% НСП 1% [19:26:20]line > о реализуемом товаре [19:26:20]line ИТОГО: 140.00 [19:26:20]line НСП 1% : 1.24 [19:26:20]line НДС 12% : 14.87 [19:26:20]line Наличными: 140.00 [19:26:20]line Безнал.: 0.00 [19:26:20]line Место: АЗС № 95 "Партнер Нефть" [19:26:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:26:20]line СНО: Общий режим [19:26:21]line Чек 120 18.08.2024 19:26 [19:26:21]line Смена: 466 ФФД: 1.0 [19:26:21]line ЗНМ: 0300000078 [19:26:21]line РНМ: 0000000000092546 [19:26:21]line Версия ККМ: 001 [19:26:21]line ФМ: 0000000000871800 [19:26:21]line ФД: 49854 [19:26:21]line ФПД: 240857991086676 [19:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192621&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49854&fm=240857991086676&tin=02508201610067®Number=0000000000092546&sum=14000 [19:26:21]line 0 [19:26:21]OFD Sender: Processing packet 49854 [packets to send 21, broken 20] [19:26:21]ProducePacketName [19:26:21]name=ofd_packets/00049854 [19:26:21]OFD Sender: To server: pG, [19:26:21]CommunicateWithHost lk.salyk.kg:30040 [19:26:21]ConnectInit lk.salyk.kg [19:26:21]written 0, free lines is 4095 [19:26:21]Connected sock=10 [19:26:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F4 E2 1D 01 93 F5 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DD 4A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BE C2 00 00 35 04 06 00 DB 0F 1F 00 02 54 0A 14 47 F3 9E 93 3C 0E [19:26:21]Write to MH i2c: 01 00 00 4F 09 58 [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: 01 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: 01 07 00 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 DF 0C 4A [19:26:21]RasterBufferAndPrint [19:26:21]line [19:26:21]line [19:26:21]line [19:26:21]line [19:26:21]line [19:26:21]written 0, free lines is 3301 [19:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2C A7 47 00 78 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 38 30 30 10 04 04 00 BE C2 00 00 F4 03 04 00 51 F5 C1 66 B6 04 01 00 00 B0 7C 84 92 A4 A8 12 8B [19:26:21]CommunicateWithHost err = 0 [19:26:21]CheckOFDResponse [19:26:21]1017 (14) - 77093643461234 [19:26:21]1041 (16) - 0000000000871800 [19:26:21]1040 (4) - 49854 [19:26:21]1012 (4) - 18.08.2024 13:21 [19:26:21]1206 (1) - 0 [19:26:21]OFD Sender: Remove packet 49854 [19:26:21]ProducePacketName [19:26:21]name=ofd_packets/00049854 [19:26:21]NVStorageDeleteData [19:26:21]MH_Cut [19:26:21]Write to MH i2c: D1 01 00 56 09 01 31 [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: D1 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: D1 01 00 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: D1 01 00 56 09 00 30 [19:26:21]Write to MH i2c: 01 00 00 57 09 60 [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:22]OFD Sender: No OFD packet to send [19:26:22]*** Cut start [19:26:22]*** Purtial cut [19:26:22]*** CUTSNS_PIN = 0 [19:26:22]*** Stage 1: CUTSNS_PIN = 1 [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]*** Stop cut motor [19:26:24]*** Cut end [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [19:26:24]process_action close_receipt done [19:26:24]requested_data is exist [19:26:24]produce_requested_data [19:26:24]requested_item fm.sn is exist - process it [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 11 00 00 [19:26:24]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 [19:26:24]MH_I2C_Read... [19:26:24]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 38 30 30 90 00 26 [19:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:26:24]wFMCommunicate OK [19:26:24]requested_item fd.num is exist - process it [19:26:24]SAM_PROTO_GetFieldsCounters [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 13 00 00 [19:26:24]Write to MH i2c: E2 08 00 59 09 80 13 00 00 00 00 00 00 DE [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 62 00 [19:26:24]MH_I2C_Read... [19:26:24]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [19:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_GetFieldsCounters done [19:26:24]requested_item shift.num is exist - process it [19:26:24]requested_item shift.opened is exist - process it [19:26:24]req_shift_opened [19:26:24]FM_GetShiftState [19:26:24]SAM_PROTO_GetShiftState [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 13 01 00 [19:26:24]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FD [19:26:24]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_GetShiftState done [19:26:24]FM_GetShiftState done [19:26:24]req_shift_opened done [19:26:24]requested_item shift.open_date is exist - process it [19:26:24]req_shift_open_date [19:26:24]req_shift_open_date done [19:26:24]produce_requested_data done [19:26:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49854,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:26:24]process_action_free close_receipt [19:26:24]json_value_free [19:26:24]json_value_free done [19:26:24]process_json_proto returns [19:26:24]Send response to host [19:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49854,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:26:24]free response buf [19:26:24]execute_script done [19:26:24]execute_script returns [19:26:24]free content buf [19:26:24]Sock 7.Close socket [19:26:24]Sock 7.Thread stoped [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]accept exits with 9 [19:31:07]New connection [19:31:07]New thread 3067055460 created [19:31:07]Thread 3067198820 joined [19:31:07]Waiting for new connection... [19:31:07] Sock 9.Parse request [19:31:07]Sock 9.Check first char [19:31:07]Sock 9.First char is OK [19:31:07]request: POST /json_proto HTTP/1.0 [19:31:07]Method: POST [19:31:07]URL: /json_proto [19:31:07]Method is POST - this is cgi request [19:31:07]url: /json_proto [19:31:07]query_string will be loaded in cgi processing [19:31:07]execute_cgi json_proto POST (null) [19:31:07]execute_cgi path=json_proto method=POST [19:31:07]POST find Content-Length [19:31:07]Host: 172.17.46.196:8080 [19:31:07]Content-Length: 627 [19:31:07]Content-Type: application/json [19:31:07] [19:31:07]POST finish read [19:31:07]Found Content-Length = 627 [19:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190031", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:07]execute_script... [19:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190031", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:07]POST & json_proto [19:31:07]process_json_proto [19:31:07]json parsed OK: [19:31:07]protocol is kg_v1.0 [19:31:07]action value=close_receipt [19:31:07]process_action close_receipt [19:31:07]cmd_close_receipt [19:31:07]MH_GetDate [19:31:07]Write to MH i2c: F0 00 00 5B 09 53 [19:31:07]Write i2c OK [19:31:07]MH_I2C_Read... [19:31:07]Read from MH i2c: F0 [19:31:07]MH_I2C_Read... [19:31:07]Read from MH i2c: F0 09 00 [19:31:07]MH_I2C_Read... [19:31:07]Read from MH i2c: F0 09 00 5B 09 00 FC 4B C2 66 27 15 C2 66 2F [19:31:07]GetLastDocTimeStamp 1724009181 [19:31:07]current date 1724009468 [19:31:07]FM_GetShiftState [19:31:07]SAM_PROTO_GetShiftState [19:31:07]wFMCommunicate request_size=4 [19:31:07]MH_SAM_APDU [19:31:07]CAPDU: 80 13 01 00 [19:31:07]Write to MH i2c: E2 08 00 5C 09 80 13 01 00 00 00 00 00 E2 [19:31:07]Write i2c OK [19:31:07]MH_I2C_Read... [19:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:07]Read from MH i2c: E2 [19:31:07]MH_I2C_Read... [19:31:07]Read from MH i2c: E2 0E 00 [19:31:07]MH_I2C_Read... [19:31:07]Read from MH i2c: E2 0E 00 5C 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FF [19:31:07]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:31:07]wFMCommunicate OK [19:31:07]SAM_PROTO_GetShiftState done [19:31:07]FM_GetShiftState done [19:31:07]opened in 1723939759 [19:31:07]opened+sec_in_day 1724026159 [19:31:07]quantity*price = 3000 [19:31:07]sum+1 = 3001 [19:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 121 18.08.2024 19:31 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49855 ФПД: 219627165981479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193109&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49855&fm=219627165981479&tin=02508201610067®Number=0000000000092546&sum=3000 0 [19:31:08]StoreToDocumentArchive [19:31:08]shift 466 fd 49855 [19:31:08]save to /storage/0466/doc_00049855 [19:31:08]save last doc name /storage/0466/doc_00049855 to /storage/kkm_last_doc_name [19:31:08]save OK [19:31:08]Clear old archive folders... [19:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:31:08]tlvbuf is 00F72890 [19:31:08]SAM_PROTO_ClearQueue [19:31:08]wFMCommunicate request_size=4 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 09 00 00 [19:31:08]Write to MH i2c: E2 08 00 69 09 80 09 00 00 00 00 00 00 E4 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [19:31:08]RAPDU: 90 00 [19:31:08]wFMCommunicate OK [19:31:08]SAM_PROTO_ClearQueue done [19:31:08]KKMCreateOFDPacket [19:31:08]OFDProtocolAddRootSTLVToBuf [19:31:08]FM_MakeSignedData [19:31:08]FM_MakeSignedData [19:31:08]SAM_PROTO_SignData [19:31:08]wFMCommunicate request_size=4 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 0D 01 02 [19:31:08]Write to MH i2c: E2 08 00 6A 09 80 0D 01 02 00 00 00 00 EC [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [19:31:08]RAPDU: 90 00 [19:31:08]wFMCommunicate OK [19:31:08]wFMCommunicate request_size=255 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 FD 4B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [19:31:08]Write to MH i2c: E2 02 01 6B 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 FD 4B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 44 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [19:31:08]RAPDU: 90 00 [19:31:08]wFMCommunicate OK [19:31:08]wFMCommunicate request_size=33 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C2 00 00 35 04 06 00 C7 BF EF 36 1B 27 [19:31:08]Write to MH i2c: E2 24 00 6C 09 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C2 00 00 35 04 06 00 C7 BF EF 36 1B 27 00 00 E4 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [19:31:08]RAPDU: 90 00 [19:31:08]wFMCommunicate OK [19:31:08]wFMCommunicate request_size=4 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 0D 03 02 [19:31:08]Write to MH i2c: E2 08 00 6D 09 80 0D 03 02 00 00 00 00 F1 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 0B 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 0B 00 6D 09 00 6D 1E D8 B1 EC 27 F0 4D 90 00 56 [19:31:08]RAPDU: 6D 1E D8 B1 EC 27 F0 4D 90 00 [19:31:08]wFMCommunicate OK [19:31:08]SAM_PROTO_SignData done [19:31:08]FM_MakeSignedData done [19:31:08]CreateOFDProtocolMessage [19:31:08]wFMCommunicate request_size=4 [19:31:08]MH_SAM_APDU [19:31:08]CAPDU: 80 11 00 00 [19:31:08]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:08]Read from MH i2c: E2 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: E2 17 00 [19:31:08]MH_I2C_Read... [19:31:08]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 38 30 30 90 00 3C [19:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:31:08]wFMCommunicate OK [19:31:08]CreateOFDProtocolMessage done [19:31:08]OFDSenderStorePacket 49855 [19:31:08]StoreOFDPacket docnum=49855 [19:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 DA 48 1E 01 0D AF 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 FD 4B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C2 00 00 35 04 06 00 C7 BF EF 36 1B 27 6D 1E D8 B1 EC 27 F0 4D [19:31:08]CheckFolder [19:31:08]dirname=/storage/ofd_packets [19:31:08]CheckFolder done [19:31:08]ProducePacketName [19:31:08]name=ofd_packets/00049855 [19:31:08]NVStorageSaveData ofd_packets/00049855 [19:31:08]File name is /storage/ofd_packets/00049855 [19:31:08]Write 324 bytes [19:31:08]NVStorageSaveData done [19:31:08]OFDSenderStorePacket done [19:31:08]KKMCreateOFDPacket done [19:31:08]NVStorageSaveData kkm_last_timestamp [19:31:08]File name is /storage/kkm_last_timestamp [19:31:08]Write 4 bytes [19:31:08]NVStorageSaveData done [19:31:08]ExternCall_PrintAddStr [19:31:08]wPrintStart [19:31:08]Write to MH i2c: 01 00 00 6F 09 78 [19:31:08]Write i2c OK [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: 01 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: 01 07 00 [19:31:08]MH_I2C_Read... [19:31:08]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 FF 0F 8D [19:31:08]RasterBufferAndPrint [19:31:08]line Счет N : (3)190031 [19:31:08]line ИНН: 02508201610067 [19:31:08]line Контрольно-Кассовый Чек [19:31:08]line ПРОДАЖА [19:31:08]line Товар: 4700007690018 [19:31:08]line Негаз вода Pamir 0,5 л [19:31:08]line 1.000 * 30.00 [19:31:08]line = 30.00 [19:31:08]line НДС 12% НСП 1% [19:31:08]line > о реализуемом товаре [19:31:08]line ИТОГО: 30.00 [19:31:08]line НСП 1% : 0.26 [19:31:08]line НДС 12% : 3.19 [19:31:08]line Наличными: 30.00 [19:31:08]line Безнал.: 0.00 [19:31:08]line Место: АЗС № 95 "Партнер Нефть" [19:31:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:31:08]line СНО: Общий режим [19:31:08]line Чек 121 18.08.2024 19:31 [19:31:08]line Смена: 466 ФФД: 1.0 [19:31:08]line ЗНМ: 0300000078 [19:31:08]line РНМ: 0000000000092546 [19:31:08]line Версия ККМ: 001 [19:31:08]line ФМ: 0000000000871800 [19:31:08]line ФД: 49855 [19:31:08]line ФПД: 219627165981479 [19:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193109&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49855&fm=219627165981479&tin=02508201610067®Number=0000000000092546&sum=3000 [19:31:09]OFD Sender: Processing packet 49855 [packets to send 21, broken 20] [19:31:09]ProducePacketName [19:31:09]name=ofd_packets/00049855 [19:31:09]OFD Sender: To server: pG, [19:31:09]CommunicateWithHost lk.salyk.kg:30040 [19:31:09]ConnectInit lk.salyk.kg [19:31:09]line 0 [19:31:09]written 0, free lines is 4095 [19:31:09]Write to MH i2c: 01 00 00 97 09 A0 [19:31:09]Write i2c OK [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: 01 [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: 01 07 00 [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 E2 0C 95 [19:31:09]RasterBufferAndPrint [19:31:09]line [19:31:09]line [19:31:09]line [19:31:09]line [19:31:09]line [19:31:09]written 0, free lines is 3303 [19:31:09]MH_Cut [19:31:09]Write to MH i2c: D1 01 00 9E 09 01 79 [19:31:09]Write i2c OK [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: D1 [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: D1 01 00 [19:31:09]MH_I2C_Read... [19:31:09]Read from MH i2c: D1 01 00 9E 09 00 78 [19:31:09]Write to MH i2c: 01 00 00 9F 09 A8 [19:31:09]Write i2c OK [19:31:09]MH_I2C_Read... [19:31:10]*** Cut start [19:31:10]*** Purtial cut [19:31:10]*** Stage 1: CUTSNS_PIN = 1 [19:31:10]Read from MH i2c: 01 [19:31:10]MH_I2C_Read... [19:31:10]*** Stop cut motor [19:31:10]*** Cut end [19:31:10]Read from MH i2c: 01 07 00 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [19:31:10]process_action close_receipt done [19:31:10]requested_data is exist [19:31:10]produce_requested_data [19:31:10]requested_item fm.sn is exist - process it [19:31:10]wFMCommunicate request_size=4 [19:31:10]MH_SAM_APDU [19:31:10]CAPDU: 80 11 00 00 [19:31:10]Write to MH i2c: E2 08 00 A0 09 80 11 00 00 00 00 00 00 23 [19:31:10]Write i2c OK [19:31:10]MH_I2C_Read... [19:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:10]Read from MH i2c: E2 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 17 00 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 17 00 A0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [19:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:31:10]wFMCommunicate OK [19:31:10]requested_item fd.num is exist - process it [19:31:10]SAM_PROTO_GetFieldsCounters [19:31:10]wFMCommunicate request_size=4 [19:31:10]MH_SAM_APDU [19:31:10]CAPDU: 80 13 00 00 [19:31:10]Write to MH i2c: E2 08 00 A1 09 80 13 00 00 00 00 00 00 26 [19:31:10]Write i2c OK [19:31:10]MH_I2C_Read... [19:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:10]Read from MH i2c: E2 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 62 00 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 62 00 A1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [19:31:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 BF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:10]wFMCommunicate OK [19:31:10]SAM_PROTO_GetFieldsCounters done [19:31:10]requested_item shift.num is exist - process it [19:31:10]requested_item shift.opened is exist - process it [19:31:10]req_shift_opened [19:31:10]FM_GetShiftState [19:31:10]SAM_PROTO_GetShiftState [19:31:10]wFMCommunicate request_size=4 [19:31:10]MH_SAM_APDU [19:31:10]CAPDU: 80 13 01 00 [19:31:10]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [19:31:10]Write i2c OK [19:31:10]MH_I2C_Read... [19:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:10]Read from MH i2c: E2 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 0E 00 [19:31:10]MH_I2C_Read... [19:31:10]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 45 [19:31:10]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:31:10]wFMCommunicate OK [19:31:10]SAM_PROTO_GetShiftState done [19:31:10]FM_GetShiftState done [19:31:10]req_shift_opened done [19:31:10]requested_item shift.open_date is exist - process it [19:31:10]req_shift_open_date [19:31:10]req_shift_open_date done [19:31:10]produce_requested_data done [19:31:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49855,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:31:10]process_action_free close_receipt [19:31:10]json_value_free [19:31:10]json_value_free done [19:31:10]process_json_proto returns [19:31:11]Send response to host [19:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49855,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:31:11]free response buf [19:31:11]execute_script done [19:31:11]execute_script returns [19:31:11]free content buf [19:31:11]Sock 9.Close socket [19:31:11]Sock 9.Thread stoped [19:31:42]accept exits with 7 [19:31:42]New connection [19:31:42]New thread 3067198820 created [19:31:42]Thread 3067055460 joined [19:31:42]Waiting for new connection... [19:31:42] Sock 7.Parse request [19:31:42]Sock 7.Check first char [19:31:42]Sock 7.First char is OK [19:31:42]request: POST /json_proto HTTP/1.0 [19:31:42]Method: POST [19:31:42]URL: /json_proto [19:31:42]Method is POST - this is cgi request [19:31:42]url: /json_proto [19:31:42]query_string will be loaded in cgi processing [19:31:42]execute_cgi json_proto POST (null) [19:31:42]execute_cgi path=json_proto method=POST [19:31:42]POST find Content-Length [19:31:42]Host: 172.17.46.196:8080 [19:31:42]Content-Length: 801 [19:31:42]Content-Type: application/json [19:31:42] [19:31:42]POST finish read [19:31:42]Found Content-Length = 801 [19:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190032", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:42]execute_script... [19:31: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 : (3)190032", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:42]POST & json_proto [19:31:42]process_json_proto [19:31:42]json parsed OK: [19:31:42]protocol is kg_v1.0 [19:31:42]action value=close_receipt [19:31:42]process_action close_receipt [19:31:42]cmd_close_receipt [19:31:42]MH_GetDate [19:31:42]Write to MH i2c: F0 00 00 A3 09 9B [19:31:42]Write i2c OK [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: F0 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: F0 09 00 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: F0 09 00 A3 09 00 20 4C C2 66 27 15 C2 66 9C [19:31:42]GetLastDocTimeStamp 1724009469 [19:31:42]current date 1724009504 [19:31:42]FM_GetShiftState [19:31:42]SAM_PROTO_GetShiftState [19:31:42]wFMCommunicate request_size=4 [19:31:42]MH_SAM_APDU [19:31:42]CAPDU: 80 13 01 00 [19:31:42]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [19:31:42]Write i2c OK [19:31:42]MH_I2C_Read... [19:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:42]Read from MH i2c: E2 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: E2 0E 00 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 47 [19:31:42]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:31:42]wFMCommunicate OK [19:31:42]SAM_PROTO_GetShiftState done [19:31:42]FM_GetShiftState done [19:31:42]opened in 1723939759 [19:31:42]opened+sec_in_day 1724026159 [19:31:42]quantity*price = 15600 [19:31:42]sum+1 = 15601 [19:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 0.00 Безнал.: 156.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 122 18.08.2024 19:31 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49856 ФПД: 144056094664295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193144&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49856&fm=144056094664295&tin=02508201610067®Number=0000000000092546&sum=15600 0 [19:31:43]StoreToDocumentArchive [19:31:43]shift 466 fd 49856 [19:31:43]save to /storage/0466/doc_00049856 [19:31:43]save last doc name /storage/0466/doc_00049856 to /storage/kkm_last_doc_name [19:31:43]save OK [19:31:43]Clear old archive folders... [19:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:31:43]tlvbuf is 00F8C660 [19:31:43]SAM_PROTO_ClearQueue [19:31:43]wFMCommunicate request_size=4 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 09 00 00 [19:31:43]Write to MH i2c: E2 08 00 B1 09 80 09 00 00 00 00 00 00 2C [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [19:31:43]RAPDU: 90 00 [19:31:43]wFMCommunicate OK [19:31:43]SAM_PROTO_ClearQueue done [19:31:43]KKMCreateOFDPacket [19:31:43]OFDProtocolAddRootSTLVToBuf [19:31:43]FM_MakeSignedData [19:31:43]FM_MakeSignedData [19:31:43]SAM_PROTO_SignData [19:31:43]wFMCommunicate request_size=4 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 0D 01 02 [19:31:43]Write to MH i2c: E2 08 00 B2 09 80 0D 01 02 00 00 00 00 34 [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [19:31:43]RAPDU: 90 00 [19:31:43]wFMCommunicate OK [19:31:43]wFMCommunicate request_size=255 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 20 4C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [19:31:43]Write to MH i2c: E2 02 01 B3 09 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 20 4C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 37 [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [19:31:43]RAPDU: 90 00 [19:31:43]wFMCommunicate OK [19:31:43]wFMCommunicate request_size=31 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 C0 C2 00 00 35 04 06 00 83 04 AC 59 A6 67 [19:31:43]Write to MH i2c: E2 22 00 B4 09 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 C0 C2 00 00 35 04 06 00 83 04 AC 59 A6 67 00 00 75 [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [19:31:43]RAPDU: 90 00 [19:31:43]wFMCommunicate OK [19:31:43]wFMCommunicate request_size=4 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 0D 03 02 [19:31:43]Write to MH i2c: E2 08 00 B5 09 80 0D 03 02 00 00 00 00 39 [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 0B 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 0B 00 B5 09 00 0C 6A AE 36 43 20 82 00 90 00 79 [19:31:43]RAPDU: 0C 6A AE 36 43 20 82 00 90 00 [19:31:43]wFMCommunicate OK [19:31:43]SAM_PROTO_SignData done [19:31:43]FM_MakeSignedData done [19:31:43]CreateOFDProtocolMessage [19:31:43]wFMCommunicate request_size=4 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 11 00 00 [19:31:43]Write to MH i2c: E2 08 00 B6 09 80 11 00 00 00 00 00 00 39 [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:44]Read from MH i2c: E2 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: E2 17 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: E2 17 00 B6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [19:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:31:44]wFMCommunicate OK [19:31:44]CreateOFDProtocolMessage done [19:31:44]OFDSenderStorePacket 49856 [19:31:44]StoreOFDPacket docnum=49856 [19:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 6D 5E 1C 01 DC 86 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 20 4C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C2 00 00 35 04 06 00 83 04 AC 59 A6 67 0C 6A AE 36 43 20 82 00 [19:31:44]CheckFolder [19:31:44]dirname=/storage/ofd_packets [19:31:44]CheckFolder done [19:31:44]ProducePacketName [19:31:44]name=ofd_packets/00049856 [19:31:44]NVStorageSaveData ofd_packets/00049856 [19:31:44]File name is /storage/ofd_packets/00049856 [19:31:44]Write 322 bytes [19:31:44]NVStorageSaveData done [19:31:44]OFDSenderStorePacket done [19:31:44]KKMCreateOFDPacket done [19:31:44]NVStorageSaveData kkm_last_timestamp [19:31:44]File name is /storage/kkm_last_timestamp [19:31:44]Write 4 bytes [19:31:44]NVStorageSaveData done [19:31:44]ExternCall_PrintAddStr [19:31:44]wPrintStart [19:31:44]Write to MH i2c: 01 00 00 B7 09 C0 [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 07 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [19:31:44]RasterBufferAndPrint [19:31:44]line Счет N : (3)190032 [19:31:44]line ИНН: 02508201610067 [19:31:44]line Контрольно-Кассовый Чек [19:31:44]line ПРОДАЖА [19:31:44]line Товар: 4700000480517 [19:31:44]line Пиво Живое 1л ПЭТ [19:31:44]line 1.000 * 156.00 [19:31:44]line = 156.00 [19:31:44]line НДС 12% НСП 1% [19:31:44]line > о реализуемом товаре [19:31:44]line ИТОГО: 156.00 [19:31:44]line НСП 1% : 1.38 [19:31:44]line НДС 12% : 16.57 [19:31:44]line Наличными: 0.00 [19:31:44]line Безнал.: 156.00 [19:31:44]line Место: АЗС № 95 "Партнер Нефть" [19:31:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:31:44]line СНО: Общий режим [19:31:44]line Чек 122 18.08.2024 19:31 [19:31:44]line Смена: 466 ФФД: 1.0 [19:31:44]line ЗНМ: 0300000078 [19:31:44]line РНМ: 0000000000092546 [19:31:44]line Версия ККМ: 001 [19:31:44]line Платежная система: O! деньги [19:31:44]line ФМ: 0000000000871800 [19:31:44]line ФД: 49856 [19:31:44]line ФПД: 144056094664295 [19:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193144&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49856&fm=144056094664295&tin=02508201610067®Number=0000000000092546&sum=15600 [19:31:44]line 0 [19:31:44]written 0, free lines is 4095 [19:31:44]Write to MH i2c: 01 00 00 E1 09 EA [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 07 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 C8 0C C5 [19:31:44]RasterBufferAndPrint [19:31:44]line [19:31:44]line [19:31:44]line [19:31:44]line [19:31:44]line [19:31:44]written 0, free lines is 3278 [19:31:44]MH_Cut [19:31:44]Write to MH i2c: D1 01 00 E8 09 01 C3 [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: D1 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: D1 01 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: D1 01 00 E8 09 00 C2 [19:31:44]Write to MH i2c: 01 00 00 E9 09 F2 [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:45]*** Cut start [19:31:45]*** Purtial cut [19:31:45]*** CUTSNS_PIN = 0 [19:31:45]*** Stage 1: CUTSNS_PIN = 1 [19:31:47]Read from MH i2c: 01 [19:31:47]MH_I2C_Read... [19:31:47]*** Stop cut motor [19:31:47]*** Cut end [19:31:47]Read from MH i2c: 01 07 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 FF 0F 07 [19:31:47]process_action close_receipt done [19:31:47]requested_data is exist [19:31:47]produce_requested_data [19:31:47]requested_item fm.sn is exist - process it [19:31:47]wFMCommunicate request_size=4 [19:31:47]MH_SAM_APDU [19:31:47]CAPDU: 80 11 00 00 [19:31:47]Write to MH i2c: E2 08 00 EA 09 80 11 00 00 00 00 00 00 6D [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:47]Read from MH i2c: E2 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 17 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 17 00 EA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [19:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:31:47]wFMCommunicate OK [19:31:47]requested_item fd.num is exist - process it [19:31:47]SAM_PROTO_GetFieldsCounters [19:31:47]wFMCommunicate request_size=4 [19:31:47]MH_SAM_APDU [19:31:47]CAPDU: 80 13 00 00 [19:31:47]Write to MH i2c: E2 08 00 EB 09 80 13 00 00 00 00 00 00 70 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:47]Read from MH i2c: E2 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 62 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 62 00 EB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:47]wFMCommunicate OK [19:31:47]SAM_PROTO_GetFieldsCounters done [19:31:47]requested_item shift.num is exist - process it [19:31:47]requested_item shift.opened is exist - process it [19:31:47]req_shift_opened [19:31:47]FM_GetShiftState [19:31:47]SAM_PROTO_GetShiftState [19:31:47]wFMCommunicate request_size=4 [19:31:47]MH_SAM_APDU [19:31:47]CAPDU: 80 13 01 00 [19:31:47]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:47]Read from MH i2c: E2 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 0E 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8F [19:31:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:31:47]wFMCommunicate OK [19:31:47]SAM_PROTO_GetShiftState done [19:31:47]FM_GetShiftState done [19:31:47]req_shift_opened done [19:31:47]requested_item shift.open_date is exist - process it [19:31:47]req_shift_open_date [19:31:47]req_shift_open_date done [19:31:47]produce_requested_data done [19:31:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49856,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:31:47]process_action_free close_receipt [19:31:47]json_value_free [19:31:47]json_value_free done [19:31:47]process_json_proto returns [19:31:47]Send response to host [19:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49856,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:31:47]free response buf [19:31:47]execute_script done [19:31:47]execute_script returns [19:31:47]free content buf [19:31:47]Sock 7.Close socket [19:31:47]Sock 7.Thread stoped [19:33:19]ConnectInit Can't connect to host [19:33:19]CommunicateWithHost connect error [19:33:19]CommunicateWithHost err = -1 [19:33:19]OFD Sender: Server communicate error [19:33:19]OFD Sender: Processing packet 49855 [packets to send 22, broken 20] [19:33:19]ProducePacketName [19:33:19]name=ofd_packets/00049855 [19:33:19]OFD Sender: To server: pG, [19:33:19]CommunicateWithHost lk.salyk.kg:30040 [19:33:19]ConnectInit lk.salyk.kg [19:33:19]Connected sock=7 [19:33: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 38 30 30 26 01 00 00 DA 48 1E 01 0D AF 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 FD 4B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C2 00 00 35 04 06 00 C7 BF EF 36 1B 27 6D 1E D8 B1 EC 27 F0 4D [19:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F9 1D 47 00 A7 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 BF C2 00 00 F4 03 04 00 F3 F6 C1 66 B6 04 01 00 00 CD 4E F7 91 19 5C A7 5B [19:33:19]CommunicateWithHost err = 0 [19:33:19]CheckOFDResponse [19:33:19]1017 (14) - 77093643461234 [19:33:19]1041 (16) - 0000000000871800 [19:33:19]1040 (4) - 49855 [19:33:19]1012 (4) - 18.08.2024 13:28 [19:33:19]1206 (1) - 0 [19:33:19]OFD Sender: Remove packet 49855 [19:33:19]ProducePacketName [19:33:19]name=ofd_packets/00049855 [19:33:19]NVStorageDeleteData [19:33:20]OFD Sender: Processing packet 49856 [packets to send 21, broken 20] [19:33:20]ProducePacketName [19:33:20]name=ofd_packets/00049856 [19:33:20]OFD Sender: To server: pG, [19:33:20]CommunicateWithHost lk.salyk.kg:30040 [19:33:20]ConnectInit lk.salyk.kg [19:33:20]Connected sock=7 [19:33:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 6D 5E 1C 01 DC 86 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 20 4C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C2 00 00 35 04 06 00 83 04 AC 59 A6 67 0C 6A AE 36 43 20 82 00 [19:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EA 70 47 00 22 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C0 C2 00 00 F4 03 04 00 F4 F6 C1 66 B6 04 01 00 00 76 99 B8 6F DE 41 B6 A0 [19:33:20]CommunicateWithHost err = 0 [19:33:20]CheckOFDResponse [19:33:20]1017 (14) - 77093643461234 [19:33:20]1041 (16) - 0000000000871800 [19:33:20]1040 (4) - 49856 [19:33:20]1012 (4) - 18.08.2024 13:28 [19:33:20]1206 (1) - 0 [19:33:20]OFD Sender: Remove packet 49856 [19:33:20]ProducePacketName [19:33:20]name=ofd_packets/00049856 [19:33:20]NVStorageDeleteData [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:51]int [19:37:51]Write to MH i2c: 01 00 00 ED 09 F6 [19:37:51]*** FLAG_PRN_KEY set [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 ED 09 00 08 00 00 00 FF 0F 13 [19:37:51]state=0 [19:37:51]Key pressed [19:37:51]Feed [19:37:51]Write to MH i2c: D8 00 00 EE 09 CE [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D8 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D8 01 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D8 01 00 EE 09 00 CF [19:37:51]int [19:37:51]Write to MH i2c: 01 00 00 EF 09 F8 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 EF 09 00 48 00 00 00 3C 00 83 [19:37:51]state=2 [19:37:51]Key pressed [19:37:51]int [19:37:51]Write to MH i2c: 01 00 00 F0 09 F9 [19:37:51]*** FLAG_PRN_KEY reset [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 F5 0F 04 [19:37:51]state=2 [19:37:51]Stop feed [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]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:21]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:30]accept exits with 9 [19:56:30]New connection [19:56:30]New thread 3067055460 created [19:56:30]Thread 3067198820 joined [19:56:30]Waiting for new connection... [19:56:30] Sock 9.Parse request [19:56:30]Sock 9.Check first char [19:56:30]Sock 9.First char is OK [19:56:30]request: POST /json_proto HTTP/1.0 [19:56:30]Method: POST [19:56:30]URL: /json_proto [19:56:30]Method is POST - this is cgi request [19:56:30]url: /json_proto [19:56:30]query_string will be loaded in cgi processing [19:56:30]execute_cgi json_proto POST (null) [19:56:30]execute_cgi path=json_proto method=POST [19:56:30]POST find Content-Length [19:56:30]Host: 172.17.46.196:8080 [19:56:30]Content-Length: 633 [19:56:30]Content-Type: application/json [19:56:30] [19:56:30]POST finish read [19:56:30]Found Content-Length = 633 [19:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190033", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:30]execute_script... [19:56:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190033", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:30]POST & json_proto [19:56:30]process_json_proto [19:56:30]json parsed OK: [19:56:30]protocol is kg_v1.0 [19:56:30]action value=close_receipt [19:56:30]process_action close_receipt [19:56:30]cmd_close_receipt [19:56:30]MH_GetDate [19:56:30]Write to MH i2c: F0 00 00 F1 09 E9 [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 09 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: F0 09 00 F1 09 00 F0 51 C2 66 27 15 C2 66 BF [19:56:30]GetLastDocTimeStamp 1724009504 [19:56:30]current date 1724010992 [19:56:30]FM_GetShiftState [19:56:30]SAM_PROTO_GetShiftState [19:56:30]wFMCommunicate request_size=4 [19:56:30]MH_SAM_APDU [19:56:30]CAPDU: 80 13 01 00 [19:56:30]Write to MH i2c: E2 08 00 F2 09 80 13 01 00 00 00 00 00 78 [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:30]Read from MH i2c: E2 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 F2 09 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 95 [19:56:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:56:30]wFMCommunicate OK [19:56:30]SAM_PROTO_GetShiftState done [19:56:30]FM_GetShiftState done [19:56:30]opened in 1723939759 [19:56:30]opened+sec_in_day 1724026159 [19:56:30]quantity*price = 13000 [19:56:30]sum+1 = 13001 [19:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 123 18.08.2024 19:56 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49857 ФПД: 38786995593948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195632&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49857&fm=38786995593948&tin=02508201610067®Number=0000000000092546&sum=13000 0 [19:56:31]StoreToDocumentArchive [19:56:31]shift 466 fd 49857 [19:56:31]save to /storage/0466/doc_00049857 [19:56:31]save last doc name /storage/0466/doc_00049857 to /storage/kkm_last_doc_name [19:56:31]save OK [19:56:31]Clear old archive folders... [19:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=285 [19:56:31]tlvbuf is 00FA79E0 [19:56:31]SAM_PROTO_ClearQueue [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 09 00 00 [19:56:31]Write to MH i2c: E2 08 00 FF 09 80 09 00 00 00 00 00 00 7A [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]SAM_PROTO_ClearQueue done [19:56:31]KKMCreateOFDPacket [19:56:31]OFDProtocolAddRootSTLVToBuf [19:56:31]FM_MakeSignedData [19:56:31]FM_MakeSignedData [19:56:31]SAM_PROTO_SignData [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 0D 01 02 [19:56:31]Write to MH i2c: E2 08 00 00 0A 80 0D 01 02 00 00 00 00 83 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]wFMCommunicate request_size=255 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F0 51 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 [19:56:31]Write to MH i2c: E2 02 01 01 0A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F0 51 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 00 00 FE [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]wFMCommunicate request_size=44 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C2 00 00 35 04 06 00 23 46 CD 18 22 DC [19:56:31]Write to MH i2c: E2 2F 00 02 0A 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C2 00 00 35 04 06 00 23 46 CD 18 22 DC 00 00 6D [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [19:56:31]RAPDU: 90 00 [19:56:31]wFMCommunicate OK [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 0D 03 02 [19:56:31]Write to MH i2c: E2 08 00 03 0A 80 0D 03 02 00 00 00 00 88 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 0B 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 0B 00 03 0A 00 64 B2 FE DB B7 EC 48 FB 90 00 5E [19:56:31]RAPDU: 64 B2 FE DB B7 EC 48 FB 90 00 [19:56:31]wFMCommunicate OK [19:56:31]SAM_PROTO_SignData done [19:56:31]FM_MakeSignedData done [19:56:31]CreateOFDProtocolMessage [19:56:31]wFMCommunicate request_size=4 [19:56:31]MH_SAM_APDU [19:56:31]CAPDU: 80 11 00 00 [19:56:31]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:31]Read from MH i2c: E2 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: E2 17 00 [19:56:31]MH_I2C_Read... [19:56:31]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 38 30 30 90 00 D3 [19:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:56:31]wFMCommunicate OK [19:56:31]CreateOFDProtocolMessage done [19:56:31]OFDSenderStorePacket 49857 [19:56:31]StoreOFDPacket docnum=49857 [19:56:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 2D 13 29 01 3C 99 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F0 51 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C2 00 00 35 04 06 00 23 46 CD 18 22 DC 64 B2 FE DB B7 EC 48 FB [19:56:31]CheckFolder [19:56:31]dirname=/storage/ofd_packets [19:56:31]CheckFolder done [19:56:31]ProducePacketName [19:56:31]name=ofd_packets/00049857 [19:56:31]NVStorageSaveData ofd_packets/00049857 [19:56:31]File name is /storage/ofd_packets/00049857 [19:56:31]Write 335 bytes [19:56:31]NVStorageSaveData done [19:56:31]OFDSenderStorePacket done [19:56:31]KKMCreateOFDPacket done [19:56:31]NVStorageSaveData kkm_last_timestamp [19:56:31]File name is /storage/kkm_last_timestamp [19:56:31]Write 4 bytes [19:56:31]NVStorageSaveData done [19:56:31]ExternCall_PrintAddStr [19:56:31]wPrintStart [19:56:31]Write to MH i2c: 01 00 00 05 0A 0F [19:56:31]Write i2c OK [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: 01 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: 01 07 00 [19:56:31]MH_I2C_Read... [19:56:31]Read from MH i2c: 01 07 00 05 0A 00 00 00 00 00 FF 0F 24 [19:56:31]RasterBufferAndPrint [19:56:31]line Счет N : (3)190033 [19:56:31]line ИНН: 02508201610067 [19:56:31]line Контрольно-Кассовый Чек [19:56:31]line ПРОДАЖА [19:56:31]line Товар: 48745291 [19:56:31]line Сигареты Parliament SOHO NYC COMPACT BLU [19:56:31]line 1.000 * 130.00 [19:56:31]line = 130.00 [19:56:31]line НДС 12% НСП 1% [19:56:31]line > о реализуемом товаре [19:56:31]line ИТОГО: 130.00 [19:56:31]line НСП 1% : 1.15 [19:56:31]line НДС 12% : 13.80 [19:56:31]line Наличными: 130.00 [19:56:31]line Безнал.: 0.00 [19:56:31]line Место: АЗС № 95 "Партнер Нефть" [19:56:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:56:32]line СНО: Общий режим [19:56:32]line Чек 123 18.08.2024 19:56 [19:56:32]line Смена: 466 ФФД: 1.0 [19:56:32]line ЗНМ: 0300000078 [19:56:32]line РНМ: 0000000000092546 [19:56:32]line Версия ККМ: 001 [19:56:32]line ФМ: 0000000000871800 [19:56:32]line ФД: 49857 [19:56:32]line ФПД: 38786995593948 [19:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195632&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49857&fm=38786995593948&tin=02508201610067®Number=0000000000092546&sum=13000 [19:56:32]line 0 [19:56:32]OFD Sender: Processing packet 49857 [packets to send 21, broken 20] [19:56:32]ProducePacketName [19:56:32]name=ofd_packets/00049857 [19:56:32]OFD Sender: To server: pG, [19:56:32]CommunicateWithHost lk.salyk.kg:30040 [19:56:32]ConnectInit lk.salyk.kg [19:56:32]written 0, free lines is 4095 [19:56:32]Connected sock=10 [19:56:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 2D 13 29 01 3C 99 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F0 51 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C2 00 00 35 04 06 00 23 46 CD 18 22 DC 64 B2 FE DB B7 EC 48 FB [19:56:32]Write to MH i2c: 01 00 00 2E 0A 38 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: 01 07 00 2E 0A 00 00 00 00 00 CD 0C 18 [19:56:32]RasterBufferAndPrint [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]line [19:56:32]written 0, free lines is 3283 [19:56:32]MH_Cut [19:56:32]Write to MH i2c: D1 01 00 35 0A 01 11 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 01 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: D1 01 00 35 0A 00 10 [19:56:32]Write to MH i2c: 01 00 00 36 0A 40 [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 45 07 47 00 D0 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C1 C2 00 00 F4 03 04 00 64 FC C1 66 B6 04 01 00 00 4A 18 B5 41 41 01 68 32 [19:56:32]CommunicateWithHost err = 0 [19:56:32]CheckOFDResponse [19:56:32]1017 (14) - 77093643461234 [19:56:32]1041 (16) - 0000000000871800 [19:56:32]1040 (4) - 49857 [19:56:32]1012 (4) - 18.08.2024 13:51 [19:56:32]1206 (1) - 0 [19:56:32]OFD Sender: Remove packet 49857 [19:56:32]ProducePacketName [19:56:32]name=ofd_packets/00049857 [19:56:32]NVStorageDeleteData [19:56:33]OFD Sender: No OFD packet to send [19:56:33]*** Cut start [19:56:33]*** Purtial cut [19:56:33]*** Stage 1: CUTSNS_PIN = 1 [19:56:33]Read from MH i2c: 01 [19:56:33]MH_I2C_Read... [19:56:33]*** Stop cut motor [19:56:33]*** Cut end [19:56:33]Read from MH i2c: 01 07 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: 01 07 00 36 0A 00 00 00 00 00 FF 0F 55 [19:56:33]process_action close_receipt done [19:56:33]requested_data is exist [19:56:33]produce_requested_data [19:56:33]requested_item fm.sn is exist - process it [19:56:33]wFMCommunicate request_size=4 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 11 00 00 [19:56:33]Write to MH i2c: E2 08 00 37 0A 80 11 00 00 00 00 00 00 BB [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 [19:56:33]MH_I2C_Read... [19:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:33]Read from MH i2c: E2 17 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 17 00 37 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 06 [19:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:56:33]wFMCommunicate OK [19:56:33]requested_item fd.num is exist - process it [19:56:33]SAM_PROTO_GetFieldsCounters [19:56:33]wFMCommunicate request_size=4 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 13 00 00 [19:56:33]Write to MH i2c: E2 08 00 38 0A 80 13 00 00 00 00 00 00 BE [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:33]Read from MH i2c: E2 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 62 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 62 00 38 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:56:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:33]wFMCommunicate OK [19:56:33]SAM_PROTO_GetFieldsCounters done [19:56:33]requested_item shift.num is exist - process it [19:56:33]requested_item shift.opened is exist - process it [19:56:33]req_shift_opened [19:56:33]FM_GetShiftState [19:56:33]SAM_PROTO_GetShiftState [19:56:33]wFMCommunicate request_size=4 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 13 01 00 [19:56:33]Write to MH i2c: E2 08 00 39 0A 80 13 01 00 00 00 00 00 C0 [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:33]Read from MH i2c: E2 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 0E 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 0E 00 39 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DD [19:56:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [19:56:33]wFMCommunicate OK [19:56:33]SAM_PROTO_GetShiftState done [19:56:33]FM_GetShiftState done [19:56:33]req_shift_opened done [19:56:33]requested_item shift.open_date is exist - process it [19:56:33]req_shift_open_date [19:56:33]req_shift_open_date done [19:56:33]produce_requested_data done [19:56:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49857,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [19:56:33]process_action_free close_receipt [19:56:33]json_value_free [19:56:33]json_value_free done [19:56:33]process_json_proto returns [19:56:33]Send response to host [19:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49857,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [19:56:33]free response buf [19:56:33]execute_script done [19:56:33]execute_script returns [19:56:33]free content buf [19:56:33]Sock 9.Close socket [19:56:33]Sock 9.Thread stoped [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:56]accept exits with 7 [20:11:56]New connection [20:11:56]New thread 3067198820 created [20:11:56]Thread 3067055460 joined [20:11:56]Waiting for new connection... [20:11:56] Sock 7.Parse request [20:11:56]Sock 7.Check first char [20:11:56]Sock 7.First char is OK [20:11:56]request: POST /json_proto HTTP/1.0 [20:11:56]Method: POST [20:11:56]URL: /json_proto [20:11:56]Method is POST - this is cgi request [20:11:56]url: /json_proto [20:11:56]query_string will be loaded in cgi processing [20:11:56]execute_cgi json_proto POST (null) [20:11:56]execute_cgi path=json_proto method=POST [20:11:56]POST find Content-Length [20:11:56]Host: 172.17.46.196:8080 [20:11:56]Content-Length: 910 [20:11:56]Content-Type: application/json [20:11:56] [20:11:56]POST finish read [20:11:56]Found Content-Length = 910 [20:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190034", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:56]execute_script... [20:11:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190034", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:56]POST & json_proto [20:11:56]process_json_proto [20:11:56]json parsed OK: [20:11:56]protocol is kg_v1.0 [20:11:56]action value=close_receipt [20:11:56]process_action close_receipt [20:11:56]cmd_close_receipt [20:11:56]MH_GetDate [20:11:56]Write to MH i2c: F0 00 00 3A 0A 33 [20:11:56]Write i2c OK [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: F0 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: F0 09 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: F0 09 00 3A 0A 00 8E 55 C2 66 27 15 C2 66 AB [20:11:56]GetLastDocTimeStamp 1724010992 [20:11:56]current date 1724011918 [20:11:56]FM_GetShiftState [20:11:56]SAM_PROTO_GetShiftState [20:11:56]wFMCommunicate request_size=4 [20:11:56]MH_SAM_APDU [20:11:56]CAPDU: 80 13 01 00 [20:11:56]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [20:11:56]Write i2c OK [20:11:56]MH_I2C_Read... [20:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:56]Read from MH i2c: E2 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 0E 00 [20:11:56]MH_I2C_Read... [20:11:56]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DF [20:11:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:11:56]wFMCommunicate OK [20:11:56]SAM_PROTO_GetShiftState done [20:11:56]FM_GetShiftState done [20:11:56]opened in 1723939759 [20:11:56]opened+sec_in_day 1724026159 [20:11:56]quantity*price = 8000 [20:11:56]sum+1 = 8001 [20:11:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570095 Напиток Pepsi 2л 1.000 * 210.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 124 18.08.2024 20:11 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49858 ФПД: 148095321943839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201158&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49858&fm=148095321943839&tin=02508201610067®Number=0000000000092546&sum=29000 0 [20:11:57]StoreToDocumentArchive [20:11:57]shift 466 fd 49858 [20:11:57]save to /storage/0466/doc_00049858 [20:11:57]save last doc name /storage/0466/doc_00049858 to /storage/kkm_last_doc_name [20:11:57]save OK [20:11:57]Clear old archive folders... [20:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=390 [20:11:57]tlvbuf is 00FC84C0 [20:11:57]SAM_PROTO_ClearQueue [20:11:57]wFMCommunicate request_size=4 [20:11:57]MH_SAM_APDU [20:11:57]CAPDU: 80 09 00 00 [20:11:57]Write to MH i2c: E2 08 00 48 0A 80 09 00 00 00 00 00 00 C4 [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:57]Read from MH i2c: E2 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [20:11:57]RAPDU: 90 00 [20:11:57]wFMCommunicate OK [20:11:57]SAM_PROTO_ClearQueue done [20:11:57]KKMCreateOFDPacket [20:11:57]OFDProtocolAddRootSTLVToBuf [20:11:57]FM_MakeSignedData [20:11:57]FM_MakeSignedData [20:11:57]SAM_PROTO_SignData [20:11:57]wFMCommunicate request_size=4 [20:11:57]MH_SAM_APDU [20:11:57]CAPDU: 80 0D 01 02 [20:11:57]Write to MH i2c: E2 08 00 49 0A 80 0D 01 02 00 00 00 00 CC [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:57]Read from MH i2c: E2 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [20:11:57]RAPDU: 90 00 [20:11:57]wFMCommunicate OK [20:11:57]wFMCommunicate request_size=255 [20:11:57]MH_SAM_APDU [20:11:57]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [20:11:57]Write to MH i2c: E2 02 01 4A 0A 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 FD [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:57]Read from MH i2c: E2 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [20:11:57]RAPDU: 90 00 [20:11:57]wFMCommunicate OK [20:11:57]wFMCommunicate request_size=149 [20:11:57]MH_SAM_APDU [20:11:57]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C2 00 00 35 04 06 00 86 B1 21 0E AF 1F [20:11:57]Write to MH i2c: E2 98 00 4B 0A 80 0D 02 02 90 00 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C2 00 00 35 04 06 00 86 B1 21 0E AF 1F 00 00 F7 [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:58]Read from MH i2c: E2 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [20:11:58]RAPDU: 90 00 [20:11:58]wFMCommunicate OK [20:11:58]wFMCommunicate request_size=4 [20:11:58]MH_SAM_APDU [20:11:58]CAPDU: 80 0D 03 02 [20:11:58]Write to MH i2c: E2 08 00 4C 0A 80 0D 03 02 00 00 00 00 D1 [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:58]Read from MH i2c: E2 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 0B 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 0B 00 4C 0A 00 5B D7 F7 BE D1 C3 95 DC 90 00 BE [20:11:58]RAPDU: 5B D7 F7 BE D1 C3 95 DC 90 00 [20:11:58]wFMCommunicate OK [20:11:58]SAM_PROTO_SignData done [20:11:58]FM_MakeSignedData done [20:11:58]CreateOFDProtocolMessage [20:11:58]wFMCommunicate request_size=4 [20:11:58]MH_SAM_APDU [20:11:58]CAPDU: 80 11 00 00 [20:11:58]Write to MH i2c: E2 08 00 4D 0A 80 11 00 00 00 00 00 00 D1 [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:58]Read from MH i2c: E2 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 17 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 17 00 4D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [20:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:11:58]wFMCommunicate OK [20:11:58]CreateOFDProtocolMessage done [20:11:58]OFDSenderStorePacket 49858 [20:11:58]StoreOFDPacket docnum=49858 [20:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9A 01 00 00 32 8C 92 01 63 C0 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C2 00 00 35 04 06 00 86 B1 21 0E AF 1F 5B D7 F7 BE D1 C3 95 DC [20:11:58]CheckFolder [20:11:58]dirname=/storage/ofd_packets [20:11:58]CheckFolder done [20:11:58]ProducePacketName [20:11:58]name=ofd_packets/00049858 [20:11:58]NVStorageSaveData ofd_packets/00049858 [20:11:58]File name is /storage/ofd_packets/00049858 [20:11:58]Write 440 bytes [20:11:58]NVStorageSaveData done [20:11:58]OFDSenderStorePacket done [20:11:58]KKMCreateOFDPacket done [20:11:58]NVStorageSaveData kkm_last_timestamp [20:11:58]File name is /storage/kkm_last_timestamp [20:11:58]Write 4 bytes [20:11:58]NVStorageSaveData done [20:11:58]ExternCall_PrintAddStr [20:11:58]wPrintStart [20:11:58]Write to MH i2c: 01 00 00 4E 0A 58 [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: 01 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: 01 07 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 FF 0F 6D [20:11:58]RasterBufferAndPrint [20:11:58]line Счет N : (3)190034 [20:11:58]line ИНН: 02508201610067 [20:11:58]line Контрольно-Кассовый Чек [20:11:58]line ПРОДАЖА [20:11:58]line Товар: 4700003010353 [20:11:58]line Напиток Let`s Go! с/с груша ПЭТ 1л [20:11:58]line 1.000 * 80.00 [20:11:58]line = 80.00 [20:11:58]line НДС 12% НСП 1% [20:11:58]line > о реализуемом товаре [20:11:58]line Товар: 4870001570095 [20:11:58]line Напиток Pepsi 2л [20:11:58]line 1.000 * 210.00 [20:11:58]line = 210.00 [20:11:58]line НДС 12% НСП 1% [20:11:58]line > о реализуемом товаре [20:11:58]line ИТОГО: 290.00 [20:11:58]line НСП 1% : 2.57 [20:11:58]line НДС 12% : 30.80 [20:11:58]line Наличными: 290.00 [20:11:58]line Безнал.: 0.00 [20:11:58]line Место: АЗС № 95 "Партнер Нефть" [20:11:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:11:58]line СНО: Общий режим [20:11:58]line Чек 124 18.08.2024 20:11 [20:11:58]line Смена: 466 ФФД: 1.0 [20:11:58]line ЗНМ: 0300000078 [20:11:58]line РНМ: 0000000000092546 [20:11:58]line Версия ККМ: 001 [20:11:58]line ФМ: 0000000000871800 [20:11:58]line ФД: 49858 [20:11:58]line ФПД: 148095321943839 [20:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201158&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49858&fm=148095321943839&tin=02508201610067®Number=0000000000092546&sum=29000 [20:11:58]line 0 [20:11:58]OFD Sender: Processing packet 49858 [packets to send 21, broken 20] [20:11:58]ProducePacketName [20:11:58]name=ofd_packets/00049858 [20:11:58]OFD Sender: To server: pG, [20:11:58]CommunicateWithHost lk.salyk.kg:30040 [20:11:58]ConnectInit lk.salyk.kg [20:11:58]written 0, free lines is 4095 [20:11:58]Connected sock=11 [20:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9A 01 00 00 32 8C 92 01 63 C0 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C2 00 00 35 04 06 00 86 B1 21 0E AF 1F 5B D7 F7 BE D1 C3 95 DC [20:11:59]Write to MH i2c: 01 00 00 7D 0A 87 [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 07 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 8A 0C 24 [20:11:59]RasterBufferAndPrint [20:11:59]line [20:11:59]line [20:11:59]line [20:11:59]line [20:11:59]line [20:11:59]written 0, free lines is 3215 [20:11:59]MH_Cut [20:11:59]Write to MH i2c: D1 01 00 84 0A 01 60 [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: D1 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: D1 01 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: D1 01 00 84 0A 00 5F [20:11:59]Write to MH i2c: 01 00 00 85 0A 8F [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 48 1B 47 00 3E 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C2 C2 00 00 F4 03 04 00 02 00 C2 66 B6 04 01 00 00 0F 48 A7 5F 5A 47 CB 6D [20:11:59]CommunicateWithHost err = 0 [20:11:59]CheckOFDResponse [20:11:59]1017 (14) - 77093643461234 [20:11:59]1041 (16) - 0000000000871800 [20:11:59]1040 (4) - 49858 [20:11:59]1012 (4) - 18.08.2024 14:06 [20:11:59]1206 (1) - 0 [20:11:59]OFD Sender: Remove packet 49858 [20:11:59]ProducePacketName [20:11:59]name=ofd_packets/00049858 [20:11:59]NVStorageDeleteData [20:11:59]OFD Sender: No OFD packet to send [20:11:59]*** Cut start [20:11:59]*** Purtial cut [20:11:59]*** CUTSNS_PIN = 0 [20:12:00]*** Stage 1: CUTSNS_PIN = 1 [20:12:01]Read from MH i2c: 01 [20:12:01]MH_I2C_Read... [20:12:01]*** Stop cut motor [20:12:01]*** Cut end [20:12:01]Read from MH i2c: 01 07 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 FF 0F A4 [20:12:01]process_action close_receipt done [20:12:01]requested_data is exist [20:12:01]produce_requested_data [20:12:01]requested_item fm.sn is exist - process it [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 11 00 00 [20:12:01]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 17 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 55 [20:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:12:02]wFMCommunicate OK [20:12:02]requested_item fd.num is exist - process it [20:12:02]SAM_PROTO_GetFieldsCounters [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 13 00 00 [20:12:02]Write to MH i2c: E2 08 00 87 0A 80 13 00 00 00 00 00 00 0D [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 62 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 62 00 87 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [20:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_GetFieldsCounters done [20:12:02]requested_item shift.num is exist - process it [20:12:02]requested_item shift.opened is exist - process it [20:12:02]req_shift_opened [20:12:02]FM_GetShiftState [20:12:02]SAM_PROTO_GetShiftState [20:12:02]wFMCommunicate request_size=4 [20:12:02]MH_SAM_APDU [20:12:02]CAPDU: 80 13 01 00 [20:12:02]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 2C [20:12:02]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_GetShiftState done [20:12:02]FM_GetShiftState done [20:12:02]req_shift_opened done [20:12:02]requested_item shift.open_date is exist - process it [20:12:02]req_shift_open_date [20:12:02]req_shift_open_date done [20:12:02]produce_requested_data done [20:12:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49858,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:12:02]process_action_free close_receipt [20:12:02]json_value_free [20:12:02]json_value_free done [20:12:02]process_json_proto returns [20:12:02]Send response to host [20:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49858,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:12:02]free response buf [20:12:02]execute_script done [20:12:02]execute_script returns [20:12:02]free content buf [20:12:02]Sock 7.Close socket [20:12:02]Sock 7.Thread stoped [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:33]accept exits with 9 [20:12:33]New connection [20:12:33]New thread 3067055460 created [20:12:33]Thread 3067198820 joined [20:12:33]Waiting for new connection... [20:12:33] Sock 9.Parse request [20:12:33]Sock 9.Check first char [20:12:33]Sock 9.First char is OK [20:12:33]request: POST /json_proto HTTP/1.0 [20:12:33]Method: POST [20:12:33]URL: /json_proto [20:12:33]Method is POST - this is cgi request [20:12:33]url: /json_proto [20:12:33]query_string will be loaded in cgi processing [20:12:33]execute_cgi json_proto POST (null) [20:12:33]execute_cgi path=json_proto method=POST [20:12:33]POST find Content-Length [20:12:33]Host: 172.17.46.196:8080 [20:12:33]Content-Length: 656 [20:12:33]Content-Type: application/json [20:12:33] [20:12:33]POST finish read [20:12:33]Found Content-Length = 656 [20:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190035", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:33]execute_script... [20:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190035", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:33]POST & json_proto [20:12:33]process_json_proto [20:12:33]json parsed OK: [20:12:33]protocol is kg_v1.0 [20:12:33]action value=close_receipt [20:12:33]process_action close_receipt [20:12:33]cmd_close_receipt [20:12:33]MH_GetDate [20:12:33]Write to MH i2c: F0 00 00 89 0A 82 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: F0 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: F0 09 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: F0 09 00 89 0A 00 B3 55 C2 66 27 15 C2 66 1F [20:12:33]GetLastDocTimeStamp 1724011918 [20:12:33]current date 1724011955 [20:12:33]FM_GetShiftState [20:12:33]SAM_PROTO_GetShiftState [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 13 01 00 [20:12:33]Write to MH i2c: E2 08 00 8A 0A 80 13 01 00 00 00 00 00 11 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 8A 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 2E [20:12:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_GetShiftState done [20:12:33]FM_GetShiftState done [20:12:33]opened in 1723939759 [20:12:33]opened+sec_in_day 1724026159 [20:12:33]quantity*price = 400 [20:12:33]sum+1 = 401 [20:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 125 18.08.2024 20:12 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49859 ФПД: 31850523224494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201235&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49859&fm=31850523224494&tin=02508201610067®Number=0000000000092546&sum=400 0 [20:12:34]StoreToDocumentArchive [20:12:34]shift 466 fd 49859 [20:12:34]save to /storage/0466/doc_00049859 [20:12:34]save last doc name /storage/0466/doc_00049859 to /storage/kkm_last_doc_name [20:12:34]save OK [20:12:34]Clear old archive folders... [20:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:12:34]tlvbuf is 00FD2F50 [20:12:34]SAM_PROTO_ClearQueue [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 09 00 00 [20:12:34]Write to MH i2c: E2 08 00 97 0A 80 09 00 00 00 00 00 00 13 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [20:12:34]RAPDU: 90 00 [20:12:34]wFMCommunicate OK [20:12:34]SAM_PROTO_ClearQueue done [20:12:34]KKMCreateOFDPacket [20:12:34]OFDProtocolAddRootSTLVToBuf [20:12:34]FM_MakeSignedData [20:12:34]FM_MakeSignedData [20:12:34]SAM_PROTO_SignData [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 0D 01 02 [20:12:34]Write to MH i2c: E2 08 00 98 0A 80 0D 01 02 00 00 00 00 1B [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [20:12:34]RAPDU: 90 00 [20:12:34]wFMCommunicate OK [20:12:34]wFMCommunicate request_size=255 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B3 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [20:12:34]Write to MH i2c: E2 02 01 99 0A 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B3 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 D9 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]OFD Sender: No OFD packet to send [20:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [20:12:34]RAPDU: 90 00 [20:12:34]wFMCommunicate OK [20:12:34]wFMCommunicate request_size=37 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C2 00 00 35 04 06 00 1C F7 C7 1F 69 AE [20:12:34]Write to MH i2c: E2 28 00 9A 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C2 00 00 35 04 06 00 1C F7 C7 1F 69 AE 00 00 02 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [20:12:34]RAPDU: 90 00 [20:12:34]wFMCommunicate OK [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 0D 03 02 [20:12:34]Write to MH i2c: E2 08 00 9B 0A 80 0D 03 02 00 00 00 00 20 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 0B 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 0B 00 9B 0A 00 83 83 50 C1 39 B2 88 89 90 00 34 [20:12:34]RAPDU: 83 83 50 C1 39 B2 88 89 90 00 [20:12:34]wFMCommunicate OK [20:12:34]SAM_PROTO_SignData done [20:12:34]FM_MakeSignedData done [20:12:34]CreateOFDProtocolMessage [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 11 00 00 [20:12:34]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 17 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [20:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:12:34]wFMCommunicate OK [20:12:34]CreateOFDProtocolMessage done [20:12:34]OFDSenderStorePacket 49859 [20:12:34]StoreOFDPacket docnum=49859 [20:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 77 97 22 01 37 D1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B3 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C2 00 00 35 04 06 00 1C F7 C7 1F 69 AE 83 83 50 C1 39 B2 88 89 [20:12:34]CheckFolder [20:12:34]dirname=/storage/ofd_packets [20:12:34]CheckFolder done [20:12:34]ProducePacketName [20:12:34]name=ofd_packets/00049859 [20:12:34]NVStorageSaveData ofd_packets/00049859 [20:12:34]File name is /storage/ofd_packets/00049859 [20:12:34]Write 328 bytes [20:12:34]NVStorageSaveData done [20:12:34]OFDSenderStorePacket done [20:12:34]KKMCreateOFDPacket done [20:12:34]NVStorageSaveData kkm_last_timestamp [20:12:34]File name is /storage/kkm_last_timestamp [20:12:34]Write 4 bytes [20:12:34]NVStorageSaveData done [20:12:34]ExternCall_PrintAddStr [20:12:34]wPrintStart [20:12:34]Write to MH i2c: 01 00 00 9D 0A A7 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 07 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [20:12:34]RasterBufferAndPrint [20:12:34]line Счет N : (3)190035 [20:12:34]line ИНН: 02508201610067 [20:12:34]line Контрольно-Кассовый Чек [20:12:34]line ПРОДАЖА [20:12:34]line Товар: 2000031750019 [20:12:34]line Пакет Партнер Нефть [20:12:34]line 1.000 * 4.00 [20:12:34]line = 4.00 [20:12:34]line НДС 12% НСП 1% [20:12:34]line > о реализуемом товаре [20:12:34]line ИТОГО: 4.00 [20:12:34]line НСП 1% : 0.03 [20:12:34]line НДС 12% : 0.42 [20:12:34]line Наличными: 4.00 [20:12:34]line Безнал.: 0.00 [20:12:34]line Место: АЗС № 95 "Партнер Нефть" [20:12:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:12:34]line СНО: Общий режим [20:12:34]line Чек 125 18.08.2024 20:12 [20:12:34]line Смена: 466 ФФД: 1.0 [20:12:34]line ЗНМ: 0300000078 [20:12:34]line РНМ: 0000000000092546 [20:12:34]line Версия ККМ: 001 [20:12:34]line ФМ: 0000000000871800 [20:12:34]line ФД: 49859 [20:12:34]line ФПД: 31850523224494 [20:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201235&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49859&fm=31850523224494&tin=02508201610067®Number=0000000000092546&sum=400 [20:12:35]line 0 [20:12:35]OFD Sender: Processing packet 49859 [packets to send 21, broken 20] [20:12:35]ProducePacketName [20:12:35]name=ofd_packets/00049859 [20:12:35]OFD Sender: To server: pG, [20:12:35]CommunicateWithHost lk.salyk.kg:30040 [20:12:35]ConnectInit lk.salyk.kg [20:12:35]written 0, free lines is 4095 [20:12:35]Connected sock=10 [20:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 77 97 22 01 37 D1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B3 55 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C2 00 00 35 04 06 00 1C F7 C7 1F 69 AE 83 83 50 C1 39 B2 88 89 [20:12:35]Write to MH i2c: 01 00 00 C5 0A CF [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 ED 0C CF [20:12:35]RasterBufferAndPrint [20:12:35]line [20:12:35]line [20:12:35]line [20:12:35]line [20:12:35]line [20:12:35]written 0, free lines is 3318 [20:12:35]MH_Cut [20:12:35]Write to MH i2c: D1 01 00 CC 0A 01 A8 [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: D1 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: D1 01 00 [20:12:35]MH_I2C_Read... [20:12:35]Read from MH i2c: D1 01 00 CC 0A 00 A7 [20:12:35]Write to MH i2c: 01 00 00 CD 0A D7 [20:12:35]Write i2c OK [20:12:35]MH_I2C_Read... [20:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7B 6A 47 00 0E 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C3 C2 00 00 F4 03 04 00 27 00 C2 66 B6 04 01 00 00 1D 0E D9 A3 5E 0F 34 F3 [20:12:35]CommunicateWithHost err = 0 [20:12:35]CheckOFDResponse [20:12:35]1017 (14) - 77093643461234 [20:12:35]1041 (16) - 0000000000871800 [20:12:35]1040 (4) - 49859 [20:12:35]1012 (4) - 18.08.2024 14:07 [20:12:35]1206 (1) - 0 [20:12:35]OFD Sender: Remove packet 49859 [20:12:35]ProducePacketName [20:12:35]name=ofd_packets/00049859 [20:12:35]NVStorageDeleteData [20:12:36]OFD Sender: No OFD packet to send [20:12:36]*** Cut start [20:12:36]*** Purtial cut [20:12:36]*** Stage 1: CUTSNS_PIN = 1 [20:12:36]Read from MH i2c: 01 [20:12:36]MH_I2C_Read... [20:12:36]*** Stop cut motor [20:12:36]*** Cut end [20:12:36]Read from MH i2c: 01 07 00 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 FF 0F EC [20:12:36]process_action close_receipt done [20:12:36]requested_data is exist [20:12:36]produce_requested_data [20:12:36]requested_item fm.sn is exist - process it [20:12:36]wFMCommunicate request_size=4 [20:12:36]MH_SAM_APDU [20:12:36]CAPDU: 80 11 00 00 [20:12:36]Write to MH i2c: E2 08 00 CE 0A 80 11 00 00 00 00 00 00 52 [20:12:36]Write i2c OK [20:12:36]MH_I2C_Read... [20:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:36]Read from MH i2c: E2 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 17 00 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 17 00 CE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [20:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:12:36]wFMCommunicate OK [20:12:36]requested_item fd.num is exist - process it [20:12:36]SAM_PROTO_GetFieldsCounters [20:12:36]wFMCommunicate request_size=4 [20:12:36]MH_SAM_APDU [20:12:36]CAPDU: 80 13 00 00 [20:12:36]Write to MH i2c: E2 08 00 CF 0A 80 13 00 00 00 00 00 00 55 [20:12:36]Write i2c OK [20:12:36]MH_I2C_Read... [20:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:36]Read from MH i2c: E2 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 62 00 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 62 00 CF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:36]wFMCommunicate OK [20:12:36]SAM_PROTO_GetFieldsCounters done [20:12:36]requested_item shift.num is exist - process it [20:12:36]requested_item shift.opened is exist - process it [20:12:36]req_shift_opened [20:12:36]FM_GetShiftState [20:12:36]SAM_PROTO_GetShiftState [20:12:36]wFMCommunicate request_size=4 [20:12:36]MH_SAM_APDU [20:12:36]CAPDU: 80 13 01 00 [20:12:36]Write to MH i2c: E2 08 00 D0 0A 80 13 01 00 00 00 00 00 57 [20:12:36]Write i2c OK [20:12:36]MH_I2C_Read... [20:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:36]Read from MH i2c: E2 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 0E 00 [20:12:36]MH_I2C_Read... [20:12:36]Read from MH i2c: E2 0E 00 D0 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 74 [20:12:36]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:12:36]wFMCommunicate OK [20:12:36]SAM_PROTO_GetShiftState done [20:12:36]FM_GetShiftState done [20:12:36]req_shift_opened done [20:12:36]requested_item shift.open_date is exist - process it [20:12:36]req_shift_open_date [20:12:36]req_shift_open_date done [20:12:36]produce_requested_data done [20:12:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49859,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:12:36]process_action_free close_receipt [20:12:36]json_value_free [20:12:36]json_value_free done [20:12:36]process_json_proto returns [20:12:36]Send response to host [20:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49859,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:12:36]free response buf [20:12:36]execute_script done [20:12:36]execute_script returns [20:12:36]free content buf [20:12:36]Sock 9.Close socket [20:12:36]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:43]accept exits with 7 [20:23:43]New connection [20:23:43]New thread 3067198820 created [20:23:43]Thread 3067055460 joined [20:23:43]Waiting for new connection... [20:23:43] Sock 7.Parse request [20:23:43]Sock 7.Check first char [20:23:43]Sock 7.First char is OK [20:23:43]request: POST /json_proto HTTP/1.0 [20:23:43]Method: POST [20:23:43]URL: /json_proto [20:23:43]Method is POST - this is cgi request [20:23:43]url: /json_proto [20:23:43]query_string will be loaded in cgi processing [20:23:43]execute_cgi json_proto POST (null) [20:23:43]execute_cgi path=json_proto method=POST [20:23:43]POST find Content-Length [20:23:43]Host: 172.17.46.196:8080 [20:23:43]Content-Length: 670 [20:23:43]Content-Type: application/json [20:23:43] [20:23:43]POST finish read [20:23:43]Found Content-Length = 670 [20:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190036", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:43]execute_script... [20:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190036", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:43]POST & json_proto [20:23:43]process_json_proto [20:23:43]json parsed OK: [20:23:43]protocol is kg_v1.0 [20:23:43]action value=close_receipt [20:23:43]process_action close_receipt [20:23:43]cmd_close_receipt [20:23:43]MH_GetDate [20:23:43]Write to MH i2c: F0 00 00 D1 0A CA [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 09 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: F0 09 00 D1 0A 00 51 58 C2 66 27 15 C2 66 08 [20:23:43]GetLastDocTimeStamp 1724011955 [20:23:43]current date 1724012625 [20:23:43]FM_GetShiftState [20:23:43]SAM_PROTO_GetShiftState [20:23:43]wFMCommunicate request_size=4 [20:23:43]MH_SAM_APDU [20:23:43]CAPDU: 80 13 01 00 [20:23:43]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:43]Read from MH i2c: E2 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: E2 0E 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 76 [20:23:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:23:43]wFMCommunicate OK [20:23:43]SAM_PROTO_GetShiftState done [20:23:43]FM_GetShiftState done [20:23:43]opened in 1723939759 [20:23:43]opened+sec_in_day 1724026159 [20:23:43]quantity*price = 9500 [20:23:43]sum+1 = 9501 [20:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 126 18.08.2024 20:23 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49860 ФПД: 87671354558601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202345&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49860&fm=87671354558601&tin=02508201610067®Number=0000000000092546&sum=9500 0 [20:23:44]StoreToDocumentArchive [20:23:44]shift 466 fd 49860 [20:23:44]save to /storage/0466/doc_00049860 [20:23:44]save last doc name /storage/0466/doc_00049860 to /storage/kkm_last_doc_name [20:23:44]save OK [20:23:44]Clear old archive folders... [20:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:23:44]tlvbuf is 00FC7E50 [20:23:44]SAM_PROTO_ClearQueue [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 09 00 00 [20:23:44]Write to MH i2c: E2 08 00 DF 0A 80 09 00 00 00 00 00 00 5B [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_ClearQueue done [20:23:44]KKMCreateOFDPacket [20:23:44]OFDProtocolAddRootSTLVToBuf [20:23:44]FM_MakeSignedData [20:23:44]FM_MakeSignedData [20:23:44]SAM_PROTO_SignData [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 01 02 [20:23:44]Write to MH i2c: E2 08 00 E0 0A 80 0D 01 02 00 00 00 00 63 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]wFMCommunicate request_size=255 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 58 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:23:44]Write to MH i2c: E2 02 01 E1 0A 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 58 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 7D [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]wFMCommunicate request_size=52 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C2 00 00 35 04 06 00 4F BC 93 F2 08 89 [20:23:44]Write to MH i2c: E2 37 00 E2 0A 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C2 00 00 35 04 06 00 4F BC 93 F2 08 89 00 00 C9 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [20:23:44]RAPDU: 90 00 [20:23:44]wFMCommunicate OK [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 0D 03 02 [20:23:44]Write to MH i2c: E2 08 00 E3 0A 80 0D 03 02 00 00 00 00 68 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0B 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0B 00 E3 0A 00 87 97 AA 2F 7B 17 14 1A 90 00 20 [20:23:44]RAPDU: 87 97 AA 2F 7B 17 14 1A 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_SignData done [20:23:44]FM_MakeSignedData done [20:23:44]CreateOFDProtocolMessage [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 11 00 00 [20:23:44]Write to MH i2c: E2 08 00 E4 0A 80 11 00 00 00 00 00 00 68 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 E4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B3 [20:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:23:44]wFMCommunicate OK [20:23:44]CreateOFDProtocolMessage done [20:23:44]OFDSenderStorePacket 49860 [20:23:44]StoreOFDPacket docnum=49860 [20:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 A9 CA 31 01 E9 74 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 58 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C2 00 00 35 04 06 00 4F BC 93 F2 08 89 87 97 AA 2F 7B 17 14 1A [20:23:44]CheckFolder [20:23:44]dirname=/storage/ofd_packets [20:23:44]CheckFolder done [20:23:44]ProducePacketName [20:23:44]name=ofd_packets/00049860 [20:23:44]NVStorageSaveData ofd_packets/00049860 [20:23:44]File name is /storage/ofd_packets/00049860 [20:23:44]Write 343 bytes [20:23:44]NVStorageSaveData done [20:23:44]OFDSenderStorePacket done [20:23:44]KKMCreateOFDPacket done [20:23:44]NVStorageSaveData kkm_last_timestamp [20:23:44]File name is /storage/kkm_last_timestamp [20:23:44]Write 4 bytes [20:23:44]OFD Sender: Processing packet 49860 [packets to send 21, broken 20] [20:23:44]ProducePacketName [20:23:44]name=ofd_packets/00049860 [20:23:44]OFD Sender: To server: pG, [20:23:44]CommunicateWithHost lk.salyk.kg:30040 [20:23:44]ConnectInit lk.salyk.kg [20:23:44]NVStorageSaveData done [20:23:44]ExternCall_PrintAddStr [20:23:44]wPrintStart [20:23:44]Write to MH i2c: 01 00 00 E5 0A EF [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: 01 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: 01 07 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: 01 07 00 E5 0A 00 00 00 00 00 FF 0F 04 [20:23:44]RasterBufferAndPrint [20:23:44]line Счет N : (3)190036 [20:23:44]line ИНН: 02508201610067 [20:23:44]line Контрольно-Кассовый Чек [20:23:44]line ПРОДАЖА [20:23:44]line Товар: 4700003010056 [20:23:44]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [20:23:44]line 1.000 * 95.00 [20:23:44]line = 95.00 [20:23:44]line НДС 12% НСП 1% [20:23:44]line > о реализуемом товаре [20:23:44]line ИТОГО: 95.00 [20:23:44]line НСП 1% : 0.84 [20:23:44]line НДС 12% : 10.09 [20:23:44]line Наличными: 95.00 [20:23:44]line Безнал.: 0.00 [20:23:44]line Место: АЗС № 95 "Партнер Нефть" [20:23:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:23:44]line СНО: Общий режим [20:23:44]line Чек 126 18.08.2024 20:23 [20:23:44]line Смена: 466 ФФД: 1.0 [20:23:44]line ЗНМ: 0300000078 [20:23:44]line РНМ: 0000000000092546 [20:23:44]line Версия ККМ: 001 [20:23:44]line ФМ: 0000000000871800 [20:23:44]line ФД: 49860 [20:23:45]line ФПД: 87671354558601 [20:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202345&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49860&fm=87671354558601&tin=02508201610067®Number=0000000000092546&sum=9500 [20:23:45]line 0 [20:23:45]written 0, free lines is 4095 [20:23:45]Write to MH i2c: 01 00 00 0E 0B 19 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 0E 0B 00 00 00 00 00 C8 0C F4 [20:23:45]RasterBufferAndPrint [20:23:45]line [20:23:45]line [20:23:45]line [20:23:45]line [20:23:45]line [20:23:45]written 0, free lines is 3277 [20:23:45]MH_Cut [20:23:45]Write to MH i2c: D1 01 00 15 0B 01 F2 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: D1 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: D1 01 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: D1 01 00 15 0B 00 F1 [20:23:45]Write to MH i2c: 01 00 00 16 0B 21 [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:46]*** Cut start [20:23:46]*** Purtial cut [20:23:46]*** CUTSNS_PIN = 0 [20:23:46]*** Stage 1: CUTSNS_PIN = 1 [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]*** Stop cut motor [20:23:48]*** Cut end [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 FF 0F 36 [20:23:48]process_action close_receipt done [20:23:48]requested_data is exist [20:23:48]produce_requested_data [20:23:48]requested_item fm.sn is exist - process it [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 11 00 00 [20:23:48]Write to MH i2c: E2 08 00 17 0B 80 11 00 00 00 00 00 00 9C [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 17 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 17 00 17 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [20:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:23:48]wFMCommunicate OK [20:23:48]requested_item fd.num is exist - process it [20:23:48]SAM_PROTO_GetFieldsCounters [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 13 00 00 [20:23:48]Write to MH i2c: E2 08 00 18 0B 80 13 00 00 00 00 00 00 9F [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 62 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 62 00 18 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [20:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_GetFieldsCounters done [20:23:48]requested_item shift.num is exist - process it [20:23:48]requested_item shift.opened is exist - process it [20:23:48]req_shift_opened [20:23:48]FM_GetShiftState [20:23:48]SAM_PROTO_GetShiftState [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 13 01 00 [20:23:48]Write to MH i2c: E2 08 00 19 0B 80 13 01 00 00 00 00 00 A1 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0E 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0E 00 19 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BE [20:23:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_GetShiftState done [20:23:48]FM_GetShiftState done [20:23:48]req_shift_opened done [20:23:48]requested_item shift.open_date is exist - process it [20:23:48]req_shift_open_date [20:23:48]req_shift_open_date done [20:23:48]produce_requested_data done [20:23:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49860,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:23:48]process_action_free close_receipt [20:23:48]json_value_free [20:23:48]json_value_free done [20:23:48]process_json_proto returns [20:23:48]Send response to host [20:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49860,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:23:48]free response buf [20:23:48]execute_script done [20:23:48]execute_script returns [20:23:48]free content buf [20:23:48]Sock 7.Close socket [20:23:48]Sock 7.Thread stoped [20:25:58]ConnectInit Can't connect to host [20:25:58]CommunicateWithHost connect error [20:25:58]CommunicateWithHost err = -1 [20:25:58]OFD Sender: Server communicate error [20:26:03]OFD Sender: Processing packet 49860 [packets to send 21, broken 20] [20:26:03]ProducePacketName [20:26:03]name=ofd_packets/00049860 [20:26:03]OFD Sender: To server: pG, [20:26:03]CommunicateWithHost lk.salyk.kg:30040 [20:26:03]ConnectInit lk.salyk.kg [20:26:03]Connected sock=7 [20:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 A9 CA 31 01 E9 74 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 51 58 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C2 00 00 35 04 06 00 4F BC 93 F2 08 89 87 97 AA 2F 7B 17 14 1A [20:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 17 B4 47 00 0A D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C4 C2 00 00 F4 03 04 00 4F 03 C2 66 B6 04 01 00 00 A4 F6 3B BB 45 47 CA 5F [20:26:03]CommunicateWithHost err = 0 [20:26:03]CheckOFDResponse [20:26:03]1017 (14) - 77093643461234 [20:26:03]1041 (16) - 0000000000871800 [20:26:03]1040 (4) - 49860 [20:26:03]1012 (4) - 18.08.2024 14:21 [20:26:03]1206 (1) - 0 [20:26:03]OFD Sender: Remove packet 49860 [20:26:03]ProducePacketName [20:26:03]name=ofd_packets/00049860 [20:26:03]NVStorageDeleteData [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:47]accept exits with 9 [20:36:47]New connection [20:36:47]New thread 3067055460 created [20:36:47]Thread 3067198820 joined [20:36:47]Waiting for new connection... [20:36:47] Sock 9.Parse request [20:36:47]Sock 9.Check first char [20:36:47]Sock 9.First char is OK [20:36:47]request: POST /json_proto HTTP/1.0 [20:36:47]Method: POST [20:36:47]URL: /json_proto [20:36:47]Method is POST - this is cgi request [20:36:47]url: /json_proto [20:36:47]query_string will be loaded in cgi processing [20:36:47]execute_cgi json_proto POST (null) [20:36:47]execute_cgi path=json_proto method=POST [20:36:47]POST find Content-Length [20:36:47]Host: 172.17.46.196:8080 [20:36:47]Content-Length: 756 [20:36:47]Content-Type: application/json [20:36:47] [20:36:47]POST finish read [20:36:47]Found Content-Length = 756 [20:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:47]execute_script... [20:36: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)11327326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:47]POST & json_proto [20:36:47]process_json_proto [20:36:47]json parsed OK: [20:36:47]protocol is kg_v1.0 [20:36:47]action value=close_receipt [20:36:47]process_action close_receipt [20:36:47]cmd_close_receipt [20:36:47]MH_GetDate [20:36:47]Write to MH i2c: F0 00 00 1A 0B 14 [20:36:47]Write i2c OK [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 09 00 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 09 00 1A 0B 00 61 5B C2 66 27 15 C2 66 65 [20:36:47]GetLastDocTimeStamp 1724012625 [20:36:47]current date 1724013409 [20:36:47]FM_GetShiftState [20:36:47]SAM_PROTO_GetShiftState [20:36:47]wFMCommunicate request_size=4 [20:36:47]MH_SAM_APDU [20:36:47]CAPDU: 80 13 01 00 [20:36:47]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [20:36:47]Write i2c OK [20:36:47]MH_I2C_Read... [20:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:47]Read from MH i2c: E2 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: E2 0E 00 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 C0 [20:36:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:36:47]wFMCommunicate OK [20:36:47]SAM_PROTO_GetShiftState done [20:36:47]FM_GetShiftState done [20:36:47]opened in 1723939759 [20:36:47]opened+sec_in_day 1724026159 [20:36:47]quantity*price = 0 [20:36:47]sum+1 = 1 [20:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 127 18.08.2024 20:36 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106217 ФМ: 0000000000871800 ФД: 49861 ФПД: 245643789252340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203649&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49861&fm=245643789252340&tin=02508201610067®Number=0000000000092546&sum=0 [20:36:48]StoreToDocumentArchive [20:36:48]shift 466 fd 49861 [20:36:48]save to /storage/0466/doc_00049861 [20:36:48]save last doc name /storage/0466/doc_00049861 to /storage/kkm_last_doc_name [20:36:48]save OK [20:36:48]Clear old archive folders... [20:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:48]tlvbuf is 00FF5720 [20:36:48]SAM_PROTO_ClearQueue [20:36:48]wFMCommunicate request_size=4 [20:36:48]MH_SAM_APDU [20:36:48]CAPDU: 80 09 00 00 [20:36:48]Write to MH i2c: E2 08 00 28 0B 80 09 00 00 00 00 00 00 A5 [20:36:48]Write i2c OK [20:36:48]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]SAM_PROTO_ClearQueue done [20:36:49]KKMCreateOFDPacket [20:36:49]OFDProtocolAddRootSTLVToBuf [20:36:49]FM_MakeSignedData [20:36:49]FM_MakeSignedData [20:36:49]SAM_PROTO_SignData [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 01 02 [20:36:49]Write to MH i2c: E2 08 00 29 0B 80 0D 01 02 00 00 00 00 AD [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 29 0B 00 90 00 A8 [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=255 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 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 7F 00 00 00 F4 03 04 00 61 5B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C2 00 00 35 04 06 00 DF [20:36:49]Write to MH i2c: E2 02 01 2A 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 34 FF 03 08 00 03 40 9C 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 7F 00 00 00 F4 03 04 00 61 5B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C2 00 00 35 04 06 00 DF 00 00 27 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=10 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 02 02 05 69 66 CC B6 F4 [20:36:49]Write to MH i2c: E2 0D 00 2B 0B 80 0D 02 02 05 00 69 66 CC B6 F4 00 00 FF [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 03 02 [20:36:49]Write to MH i2c: E2 08 00 2C 0B 80 0D 03 02 00 00 00 00 B2 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 0B 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 0B 00 2C 0B 00 5C B7 A9 94 C7 24 18 8A 90 00 90 [20:36:49]RAPDU: 5C B7 A9 94 C7 24 18 8A 90 00 [20:36:49]wFMCommunicate OK [20:36:49]SAM_PROTO_SignData done [20:36:49]FM_MakeSignedData done [20:36:49]CreateOFDProtocolMessage [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 11 00 00 [20:36:49]Write to MH i2c: E2 08 00 2D 0B 80 11 00 00 00 00 00 00 B2 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 17 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 17 00 2D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FD [20:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:36:49]wFMCommunicate OK [20:36:49]CreateOFDProtocolMessage done [20:36:49]OFDSenderStorePacket 49861 [20:36:49]StoreOFDPacket docnum=49861 [20:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A 1C 07 01 E2 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 34 FF 03 08 00 03 40 9C 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 7F 00 00 00 F4 03 04 00 61 5B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C2 00 00 35 04 06 00 DF 69 66 CC B6 F4 5C B7 A9 94 C7 24 18 8A [20:36:49]CheckFolder [20:36:49]dirname=/storage/ofd_packets [20:36:49]CheckFolder done [20:36:49]ProducePacketName [20:36:49]name=ofd_packets/00049861 [20:36:49]NVStorageSaveData ofd_packets/00049861 [20:36:49]File name is /storage/ofd_packets/00049861 [20:36:49]Write 301 bytes [20:36:49]NVStorageSaveData done [20:36:49]OFDSenderStorePacket done [20:36:49]KKMCreateOFDPacket done [20:36:49]NVStorageSaveData kkm_last_timestamp [20:36:49]File name is /storage/kkm_last_timestamp [20:36:49]Write 4 bytes [20:36:49]NVStorageSaveData done [20:36:49]ExternCall_PrintAddStr [20:36:49]wPrintStart [20:36:49]Write to MH i2c: 01 00 00 2E 0B 39 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 2E 0B 00 00 00 00 00 FF 0F 4E [20:36:49]RasterBufferAndPrint [20:36:49]line Счет N : (1)11327326 [20:36:49]line ИНН: 02508201610067 [20:36:49]line Контрольно-Кассовый Чек [20:36:49]line ПРОДАЖА [20:36:49]line ТРК (МРК, ГНК) : 42 [20:36:49]line Товар: 2710124130 [20:36:49]line Аи-92-К-4 [20:36:49]line 40.000 * 0.00 [20:36:49]line = 0.00 [20:36:49]line НДС 12% НСП 1% [20:36:49]line > о реализуемом товаре [20:36:49]line ИТОГО: 0.00 [20:36:49]line НСП 1% : 0.00 [20:36:49]line НДС 12% : 0.00 [20:36:49]line Наличными: 0.00 [20:36:49]line Безнал.: 0.00 [20:36:49]line Место: АЗС № 95 "Партнер Нефть" [20:36:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:36:49]line СНО: Общий режим [20:36:49]line Чек 127 18.08.2024 20:36 [20:36:49]line Смена: 466 ФФД: 1.0 [20:36:49]line ЗНМ: 0300000078 [20:36:49]line РНМ: 0000000000092546 [20:36:49]line Версия ККМ: 001 [20:36:49]line Талоны: ТК ГПНА Online [20:36:49]line 30106217 [20:36:49]line ФМ: 0000000000871800 [20:36:49]line ФД: 49861 [20:36:49]line ФПД: 245643789252340 [20:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203649&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49861&fm=245643789252340&tin=02508201610067®Number=0000000000092546&sum=0 [20:36:49]written 0, free lines is 4095 [20:36:49]OFD Sender: Processing packet 49861 [packets to send 21, broken 20] [20:36:49]ProducePacketName [20:36:49]name=ofd_packets/00049861 [20:36:49]OFD Sender: To server: pG, [20:36:49]CommunicateWithHost lk.salyk.kg:30040 [20:36:49]ConnectInit lk.salyk.kg [20:36:49]Connected sock=10 [20:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A 1C 07 01 E2 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 34 FF 03 08 00 03 40 9C 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 7F 00 00 00 F4 03 04 00 61 5B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C5 C2 00 00 35 04 06 00 DF 69 66 CC B6 F4 5C B7 A9 94 C7 24 18 8A [20:36:49]Write to MH i2c: 01 00 00 58 0B 63 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 D7 0C 4D [20:36:49]RasterBufferAndPrint [20:36:49]line [20:36:49]line [20:36:49]line [20:36:49]line [20:36:49]line [20:36:49]written 0, free lines is 3295 [20:36:49]MH_Cut [20:36:49]Write to MH i2c: D1 01 00 5F 0B 01 3C [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: D1 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: D1 01 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: D1 01 00 5F 0B 00 3B [20:36:49]Write to MH i2c: 01 00 00 60 0B 6B [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D7 22 47 00 9D 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 38 30 30 10 04 04 00 C5 C2 00 00 F4 03 04 00 D5 05 C2 66 B6 04 01 00 00 7A 6B 0E 4B D2 FC B5 47 [20:36:50]CommunicateWithHost err = 0 [20:36:50]CheckOFDResponse [20:36:50]1017 (14) - 77093643461234 [20:36:50]1041 (16) - 0000000000871800 [20:36:50]1040 (4) - 49861 [20:36:50]1012 (4) - 18.08.2024 14:31 [20:36:50]1206 (1) - 0 [20:36:50]OFD Sender: Remove packet 49861 [20:36:50]ProducePacketName [20:36:50]name=ofd_packets/00049861 [20:36:50]NVStorageDeleteData [20:36:50]OFD Sender: No OFD packet to send [20:36:50]*** Cut start [20:36:50]*** Purtial cut [20:36:50]*** Stage 1: CUTSNS_PIN = 1 [20:36:51]Read from MH i2c: 01 [20:36:51]MH_I2C_Read... [20:36:51]*** Stop cut motor [20:36:51]*** Cut end [20:36:51]Read from MH i2c: 01 07 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [20:36:51]process_action close_receipt done [20:36:51]requested_data is exist [20:36:51]produce_requested_data [20:36:51]requested_item fm.sn is exist - process it [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 11 00 00 [20:36:51]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 17 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [20:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:36:51]wFMCommunicate OK [20:36:51]requested_item fd.num is exist - process it [20:36:51]SAM_PROTO_GetFieldsCounters [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 13 00 00 [20:36:51]Write to MH i2c: E2 08 00 62 0B 80 13 00 00 00 00 00 00 E9 [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 62 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 62 00 62 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [20:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:51]wFMCommunicate OK [20:36:51]SAM_PROTO_GetFieldsCounters done [20:36:51]requested_item shift.num is exist - process it [20:36:51]requested_item shift.opened is exist - process it [20:36:51]req_shift_opened [20:36:51]FM_GetShiftState [20:36:51]SAM_PROTO_GetShiftState [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 13 01 00 [20:36:51]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 0E 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 08 [20:36:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:36:51]wFMCommunicate OK [20:36:51]SAM_PROTO_GetShiftState done [20:36:51]FM_GetShiftState done [20:36:51]req_shift_opened done [20:36:51]requested_item shift.open_date is exist - process it [20:36:51]req_shift_open_date [20:36:51]req_shift_open_date done [20:36:51]produce_requested_data done [20:36:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49861,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:36:51]process_action_free close_receipt [20:36:51]json_value_free [20:36:51]json_value_free done [20:36:51]process_json_proto returns [20:36:51]Send response to host [20:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49861,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:36:51]free response buf [20:36:51]execute_script done [20:36:51]execute_script returns [20:36:51]free content buf [20:36:51]Sock 9.Close socket [20:36:51]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:36]accept exits with 7 [20:39:36]New connection [20:39:36]New thread 3067198820 created [20:39:36]Thread 3067055460 joined [20:39:36]Waiting for new connection... [20:39:36] Sock 7.Parse request [20:39:36]Sock 7.Check first char [20:39:36]Sock 7.First char is OK [20:39:36]request: POST /json_proto HTTP/1.0 [20:39:36]Method: POST [20:39:36]URL: /json_proto [20:39:36]Method is POST - this is cgi request [20:39:36]url: /json_proto [20:39:36]query_string will be loaded in cgi processing [20:39:36]execute_cgi json_proto POST (null) [20:39:36]execute_cgi path=json_proto method=POST [20:39:36]POST find Content-Length [20:39:36]Host: 172.17.46.196:8080 [20:39:36]Content-Length: 649 [20:39:36]Content-Type: application/json [20:39:36] [20:39:36]POST finish read [20:39:36]Found Content-Length = 649 [20:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190037", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:36]execute_script... [20:39: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 : (3)190037", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:36]POST & json_proto [20:39:36]process_json_proto [20:39:36]json parsed OK: [20:39:36]protocol is kg_v1.0 [20:39:36]action value=close_receipt [20:39:36]process_action close_receipt [20:39:36]cmd_close_receipt [20:39:36]MH_GetDate [20:39:36]Write to MH i2c: F0 00 00 64 0B 5E [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: F0 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: F0 09 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: F0 09 00 64 0B 00 0A 5C C2 66 27 15 C2 66 59 [20:39:36]GetLastDocTimeStamp 1724013409 [20:39:36]current date 1724013578 [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 65 0B 80 13 01 00 00 00 00 00 ED [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 65 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 0A [20:39:36]RAPDU: 09 00 01 AF 3B C1 66 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]opened in 1723939759 [20:39:36]opened+sec_in_day 1724026159 [20:39:36]quantity*price = 17000 [20:39:36]sum+1 = 17001 [20:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 128 18.08.2024 20:39 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49862 ФПД: 5176744189801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49862&fm=5176744189801&tin=02508201610067®Number=0000000000092546&sum=17000 0 [20:39:37]StoreToDocumentArchive [20:39:37]shift 466 fd 49862 [20:39:37]save to /storage/0466/doc_00049862 [20:39:37]save last doc name /storage/0466/doc_00049862 to /storage/kkm_last_doc_name [20:39:37]save OK [20:39:37]Clear old archive folders... [20:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:39:37]tlvbuf is 00FD39F0 [20:39:37]SAM_PROTO_ClearQueue [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 09 00 00 [20:39:37]Write to MH i2c: E2 08 00 72 0B 80 09 00 00 00 00 00 00 EF [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]SAM_PROTO_ClearQueue done [20:39:37]KKMCreateOFDPacket [20:39:37]OFDProtocolAddRootSTLVToBuf [20:39:37]FM_MakeSignedData [20:39:37]FM_MakeSignedData [20:39:37]SAM_PROTO_SignData [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 01 02 [20:39:37]Write to MH i2c: E2 08 00 73 0B 80 0D 01 02 00 00 00 00 F7 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=255 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0A 5C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [20:39:37]Write to MH i2c: E2 02 01 74 0B 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0A 5C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 08 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=36 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C2 00 00 35 04 06 00 04 B5 4D FF 9F 69 [20:39:37]Write to MH i2c: E2 27 00 75 0B 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C2 00 00 35 04 06 00 04 B5 4D FF 9F 69 00 00 AC [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [20:39:37]RAPDU: 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 0D 03 02 [20:39:37]Write to MH i2c: E2 08 00 76 0B 80 0D 03 02 00 00 00 00 FC [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 0B 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 0B 00 76 0B 00 30 3E 7A AB AD 99 0F 3F 90 00 24 [20:39:37]RAPDU: 30 3E 7A AB AD 99 0F 3F 90 00 [20:39:37]wFMCommunicate OK [20:39:37]SAM_PROTO_SignData done [20:39:37]FM_MakeSignedData done [20:39:37]CreateOFDProtocolMessage [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 11 00 00 [20:39:37]Write to MH i2c: E2 08 00 77 0B 80 11 00 00 00 00 00 00 FC [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 17 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 17 00 77 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [20:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:39:37]wFMCommunicate OK [20:39:37]CreateOFDProtocolMessage done [20:39:37]OFDSenderStorePacket 49862 [20:39:37]StoreOFDPacket docnum=49862 [20:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 71 86 21 01 2B 9F 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0A 5C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C2 00 00 35 04 06 00 04 B5 4D FF 9F 69 30 3E 7A AB AD 99 0F 3F [20:39:37]CheckFolder [20:39:37]dirname=/storage/ofd_packets [20:39:37]CheckFolder done [20:39:37]ProducePacketName [20:39:37]name=ofd_packets/00049862 [20:39:37]NVStorageSaveData ofd_packets/00049862 [20:39:37]File name is /storage/ofd_packets/00049862 [20:39:37]Write 327 bytes [20:39:37]NVStorageSaveData done [20:39:37]OFDSenderStorePacket done [20:39:37]KKMCreateOFDPacket done [20:39:37]NVStorageSaveData kkm_last_timestamp [20:39:37]File name is /storage/kkm_last_timestamp [20:39:37]Write 4 bytes [20:39:37]NVStorageSaveData done [20:39:37]ExternCall_PrintAddStr [20:39:37]wPrintStart [20:39:37]Write to MH i2c: 01 00 00 78 0B 83 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 07 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 07 00 78 0B 00 00 00 00 00 FF 0F 98 [20:39:37]RasterBufferAndPrint [20:39:37]line Счет N : (3)190037 [20:39:37]line ИНН: 02508201610067 [20:39:37]line Контрольно-Кассовый Чек [20:39:37]line ПРОДАЖА [20:39:37]line Товар: 8901086040008 [20:39:37]line Жид/ст ПН летняя 4,5л [20:39:37]line 1.000 * 170.00 [20:39:37]line = 170.00 [20:39:37]line НДС 12% НСП 1% [20:39:37]line > о реализуемом товаре [20:39:37]line ИТОГО: 170.00 [20:39:37]line НСП 1% : 1.50 [20:39:37]line НДС 12% : 18.05 [20:39:37]line Наличными: 170.00 [20:39:37]line Безнал.: 0.00 [20:39:37]line Место: АЗС № 95 "Партнер Нефть" [20:39:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:39:37]line СНО: Общий режим [20:39:37]line Чек 128 18.08.2024 20:39 [20:39:37]line Смена: 466 ФФД: 1.0 [20:39:37]line ЗНМ: 0300000078 [20:39:37]line РНМ: 0000000000092546 [20:39:37]line Версия ККМ: 001 [20:39:37]line ФМ: 0000000000871800 [20:39:37]line ФД: 49862 [20:39:37]line ФПД: 5176744189801 [20:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49862&fm=5176744189801&tin=02508201610067®Number=0000000000092546&sum=17000 [20:39:38]line 0 [20:39:38]OFD Sender: Processing packet 49862 [packets to send 21, broken 20] [20:39:38]ProducePacketName [20:39:38]name=ofd_packets/00049862 [20:39:38]OFD Sender: To server: pG, [20:39:38]CommunicateWithHost lk.salyk.kg:30040 [20:39:38]ConnectInit lk.salyk.kg [20:39:38]written 0, free lines is 4095 [20:39:38]Connected sock=10 [20:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 71 86 21 01 2B 9F 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0A 5C C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C2 00 00 35 04 06 00 04 B5 4D FF 9F 69 30 3E 7A AB AD 99 0F 3F [20:39:38]Write to MH i2c: 01 00 00 A0 0B AB [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 E1 0C 9F [20:39:38]RasterBufferAndPrint [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]line [20:39:38]written 0, free lines is 3303 [20:39:38]MH_Cut [20:39:38]Write to MH i2c: D1 01 00 A7 0B 01 84 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 01 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: D1 01 00 A7 0B 00 83 [20:39:38]Write to MH i2c: 01 00 00 A8 0B B3 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0E 23 47 00 5A AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C6 C2 00 00 F4 03 04 00 7E 06 C2 66 B6 04 01 00 00 07 D2 A9 50 CC 64 EC F8 [20:39:38]CommunicateWithHost err = 0 [20:39:38]CheckOFDResponse [20:39:38]1017 (14) - 77093643461234 [20:39:38]1041 (16) - 0000000000871800 [20:39:38]1040 (4) - 49862 [20:39:38]1012 (4) - 18.08.2024 14:34 [20:39:38]1206 (1) - 0 [20:39:38]OFD Sender: Remove packet 49862 [20:39:38]ProducePacketName [20:39:38]name=ofd_packets/00049862 [20:39:38]NVStorageDeleteData [20:39:39]OFD Sender: No OFD packet to send [20:39:39]*** Cut start [20:39:39]*** Purtial cut [20:39:39]*** CUTSNS_PIN = 0 [20:39:39]*** Stage 1: CUTSNS_PIN = 1 [20:39:41]Read from MH i2c: 01 [20:39:41]MH_I2C_Read... [20:39:41]*** Stop cut motor [20:39:41]*** Cut end [20:39:41]Read from MH i2c: 01 07 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 FF 0F C8 [20:39:41]process_action close_receipt done [20:39:41]requested_data is exist [20:39:41]produce_requested_data [20:39:41]requested_item fm.sn is exist - process it [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 11 00 00 [20:39:41]Write to MH i2c: E2 08 00 A9 0B 80 11 00 00 00 00 00 00 2E [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 17 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 17 00 A9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 79 [20:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:39:41]wFMCommunicate OK [20:39:41]requested_item fd.num is exist - process it [20:39:41]SAM_PROTO_GetFieldsCounters [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 13 00 00 [20:39:41]Write to MH i2c: E2 08 00 AA 0B 80 13 00 00 00 00 00 00 31 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 62 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 62 00 AA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [20:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]SAM_PROTO_GetFieldsCounters done [20:39:41]requested_item shift.num is exist - process it [20:39:41]requested_item shift.opened is exist - process it [20:39:41]req_shift_opened [20:39:41]FM_GetShiftState [20:39:41]SAM_PROTO_GetShiftState [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 13 01 00 [20:39:41]Write to MH i2c: E2 08 00 AB 0B 80 13 01 00 00 00 00 00 33 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 AB 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 50 [20:39:41]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]SAM_PROTO_GetShiftState done [20:39:41]FM_GetShiftState done [20:39:41]req_shift_opened done [20:39:41]requested_item shift.open_date is exist - process it [20:39:41]req_shift_open_date [20:39:41]req_shift_open_date done [20:39:41]produce_requested_data done [20:39:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49862,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:39:41]process_action_free close_receipt [20:39:41]json_value_free [20:39:41]json_value_free done [20:39:41]process_json_proto returns [20:39:41]Send response to host [20:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49862,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:39:41]free response buf [20:39:41]execute_script done [20:39:41]execute_script returns [20:39:41]free content buf [20:39:41]Sock 7.Close socket [20:39:41]Sock 7.Thread stoped [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:25]int [20:45:25]Write to MH i2c: 01 00 00 AC 0B B7 [20:45:25]*** FLAG_PRN_KEY set [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 AC 0B 00 08 00 00 00 FF 0F D4 [20:45:25]state=0 [20:45:25]Key pressed [20:45:25]Feed [20:45:25]Write to MH i2c: D8 00 00 AD 0B 8F [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: D8 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: D8 01 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: D8 01 00 AD 0B 00 90 [20:45:25]int [20:45:25]Write to MH i2c: 01 00 00 AE 0B B9 [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 AE 0B 00 48 00 00 00 3C 00 44 [20:45:25]state=2 [20:45:25]Key pressed [20:45:25]int [20:45:25]Write to MH i2c: 01 00 00 AF 0B BA [20:45:25]*** FLAG_PRN_KEY reset [20:45:25]Write i2c OK [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 [20:45:25]MH_I2C_Read... [20:45:25]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 F6 0F C6 [20:45:25]state=2 [20:45:25]Stop feed [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:12]accept exits with 9 [20:49:12]New connection [20:49:12]New thread 3067055460 created [20:49:12]Thread 3067198820 joined [20:49:12]Waiting for new connection... [20:49:12] Sock 9.Parse request [20:49:12]Sock 9.Check first char [20:49:12]Sock 9.First char is OK [20:49:12]request: POST /json_proto HTTP/1.0 [20:49:12]Method: POST [20:49:12]URL: /json_proto [20:49:12]Method is POST - this is cgi request [20:49:12]url: /json_proto [20:49:12]query_string will be loaded in cgi processing [20:49:12]execute_cgi json_proto POST (null) [20:49:12]execute_cgi path=json_proto method=POST [20:49:12]POST find Content-Length [20:49:12]Host: 172.17.46.196:8080 [20:49:12]Content-Length: 633 [20:49:12]Content-Type: application/json [20:49:12] [20:49:12]POST finish read [20:49:12]Found Content-Length = 633 [20:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190038", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:12]execute_script... [20:49: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 : (3)190038", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:12]POST & json_proto [20:49:12]process_json_proto [20:49:12]json parsed OK: [20:49:12]protocol is kg_v1.0 [20:49:12]action value=close_receipt [20:49:12]process_action close_receipt [20:49:12]cmd_close_receipt [20:49:12]MH_GetDate [20:49:12]Write to MH i2c: F0 00 00 B0 0B AA [20:49:12]Write i2c OK [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: F0 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: F0 09 00 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: F0 09 00 B0 0B 00 4A 5E C2 66 27 15 C2 66 E7 [20:49:12]GetLastDocTimeStamp 1724013578 [20:49:12]current date 1724014154 [20:49:12]FM_GetShiftState [20:49:12]SAM_PROTO_GetShiftState [20:49:12]wFMCommunicate request_size=4 [20:49:12]MH_SAM_APDU [20:49:12]CAPDU: 80 13 01 00 [20:49:12]Write to MH i2c: E2 08 00 B1 0B 80 13 01 00 00 00 00 00 39 [20:49:12]Write i2c OK [20:49:12]MH_I2C_Read... [20:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:12]Read from MH i2c: E2 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: E2 0E 00 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: E2 0E 00 B1 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 56 [20:49:12]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:49:12]wFMCommunicate OK [20:49:12]SAM_PROTO_GetShiftState done [20:49:12]FM_GetShiftState done [20:49:12]opened in 1723939759 [20:49:12]opened+sec_in_day 1724026159 [20:49:12]quantity*price = 14000 [20:49:12]sum+1 = 14001 [20:49:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 129 18.08.2024 20:49 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49863 ФПД: 73030928574283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204914&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49863&fm=73030928574283&tin=02508201610067®Number=0000000000092546&sum=14000 0 [20:49:13]StoreToDocumentArchive [20:49:13]shift 466 fd 49863 [20:49:13]save to /storage/0466/doc_00049863 [20:49:13]save last doc name /storage/0466/doc_00049863 to /storage/kkm_last_doc_name [20:49:13]save OK [20:49:13]Clear old archive folders... [20:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=285 [20:49:13]tlvbuf is 00FDAA90 [20:49:13]SAM_PROTO_ClearQueue [20:49:13]wFMCommunicate request_size=4 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 09 00 00 [20:49:13]Write to MH i2c: E2 08 00 BE 0B 80 09 00 00 00 00 00 00 3B [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [20:49:13]RAPDU: 90 00 [20:49:13]wFMCommunicate OK [20:49:13]SAM_PROTO_ClearQueue done [20:49:13]KKMCreateOFDPacket [20:49:13]OFDProtocolAddRootSTLVToBuf [20:49:13]FM_MakeSignedData [20:49:13]FM_MakeSignedData [20:49:13]SAM_PROTO_SignData [20:49:13]wFMCommunicate request_size=4 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 0D 01 02 [20:49:13]Write to MH i2c: E2 08 00 BF 0B 80 0D 01 02 00 00 00 00 43 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [20:49:13]RAPDU: 90 00 [20:49:13]wFMCommunicate OK [20:49:13]wFMCommunicate request_size=255 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4A 5E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 [20:49:13]Write to MH i2c: E2 02 01 C0 0B 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4A 5E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 00 00 AB [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [20:49:13]RAPDU: 90 00 [20:49:13]wFMCommunicate OK [20:49:13]wFMCommunicate request_size=44 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C2 00 00 35 04 06 00 42 6B D6 8E 27 4B [20:49:13]Write to MH i2c: E2 2F 00 C1 0B 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C2 00 00 35 04 06 00 42 6B D6 8E 27 4B 00 00 6A [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [20:49:13]RAPDU: 90 00 [20:49:13]wFMCommunicate OK [20:49:13]wFMCommunicate request_size=4 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 0D 03 02 [20:49:13]Write to MH i2c: E2 08 00 C2 0B 80 0D 03 02 00 00 00 00 48 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 0B 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 0B 00 C2 0B 00 B8 EE 94 BE 57 0A 45 03 90 00 EA [20:49:13]RAPDU: B8 EE 94 BE 57 0A 45 03 90 00 [20:49:13]wFMCommunicate OK [20:49:13]SAM_PROTO_SignData done [20:49:13]FM_MakeSignedData done [20:49:13]CreateOFDProtocolMessage [20:49:13]wFMCommunicate request_size=4 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 11 00 00 [20:49:13]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 17 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [20:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:49:13]wFMCommunicate OK [20:49:13]CreateOFDProtocolMessage done [20:49:13]OFDSenderStorePacket 49863 [20:49:13]StoreOFDPacket docnum=49863 [20:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 0E 1D 29 01 31 7A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4A 5E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C2 00 00 35 04 06 00 42 6B D6 8E 27 4B B8 EE 94 BE 57 0A 45 03 [20:49:13]CheckFolder [20:49:13]dirname=/storage/ofd_packets [20:49:13]CheckFolder done [20:49:13]ProducePacketName [20:49:13]name=ofd_packets/00049863 [20:49:13]NVStorageSaveData ofd_packets/00049863 [20:49:13]File name is /storage/ofd_packets/00049863 [20:49:13]Write 335 bytes [20:49:13]NVStorageSaveData done [20:49:13]OFDSenderStorePacket done [20:49:13]KKMCreateOFDPacket done [20:49:13]NVStorageSaveData kkm_last_timestamp [20:49:13]File name is /storage/kkm_last_timestamp [20:49:13]Write 4 bytes [20:49:13]NVStorageSaveData done [20:49:13]ExternCall_PrintAddStr [20:49:13]wPrintStart [20:49:13]Write to MH i2c: 01 00 00 C4 0B CF [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [20:49:13]RasterBufferAndPrint [20:49:13]line Счет N : (3)190038 [20:49:13]line ИНН: 02508201610067 [20:49:13]line Контрольно-Кассовый Чек [20:49:13]line ПРОДАЖА [20:49:13]line Товар: 48745024 [20:49:13]line Сигареты Winston Superslims Expand Purpl [20:49:13]line 1.000 * 140.00 [20:49:13]line = 140.00 [20:49:13]line НДС 12% НСП 1% [20:49:13]line > о реализуемом товаре [20:49:13]line ИТОГО: 140.00 [20:49:13]line НСП 1% : 1.24 [20:49:13]line НДС 12% : 14.87 [20:49:13]line Наличными: 140.00 [20:49:13]line Безнал.: 0.00 [20:49:13]line Место: АЗС № 95 "Партнер Нефть" [20:49:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:49:13]line СНО: Общий режим [20:49:13]line Чек 129 18.08.2024 20:49 [20:49:13]line Смена: 466 ФФД: 1.0 [20:49:13]line ЗНМ: 0300000078 [20:49:13]line РНМ: 0000000000092546 [20:49:13]line Версия ККМ: 001 [20:49:13]line ФМ: 0000000000871800 [20:49:13]line ФД: 49863 [20:49:13]line ФПД: 73030928574283 [20:49:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204914&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49863&fm=73030928574283&tin=02508201610067®Number=0000000000092546&sum=14000 [20:49:14]line 0 [20:49:14]OFD Sender: Processing packet 49863 [packets to send 21, broken 20] [20:49:14]ProducePacketName [20:49:14]name=ofd_packets/00049863 [20:49:14]OFD Sender: To server: pG, [20:49:14]CommunicateWithHost lk.salyk.kg:30040 [20:49:14]ConnectInit lk.salyk.kg [20:49:14]written 0, free lines is 4095 [20:49:14]Connected sock=10 [20:49:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 0E 1D 29 01 31 7A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 4A 5E C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C2 00 00 35 04 06 00 42 6B D6 8E 27 4B B8 EE 94 BE 57 0A 45 03 [20:49:14]Write to MH i2c: 01 00 00 ED 0B F8 [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 CD 0C D8 [20:49:14]RasterBufferAndPrint [20:49:14]line [20:49:14]line [20:49:14]line [20:49:14]line [20:49:14]line [20:49:14]written 0, free lines is 3283 [20:49:14]MH_Cut [20:49:14]Write to MH i2c: D1 01 00 F4 0B 01 D1 [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D1 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D1 01 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D1 01 00 F4 0B 00 D0 [20:49:14]Write to MH i2c: 01 00 00 F5 0B 00 [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A3 9F 47 00 5C 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C7 C2 00 00 F4 03 04 00 BE 08 C2 66 B6 04 01 00 00 15 7D 36 1F 9F 48 5E 39 [20:49:14]CommunicateWithHost err = 0 [20:49:14]CheckOFDResponse [20:49:14]1017 (14) - 77093643461234 [20:49:14]1041 (16) - 0000000000871800 [20:49:14]1040 (4) - 49863 [20:49:14]1012 (4) - 18.08.2024 14:44 [20:49:14]1206 (1) - 0 [20:49:14]OFD Sender: Remove packet 49863 [20:49:14]ProducePacketName [20:49:14]name=ofd_packets/00049863 [20:49:14]NVStorageDeleteData [20:49:15]OFD Sender: No OFD packet to send [20:49:15]*** Cut start [20:49:15]*** Purtial cut [20:49:15]*** Stage 1: CUTSNS_PIN = 1 [20:49:15]Read from MH i2c: 01 [20:49:15]MH_I2C_Read... [20:49:15]*** Stop cut motor [20:49:15]*** Cut end [20:49:15]Read from MH i2c: 01 07 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 FF 0F 15 [20:49:15]process_action close_receipt done [20:49:15]requested_data is exist [20:49:15]produce_requested_data [20:49:15]requested_item fm.sn is exist - process it [20:49:15]wFMCommunicate request_size=4 [20:49:15]MH_SAM_APDU [20:49:15]CAPDU: 80 11 00 00 [20:49:15]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:15]Read from MH i2c: E2 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 17 00 [20:49:15]MH_I2C_Read... [20:49:15]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 38 30 30 90 00 C6 [20:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:49:15]wFMCommunicate OK [20:49:15]requested_item fd.num is exist - process it [20:49:15]SAM_PROTO_GetFieldsCounters [20:49:15]wFMCommunicate request_size=4 [20:49:15]MH_SAM_APDU [20:49:15]CAPDU: 80 13 00 00 [20:49:15]Write to MH i2c: E2 08 00 F7 0B 80 13 00 00 00 00 00 00 7E [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:15]Read from MH i2c: E2 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 62 00 [20:49:15]MH_I2C_Read... [20:49:15]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [20:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:15]wFMCommunicate OK [20:49:15]SAM_PROTO_GetFieldsCounters done [20:49:15]requested_item shift.num is exist - process it [20:49:15]requested_item shift.opened is exist - process it [20:49:15]req_shift_opened [20:49:15]FM_GetShiftState [20:49:15]SAM_PROTO_GetShiftState [20:49:15]wFMCommunicate request_size=4 [20:49:15]MH_SAM_APDU [20:49:15]CAPDU: 80 13 01 00 [20:49:15]Write to MH i2c: E2 08 00 F8 0B 80 13 01 00 00 00 00 00 80 [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:15]Read from MH i2c: E2 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: E2 0E 00 F8 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 9D [20:49:15]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:49:15]wFMCommunicate OK [20:49:15]SAM_PROTO_GetShiftState done [20:49:15]FM_GetShiftState done [20:49:15]req_shift_opened done [20:49:15]requested_item shift.open_date is exist - process it [20:49:15]req_shift_open_date [20:49:15]req_shift_open_date done [20:49:15]produce_requested_data done [20:49:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49863,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:49:15]process_action_free close_receipt [20:49:15]json_value_free [20:49:15]json_value_free done [20:49:15]process_json_proto returns [20:49:15]Send response to host [20:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49863,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:49:15]free response buf [20:49:15]execute_script done [20:49:15]execute_script returns [20:49:15]free content buf [20:49:15]Sock 9.Close socket [20:49:15]Sock 9.Thread stoped [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]accept exits with 7 [20:55:55]New connection [20:55:55]New thread 3067198820 created [20:55:55]Thread 3067055460 joined [20:55:55]Waiting for new connection... [20:55:55] Sock 7.Parse request [20:55:55]Sock 7.Check first char [20:55:55]Sock 7.First char is OK [20:55:55]request: POST /json_proto HTTP/1.0 [20:55:55]Method: POST [20:55:55]URL: /json_proto [20:55:55]Method is POST - this is cgi request [20:55:55]url: /json_proto [20:55:55]query_string will be loaded in cgi processing [20:55:55]execute_cgi json_proto POST (null) [20:55:55]execute_cgi path=json_proto method=POST [20:55:55]POST find Content-Length [20:55:55]Host: 172.17.46.196:8080 [20:55:55]Content-Length: 663 [20:55:55]Content-Type: application/json [20:55:55] [20:55:55]POST finish read [20:55:55]Found Content-Length = 663 [20:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190039", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:55]execute_script... [20: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 : (3)190039", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:55]POST & json_proto [20:55:55]process_json_proto [20:55:55]json parsed OK: [20:55:55]protocol is kg_v1.0 [20:55:55]action value=close_receipt [20:55:55]process_action close_receipt [20:55:55]cmd_close_receipt [20:55:55]MH_GetDate [20:55:55]Write to MH i2c: F0 00 00 F9 0B F3 [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 09 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: F0 09 00 F9 0B 00 DD 5F C2 66 27 15 C2 66 C4 [20:55:55]GetLastDocTimeStamp 1724014154 [20:55:55]current date 1724014557 [20:55:55]FM_GetShiftState [20:55:55]SAM_PROTO_GetShiftState [20:55:55]wFMCommunicate request_size=4 [20:55:55]MH_SAM_APDU [20:55:55]CAPDU: 80 13 01 00 [20:55:55]Write to MH i2c: E2 08 00 FA 0B 80 13 01 00 00 00 00 00 82 [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:55]Read from MH i2c: E2 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: E2 0E 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: E2 0E 00 FA 0B 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 9F [20:55:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:55:55]wFMCommunicate OK [20:55:55]SAM_PROTO_GetShiftState done [20:55:55]FM_GetShiftState done [20:55:55]opened in 1723939759 [20:55:55]opened+sec_in_day 1724026159 [20:55:55]quantity*price = 15500 [20:55:55]sum+1 = 15501 [20:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 130 18.08.2024 20:55 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49864 ФПД: 270293518290600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49864&fm=270293518290600&tin=02508201610067®Number=0000000000092546&sum=15500 0 [20:55:56]StoreToDocumentArchive [20:55:56]shift 466 fd 49864 [20:55:56]save to /storage/0466/doc_00049864 [20:55:56]save last doc name /storage/0466/doc_00049864 to /storage/kkm_last_doc_name [20:55:56]save OK [20:55:56]Clear old archive folders... [20:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:55:56]tlvbuf is 00FDA700 [20:55:56]SAM_PROTO_ClearQueue [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 09 00 00 [20:55:56]Write to MH i2c: E2 08 00 07 0C 80 09 00 00 00 00 00 00 85 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_ClearQueue done [20:55:56]KKMCreateOFDPacket [20:55:56]OFDProtocolAddRootSTLVToBuf [20:55:56]FM_MakeSignedData [20:55:56]FM_MakeSignedData [20:55:56]SAM_PROTO_SignData [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 01 02 [20:55:56]Write to MH i2c: E2 08 00 08 0C 80 0D 01 02 00 00 00 00 8D [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=255 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 5F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [20:55:56]Write to MH i2c: E2 02 01 09 0C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 5F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 94 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=46 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C2 00 00 35 04 06 00 F5 D4 9D 24 8E A8 [20:55:56]Write to MH i2c: E2 31 00 0A 0C 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C2 00 00 35 04 06 00 F5 D4 9D 24 8E A8 00 00 5F [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [20:55:56]RAPDU: 90 00 [20:55:56]wFMCommunicate OK [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 0D 03 02 [20:55:56]Write to MH i2c: E2 08 00 0B 0C 80 0D 03 02 00 00 00 00 92 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0B 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0B 00 0B 0C 00 ED C9 3F 61 E9 EF 4C 1F 90 00 2C [20:55:56]RAPDU: ED C9 3F 61 E9 EF 4C 1F 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_SignData done [20:55:56]FM_MakeSignedData done [20:55:56]CreateOFDProtocolMessage [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 11 00 00 [20:55:56]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 17 00 [20:55:56]MH_I2C_Read... [20:55:56]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 38 30 30 90 00 DD [20:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:55:56]wFMCommunicate OK [20:55:56]CreateOFDProtocolMessage done [20:55:56]OFDSenderStorePacket 49864 [20:55:56]StoreOFDPacket docnum=49864 [20:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 A8 97 2B 01 99 C1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 5F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C2 00 00 35 04 06 00 F5 D4 9D 24 8E A8 ED C9 3F 61 E9 EF 4C 1F [20:55:56]CheckFolder [20:55:56]dirname=/storage/ofd_packets [20:55:56]CheckFolder done [20:55:56]ProducePacketName [20:55:56]name=ofd_packets/00049864 [20:55:56]NVStorageSaveData ofd_packets/00049864 [20:55:56]File name is /storage/ofd_packets/00049864 [20:55:56]Write 337 bytes [20:55:56]NVStorageSaveData done [20:55:56]OFDSenderStorePacket done [20:55:56]KKMCreateOFDPacket done [20:55:56]NVStorageSaveData kkm_last_timestamp [20:55:56]File name is /storage/kkm_last_timestamp [20:55:56]Write 4 bytes [20:55:56]NVStorageSaveData done [20:55:56]ExternCall_PrintAddStr [20:55:56]wPrintStart [20:55:56]Write to MH i2c: 01 00 00 0D 0C 19 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: 01 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: 01 07 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 FF 0F 2E [20:55:56]RasterBufferAndPrint [20:55:56]line Счет N : (3)190039 [20:55:56]line ИНН: 02508201610067 [20:55:56]line Контрольно-Кассовый Чек [20:55:56]line ПРОДАЖА [20:55:56]line Товар: 5449000176448 [20:55:56]line Сок Piko Pulpy апельсин ПЭТ 1л [20:55:56]line 1.000 * 155.00 [20:55:56]line = 155.00 [20:55:56]line НДС 12% НСП 1% [20:55:56]line > о реализуемом товаре [20:55:56]line ИТОГО: 155.00 [20:55:56]line НСП 1% : 1.37 [20:55:56]line НДС 12% : 16.46 [20:55:56]line Наличными: 155.00 [20:55:56]line Безнал.: 0.00 [20:55:56]line Место: АЗС № 95 "Партнер Нефть" [20:55:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:55:56]line СНО: Общий режим [20:55:57]line Чек 130 18.08.2024 20:55 [20:55:57]line Смена: 466 ФФД: 1.0 [20:55:57]line ЗНМ: 0300000078 [20:55:57]line РНМ: 0000000000092546 [20:55:57]line Версия ККМ: 001 [20:55:57]line ФМ: 0000000000871800 [20:55:57]line ФД: 49864 [20:55:57]line ФПД: 270293518290600 [20:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49864&fm=270293518290600&tin=02508201610067®Number=0000000000092546&sum=15500 [20:55:57]line 0 [20:55:57]OFD Sender: Processing packet 49864 [packets to send 21, broken 20] [20:55:57]ProducePacketName [20:55:57]name=ofd_packets/00049864 [20:55:57]OFD Sender: To server: pG, [20:55:57]CommunicateWithHost lk.salyk.kg:30040 [20:55:57]ConnectInit lk.salyk.kg [20:55:57]written 0, free lines is 4095 [20:55:57]Connected sock=10 [20:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 A8 97 2B 01 99 C1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DD 5F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C8 C2 00 00 35 04 06 00 F5 D4 9D 24 8E A8 ED C9 3F 61 E9 EF 4C 1F [20:55:57]Write to MH i2c: 01 00 00 36 0C 42 [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: 01 07 00 36 0C 00 00 00 00 00 D2 0C 27 [20:55:57]RasterBufferAndPrint [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]line [20:55:57]written 0, free lines is 3286 [20:55:57]MH_Cut [20:55:57]Write to MH i2c: D1 01 00 3D 0C 01 1B [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 01 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: D1 01 00 3D 0C 00 1A [20:55:57]Write to MH i2c: 01 00 00 3E 0C 4A [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4B 81 47 00 2B 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 38 30 30 10 04 04 00 C8 C2 00 00 F4 03 04 00 51 0A C2 66 B6 04 01 00 00 7E 57 8D 69 C4 C3 50 18 [20:55:57]CommunicateWithHost err = 0 [20:55:57]CheckOFDResponse [20:55:57]1017 (14) - 77093643461234 [20:55:57]1041 (16) - 0000000000871800 [20:55:57]1040 (4) - 49864 [20:55:57]1012 (4) - 18.08.2024 14:50 [20:55:57]1206 (1) - 0 [20:55:57]OFD Sender: Remove packet 49864 [20:55:57]ProducePacketName [20:55:57]name=ofd_packets/00049864 [20:55:57]NVStorageDeleteData [20:55:58]OFD Sender: No OFD packet to send [20:55:58]*** Cut start [20:55:58]*** Purtial cut [20:55:58]*** CUTSNS_PIN = 0 [20:55:58]*** Stage 1: CUTSNS_PIN = 1 [20:56:00]Read from MH i2c: 01 [20:56:00]MH_I2C_Read... [20:56:00]*** Stop cut motor [20:56:00]*** Cut end [20:56:00]Read from MH i2c: 01 07 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: 01 07 00 3E 0C 00 00 00 00 00 FF 0F 5F [20:56:00]process_action close_receipt done [20:56:00]requested_data is exist [20:56:00]produce_requested_data [20:56:00]requested_item fm.sn is exist - process it [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 11 00 00 [20:56:00]Write to MH i2c: E2 08 00 3F 0C 80 11 00 00 00 00 00 00 C5 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 17 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 17 00 3F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 10 [20:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:56:00]wFMCommunicate OK [20:56:00]requested_item fd.num is exist - process it [20:56:00]SAM_PROTO_GetFieldsCounters [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 13 00 00 [20:56:00]Write to MH i2c: E2 08 00 40 0C 80 13 00 00 00 00 00 00 C8 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 62 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 62 00 40 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:00]wFMCommunicate OK [20:56:00]SAM_PROTO_GetFieldsCounters done [20:56:00]requested_item shift.num is exist - process it [20:56:00]requested_item shift.opened is exist - process it [20:56:00]req_shift_opened [20:56:00]FM_GetShiftState [20:56:00]SAM_PROTO_GetShiftState [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 13 01 00 [20:56:00]Write to MH i2c: E2 08 00 41 0C 80 13 01 00 00 00 00 00 CA [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 0E 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 0E 00 41 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 E7 [20:56:00]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:56:00]wFMCommunicate OK [20:56:00]SAM_PROTO_GetShiftState done [20:56:00]FM_GetShiftState done [20:56:00]req_shift_opened done [20:56:00]requested_item shift.open_date is exist - process it [20:56:00]req_shift_open_date [20:56:00]req_shift_open_date done [20:56:00]produce_requested_data done [20:56:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49864,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:56:00]process_action_free close_receipt [20:56:00]json_value_free [20:56:00]json_value_free done [20:56:00]process_json_proto returns [20:56:00]Send response to host [20:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49864,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:56:00]free response buf [20:56:00]execute_script done [20:56:00]execute_script returns [20:56:00]free content buf [20:56:00]Sock 7.Close socket [20:56:00]Sock 7.Thread stoped [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:47]accept exits with 9 [20:58:47]New connection [20:58:47]New thread 3067055460 created [20:58:47]Thread 3067198820 joined [20:58:47]Waiting for new connection... [20:58:47] Sock 9.Parse request [20:58:47]Sock 9.Check first char [20:58:47]Sock 9.First char is OK [20:58:47]request: POST /json_proto HTTP/1.0 [20:58:47]Method: POST [20:58:47]URL: /json_proto [20:58:47]Method is POST - this is cgi request [20:58:47]url: /json_proto [20:58:47]query_string will be loaded in cgi processing [20:58:47]execute_cgi json_proto POST (null) [20:58:47]execute_cgi path=json_proto method=POST [20:58:47]POST find Content-Length [20:58:47]Host: 172.17.46.196:8080 [20:58:47]Content-Length: 651 [20:58:47]Content-Type: application/json [20:58:47] [20:58:47]POST finish read [20:58:47]Found Content-Length = 651 [20:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190040", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:47]execute_script... [20:58:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190040", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:47]POST & json_proto [20:58:47]process_json_proto [20:58:47]json parsed OK: [20:58:47]protocol is kg_v1.0 [20:58:47]action value=close_receipt [20:58:47]process_action close_receipt [20:58:47]cmd_close_receipt [20:58:47]MH_GetDate [20:58:47]Write to MH i2c: F0 00 00 42 0C 3D [20:58:47]Write i2c OK [20:58:47]MH_I2C_Read... [20:58:47]Read from MH i2c: F0 [20:58:47]MH_I2C_Read... [20:58:47]Read from MH i2c: F0 09 00 [20:58:47]MH_I2C_Read... [20:58:47]Read from MH i2c: F0 09 00 42 0C 00 89 60 C2 66 27 15 C2 66 BB [20:58:47]GetLastDocTimeStamp 1724014557 [20:58:47]current date 1724014729 [20:58:47]FM_GetShiftState [20:58:47]SAM_PROTO_GetShiftState [20:58:47]wFMCommunicate request_size=4 [20:58:47]MH_SAM_APDU [20:58:47]CAPDU: 80 13 01 00 [20:58:47]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [20:58:47]Write i2c OK [20:58:47]MH_I2C_Read... [20:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:47]Read from MH i2c: E2 [20:58:47]MH_I2C_Read... [20:58:47]Read from MH i2c: E2 0E 00 [20:58:47]MH_I2C_Read... [20:58:47]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 E9 [20:58:47]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:58:47]wFMCommunicate OK [20:58:47]SAM_PROTO_GetShiftState done [20:58:47]FM_GetShiftState done [20:58:47]opened in 1723939759 [20:58:47]opened+sec_in_day 1724026159 [20:58:47]quantity*price = 14100 [20:58:47]sum+1 = 14101 [20:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 131 18.08.2024 20:58 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49865 ФПД: 147716050745603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205849&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49865&fm=147716050745603&tin=02508201610067®Number=0000000000092546&sum=14100 0 [20:58:48]StoreToDocumentArchive [20:58:48]shift 466 fd 49865 [20:58:48]save to /storage/0466/doc_00049865 [20:58:48]save last doc name /storage/0466/doc_00049865 to /storage/kkm_last_doc_name [20:58:48]save OK [20:58:48]Clear old archive folders... [20:58:48]OFD Sender: No OFD packet to send [20:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:58:48]tlvbuf is 00F92630 [20:58:48]SAM_PROTO_ClearQueue [20:58:48]wFMCommunicate request_size=4 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 09 00 00 [20:58:48]Write to MH i2c: E2 08 00 50 0C 80 09 00 00 00 00 00 00 CE [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [20:58:48]RAPDU: 90 00 [20:58:48]wFMCommunicate OK [20:58:48]SAM_PROTO_ClearQueue done [20:58:48]KKMCreateOFDPacket [20:58:48]OFDProtocolAddRootSTLVToBuf [20:58:48]FM_MakeSignedData [20:58:48]FM_MakeSignedData [20:58:48]SAM_PROTO_SignData [20:58:48]wFMCommunicate request_size=4 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 0D 01 02 [20:58:48]Write to MH i2c: E2 08 00 51 0C 80 0D 01 02 00 00 00 00 D6 [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [20:58:48]RAPDU: 90 00 [20:58:48]wFMCommunicate OK [20:58:48]wFMCommunicate request_size=255 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 89 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [20:58:48]Write to MH i2c: E2 02 01 52 0C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 89 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 2E [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [20:58:48]RAPDU: 90 00 [20:58:48]wFMCommunicate OK [20:58:48]wFMCommunicate request_size=46 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C2 00 00 35 04 06 00 86 58 D2 BB 79 03 [20:58:48]Write to MH i2c: E2 31 00 53 0C 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C2 00 00 35 04 06 00 86 58 D2 BB 79 03 00 00 D0 [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [20:58:48]RAPDU: 90 00 [20:58:48]wFMCommunicate OK [20:58:48]wFMCommunicate request_size=4 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 0D 03 02 [20:58:48]Write to MH i2c: E2 08 00 54 0C 80 0D 03 02 00 00 00 00 DB [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 0B 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 0B 00 54 0C 00 2F B7 B2 DB F3 66 BD 86 90 00 EB [20:58:48]RAPDU: 2F B7 B2 DB F3 66 BD 86 90 00 [20:58:48]wFMCommunicate OK [20:58:48]SAM_PROTO_SignData done [20:58:48]FM_MakeSignedData done [20:58:48]CreateOFDProtocolMessage [20:58:48]wFMCommunicate request_size=4 [20:58:48]MH_SAM_APDU [20:58:48]CAPDU: 80 11 00 00 [20:58:48]Write to MH i2c: E2 08 00 55 0C 80 11 00 00 00 00 00 00 DB [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:48]Read from MH i2c: E2 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 17 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: E2 17 00 55 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [20:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:58:48]wFMCommunicate OK [20:58:48]CreateOFDProtocolMessage done [20:58:48]OFDSenderStorePacket 49865 [20:58:48]StoreOFDPacket docnum=49865 [20:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 12 1D 2B 01 9F 10 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 89 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C2 00 00 35 04 06 00 86 58 D2 BB 79 03 2F B7 B2 DB F3 66 BD 86 [20:58:48]CheckFolder [20:58:48]dirname=/storage/ofd_packets [20:58:48]CheckFolder done [20:58:48]ProducePacketName [20:58:48]name=ofd_packets/00049865 [20:58:48]NVStorageSaveData ofd_packets/00049865 [20:58:48]File name is /storage/ofd_packets/00049865 [20:58:48]Write 337 bytes [20:58:48]NVStorageSaveData done [20:58:48]OFDSenderStorePacket done [20:58:48]KKMCreateOFDPacket done [20:58:48]NVStorageSaveData kkm_last_timestamp [20:58:48]File name is /storage/kkm_last_timestamp [20:58:48]Write 4 bytes [20:58:48]NVStorageSaveData done [20:58:48]ExternCall_PrintAddStr [20:58:48]wPrintStart [20:58:48]Write to MH i2c: 01 00 00 56 0C 62 [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 07 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 07 00 56 0C 00 00 00 00 00 FF 0F 77 [20:58:48]RasterBufferAndPrint [20:58:48]line Счет N : (3)190040 [20:58:48]line ИНН: 02508201610067 [20:58:48]line Контрольно-Кассовый Чек [20:58:48]line ПРОДАЖА [20:58:48]line Товар: 4870216765088 [20:58:48]line Нагр.Таб.Палоч. HEETS Purple Wave [20:58:48]line 1.000 * 141.00 [20:58:48]line = 141.00 [20:58:48]line НДС 12% НСП 1% [20:58:48]line > о реализуемом товаре [20:58:48]line ИТОГО: 141.00 [20:58:48]line НСП 1% : 1.25 [20:58:48]line НДС 12% : 14.97 [20:58:48]line Наличными: 141.00 [20:58:48]line Безнал.: 0.00 [20:58:48]line Место: АЗС № 95 "Партнер Нефть" [20:58:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:58:48]line СНО: Общий режим [20:58:48]line Чек 131 18.08.2024 20:58 [20:58:48]line Смена: 466 ФФД: 1.0 [20:58:48]line ЗНМ: 0300000078 [20:58:48]line РНМ: 0000000000092546 [20:58:48]line Версия ККМ: 001 [20:58:48]line ФМ: 0000000000871800 [20:58:48]line ФД: 49865 [20:58:48]line ФПД: 147716050745603 [20:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205849&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49865&fm=147716050745603&tin=02508201610067®Number=0000000000092546&sum=14100 [20:58:49]line 0 [20:58:49]OFD Sender: Processing packet 49865 [packets to send 21, broken 20] [20:58:49]ProducePacketName [20:58:49]name=ofd_packets/00049865 [20:58:49]OFD Sender: To server: pG, [20:58:49]CommunicateWithHost lk.salyk.kg:30040 [20:58:49]ConnectInit lk.salyk.kg [20:58:49]written 0, free lines is 4095 [20:58:49]Connected sock=10 [20:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 12 1D 2B 01 9F 10 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 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 89 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C2 00 00 35 04 06 00 86 58 D2 BB 79 03 2F B7 B2 DB F3 66 BD 86 [20:58:49]Write to MH i2c: 01 00 00 7F 0C 8B [20:58:49]Write i2c OK [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: 01 [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: 01 07 00 [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 CD 0C 6B [20:58:49]RasterBufferAndPrint [20:58:49]line [20:58:49]line [20:58:49]line [20:58:49]line [20:58:49]line [20:58:49]written 0, free lines is 3285 [20:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 82 81 47 00 6B 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 C9 C2 00 00 F4 03 04 00 FD 0A C2 66 B6 04 01 00 00 42 AB D7 F9 1E A0 6B CB [20:58:49]CommunicateWithHost err = 0 [20:58:49]CheckOFDResponse [20:58:49]1017 (14) - 77093643461234 [20:58:49]1041 (16) - 0000000000871800 [20:58:49]1040 (4) - 49865 [20:58:49]1012 (4) - 18.08.2024 14:53 [20:58:49]1206 (1) - 0 [20:58:49]OFD Sender: Remove packet 49865 [20:58:49]ProducePacketName [20:58:49]name=ofd_packets/00049865 [20:58:49]NVStorageDeleteData [20:58:49]MH_Cut [20:58:49]Write to MH i2c: D1 01 00 86 0C 01 64 [20:58:49]Write i2c OK [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: D1 [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: D1 01 00 [20:58:49]MH_I2C_Read... [20:58:49]Read from MH i2c: D1 01 00 86 0C 00 63 [20:58:49]Write to MH i2c: 01 00 00 87 0C 93 [20:58:49]Write i2c OK [20:58:49]MH_I2C_Read... [20:58:50]OFD Sender: No OFD packet to send [20:58:50]*** Cut start [20:58:50]*** Purtial cut [20:58:50]*** Stage 1: CUTSNS_PIN = 1 [20:58:50]Read from MH i2c: 01 [20:58:50]MH_I2C_Read... [20:58:50]*** Stop cut motor [20:58:50]*** Cut end [20:58:50]Read from MH i2c: 01 07 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: 01 07 00 87 0C 00 00 00 00 00 FF 0F A8 [20:58:50]process_action close_receipt done [20:58:50]requested_data is exist [20:58:50]produce_requested_data [20:58:50]requested_item fm.sn is exist - process it [20:58:50]wFMCommunicate request_size=4 [20:58:50]MH_SAM_APDU [20:58:50]CAPDU: 80 11 00 00 [20:58:50]Write to MH i2c: E2 08 00 88 0C 80 11 00 00 00 00 00 00 0E [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:50]Read from MH i2c: E2 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 17 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 17 00 88 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 59 [20:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:58:50]wFMCommunicate OK [20:58:50]requested_item fd.num is exist - process it [20:58:50]SAM_PROTO_GetFieldsCounters [20:58:50]wFMCommunicate request_size=4 [20:58:50]MH_SAM_APDU [20:58:50]CAPDU: 80 13 00 00 [20:58:50]Write to MH i2c: E2 08 00 89 0C 80 13 00 00 00 00 00 00 11 [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:50]Read from MH i2c: E2 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 62 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 62 00 89 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [20:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 C9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:50]wFMCommunicate OK [20:58:50]SAM_PROTO_GetFieldsCounters done [20:58:50]requested_item shift.num is exist - process it [20:58:50]requested_item shift.opened is exist - process it [20:58:50]req_shift_opened [20:58:50]FM_GetShiftState [20:58:50]SAM_PROTO_GetShiftState [20:58:50]wFMCommunicate request_size=4 [20:58:50]MH_SAM_APDU [20:58:50]CAPDU: 80 13 01 00 [20:58:50]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:50]Read from MH i2c: E2 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 0E 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 30 [20:58:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [20:58:50]wFMCommunicate OK [20:58:50]SAM_PROTO_GetShiftState done [20:58:50]FM_GetShiftState done [20:58:50]req_shift_opened done [20:58:50]requested_item shift.open_date is exist - process it [20:58:50]req_shift_open_date [20:58:50]req_shift_open_date done [20:58:50]produce_requested_data done [20:58:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49865,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [20:58:50]process_action_free close_receipt [20:58:50]json_value_free [20:58:50]json_value_free done [20:58:50]process_json_proto returns [20:58:50]Send response to host [20:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49865,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [20:58:50]free response buf [20:58:50]execute_script done [20:58:50]execute_script returns [20:58:50]free content buf [20:58:50]Sock 9.Close socket [20:58:50]Sock 9.Thread stoped [20:58:52]int [20:58:52]Write to MH i2c: 01 00 00 8B 0C 97 [20:58:52]*** FLAG_PRN_KEY set [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 8B 0C 00 08 00 00 00 FF 0F B4 [20:58:52]state=0 [20:58:52]Key pressed [20:58:52]Feed [20:58:52]Write to MH i2c: D8 00 00 8C 0C 6F [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: D8 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: D8 01 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: D8 01 00 8C 0C 00 70 [20:58:52]int [20:58:52]Write to MH i2c: 01 00 00 8D 0C 99 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 8D 0C 00 48 00 00 00 3C 00 24 [20:58:52]state=2 [20:58:52]Key pressed [20:58:52]int [20:58:52]Write to MH i2c: 01 00 00 8E 0C 9A [20:58:52]*** FLAG_PRN_KEY reset [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 8E 0C 00 00 00 00 00 F9 0F A9 [20:58:52]state=2 [20:58:52]Stop feed [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:28]accept exits with 7 [21:00:28]New connection [21:00:28]New thread 3067198820 created [21:00:28]Thread 3067055460 joined [21:00:28]Waiting for new connection... [21:00:28] Sock 7.Parse request [21:00:28]Sock 7.Check first char [21:00:28]Sock 7.First char is OK [21:00:28]request: POST /json_proto HTTP/1.0 [21:00:28]Method: POST [21:00:28]URL: /json_proto [21:00:28]Method is POST - this is cgi request [21:00:28]url: /json_proto [21:00:28]query_string will be loaded in cgi processing [21:00:28]execute_cgi json_proto POST (null) [21:00:28]execute_cgi path=json_proto method=POST [21:00:28]POST find Content-Length [21:00:28]Host: 172.17.46.196:8080 [21:00:28]Content-Length: 1144 [21:00:28]Content-Type: application/json [21:00:28] [21:00:28]POST finish read [21:00:28]Found Content-Length = 1144 [21:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190041", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:28]execute_script... [21:00:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190041", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:28]POST & json_proto [21:00:28]process_json_proto [21:00:28]json parsed OK: [21:00:28]protocol is kg_v1.0 [21:00:28]action value=close_receipt [21:00:28]process_action close_receipt [21:00:28]cmd_close_receipt [21:00:28]MH_GetDate [21:00:28]Write to MH i2c: F0 00 00 8F 0C 8A [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 09 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: F0 09 00 8F 0C 00 EE 60 C2 66 27 15 C2 66 6D [21:00:28]GetLastDocTimeStamp 1724014729 [21:00:28]current date 1724014830 [21:00:28]FM_GetShiftState [21:00:28]SAM_PROTO_GetShiftState [21:00:28]wFMCommunicate request_size=4 [21:00:28]MH_SAM_APDU [21:00:28]CAPDU: 80 13 01 00 [21:00:28]Write to MH i2c: E2 08 00 90 0C 80 13 01 00 00 00 00 00 19 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0E 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0E 00 90 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 36 [21:00:28]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:00:28]wFMCommunicate OK [21:00:28]SAM_PROTO_GetShiftState done [21:00:28]FM_GetShiftState done [21:00:28]opened in 1723939759 [21:00:28]opened+sec_in_day 1724026159 [21:00:28]quantity*price = 14500 [21:00:28]sum+1 = 14501 [21:00:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002085444 Водка Белое золото 0,24л 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039440011 Чай черный 200 мл 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.40 НДС 12% : 40.89 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 132 18.08.2024 21:00 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49866 ФПД: 100783055965190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210030&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49866&fm=100783055965190&tin=02508201610067®Number=0000000000092546&sum=38500 0 [21:00:29]StoreToDocumentArchive [21:00:29]shift 466 fd 49866 [21:00:29]save to /storage/0466/doc_00049866 [21:00:29]save last doc name /storage/0466/doc_00049866 to /storage/kkm_last_doc_name [21:00:29]save OK [21:00:29]Clear old archive folders... [21:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=478 [21:00:29]tlvbuf is 00F923B0 [21:00:29]SAM_PROTO_ClearQueue [21:00:29]wFMCommunicate request_size=4 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 09 00 00 [21:00:29]Write to MH i2c: E2 08 00 9D 0C 80 09 00 00 00 00 00 00 1B [21:00:29]Write i2c OK [21:00:29]MH_I2C_Read... [21:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:29]Read from MH i2c: E2 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [21:00:29]RAPDU: 90 00 [21:00:29]wFMCommunicate OK [21:00:29]SAM_PROTO_ClearQueue done [21:00:29]KKMCreateOFDPacket [21:00:29]OFDProtocolAddRootSTLVToBuf [21:00:29]FM_MakeSignedData [21:00:29]FM_MakeSignedData [21:00:29]SAM_PROTO_SignData [21:00:29]wFMCommunicate request_size=4 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 0D 01 02 [21:00:29]Write to MH i2c: E2 08 00 9E 0C 80 0D 01 02 00 00 00 00 23 [21:00:29]Write i2c OK [21:00:29]MH_I2C_Read... [21:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:29]Read from MH i2c: E2 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 [21:00:29]MH_I2C_Read... [21:00:29]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [21:00:29]RAPDU: 90 00 [21:00:29]wFMCommunicate OK [21:00:29]wFMCommunicate request_size=255 [21:00:29]MH_SAM_APDU [21:00:29]CAPDU: 80 0D 02 02 FA 03 00 DE 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 [21:00:29]Write to MH i2c: E2 02 01 9F 0C 80 0D 02 02 FA 00 03 00 DE 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 00 00 A6 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]OFD Sender: No OFD packet to send [21:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [21:00:30]RAPDU: 90 00 [21:00:30]wFMCommunicate OK [21:00:30]wFMCommunicate request_size=237 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 0D 02 02 E8 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 EE 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C2 00 00 35 04 06 00 5B A9 62 40 0C 06 [21:00:30]Write to MH i2c: E2 F0 00 A0 0C 80 0D 02 02 E8 00 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 EE 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C2 00 00 35 04 06 00 5B A9 62 40 0C 06 00 00 B3 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [21:00:30]RAPDU: 90 00 [21:00:30]wFMCommunicate OK [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 0D 03 02 [21:00:30]Write to MH i2c: E2 08 00 A1 0C 80 0D 03 02 00 00 00 00 28 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0B 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0B 00 A1 0C 00 AA BE 4F F1 44 B4 02 4B 90 00 16 [21:00:30]RAPDU: AA BE 4F F1 44 B4 02 4B 90 00 [21:00:30]wFMCommunicate OK [21:00:30]SAM_PROTO_SignData done [21:00:30]FM_MakeSignedData done [21:00:30]CreateOFDProtocolMessage [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 11 00 00 [21:00:30]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 17 00 [21:00:30]MH_I2C_Read... [21:00:30]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 38 30 30 90 00 73 [21:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:00:30]wFMCommunicate OK [21:00:30]CreateOFDProtocolMessage done [21:00:30]OFDSenderStorePacket 49866 [21:00:30]StoreOFDPacket docnum=49866 [21:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F2 01 00 00 C1 21 EA 01 C9 47 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 EE 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C2 00 00 35 04 06 00 5B A9 62 40 0C 06 AA BE 4F F1 44 B4 02 4B [21:00:30]CheckFolder [21:00:30]dirname=/storage/ofd_packets [21:00:30]CheckFolder done [21:00:30]ProducePacketName [21:00:30]name=ofd_packets/00049866 [21:00:30]NVStorageSaveData ofd_packets/00049866 [21:00:30]File name is /storage/ofd_packets/00049866 [21:00:30]Write 528 bytes [21:00:30]NVStorageSaveData done [21:00:30]OFDSenderStorePacket done [21:00:30]KKMCreateOFDPacket done [21:00:30]NVStorageSaveData kkm_last_timestamp [21:00:30]File name is /storage/kkm_last_timestamp [21:00:30]Write 4 bytes [21:00:30]NVStorageSaveData done [21:00:30]ExternCall_PrintAddStr [21:00:30]wPrintStart [21:00:30]Write to MH i2c: 01 00 00 A3 0C AF [21:00:30]OFD Sender: Processing packet 49866 [packets to send 21, broken 20] [21:00:30]ProducePacketName [21:00:30]name=ofd_packets/00049866 [21:00:30]OFD Sender: To server: pG, [21:00:30]CommunicateWithHost lk.salyk.kg:30040 [21:00:30]ConnectInit lk.salyk.kg [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 07 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 FF 0F C4 [21:00:30]RasterBufferAndPrint [21:00:30]line Счет N : (3)190041 [21:00:30]line ИНН: 02508201610067 [21:00:30]line Контрольно-Кассовый Чек [21:00:30]line ПРОДАЖА [21:00:30]line Товар: 4700001610012 [21:00:30]line Пиво Арпа 0,5л [21:00:30]line 1.000 * 145.00 [21:00:30]line = 145.00 [21:00:30]line НДС 12% НСП 1% [21:00:30]line > о реализуемом товаре [21:00:30]line Товар: 4700002085444 [21:00:30]line Водка Белое золото 0,24л [21:00:30]line 1.000 * 200.00 [21:00:30]line = 200.00 [21:00:30]line НДС 12% НСП 1% [21:00:30]line > о реализуемом товаре [21:00:30]line Товар: 2000039440011 [21:00:30]line Чай черный 200 мл [21:00:30]line 1.000 * 40.00 [21:00:30]line = 40.00 [21:00:30]line НДС 12% НСП 1% [21:00:30]line > о реализуемом товаре [21:00:30]line ИТОГО: 385.00 [21:00:30]line НСП 1% : 3.40 [21:00:30]line НДС 12% : 40.89 [21:00:30]line Наличными: 385.00 [21:00:30]line Безнал.: 0.00 [21:00:30]line Место: АЗС № 95 "Партнер Нефть" [21:00:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:00:30]line СНО: Общий режим [21:00:30]line Чек 132 18.08.2024 21:00 [21:00:30]line Смена: 466 ФФД: 1.0 [21:00:30]line ЗНМ: 0300000078 [21:00:30]line РНМ: 0000000000092546 [21:00:30]line Версия ККМ: 001 [21:00:30]line ФМ: 0000000000871800 [21:00:30]line ФД: 49866 [21:00:30]line ФПД: 100783055965190 [21:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210030&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49866&fm=100783055965190&tin=02508201610067®Number=0000000000092546&sum=38500 [21:00:30]line 0 [21:00:30]written 0, free lines is 4095 [21:00:31]Write to MH i2c: 01 00 00 D7 0C E3 [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 07 00 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 32 0C 28 [21:00:31]RasterBufferAndPrint [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]line [21:00:31]written 0, free lines is 3128 [21:00:31]MH_Cut [21:00:31]Write to MH i2c: D1 01 00 DE 0C 01 BC [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 01 00 [21:00:31]MH_I2C_Read... [21:00:31]Read from MH i2c: D1 01 00 DE 0C 00 BB [21:00:31]Write to MH i2c: 01 00 00 DF 0C EB [21:00:31]Write i2c OK [21:00:31]MH_I2C_Read... [21:00:32]*** Cut start [21:00:32]*** Purtial cut [21:00:32]*** CUTSNS_PIN = 0 [21:00:32]*** Stage 1: CUTSNS_PIN = 1 [21:00:34]Read from MH i2c: 01 [21:00:34]MH_I2C_Read... [21:00:34]*** Stop cut motor [21:00:34]*** Cut end [21:00:34]Read from MH i2c: 01 07 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [21:00:34]process_action close_receipt done [21:00:34]requested_data is exist [21:00:34]produce_requested_data [21:00:34]requested_item fm.sn is exist - process it [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 11 00 00 [21:00:34]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 17 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B1 [21:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:00:34]wFMCommunicate OK [21:00:34]requested_item fd.num is exist - process it [21:00:34]SAM_PROTO_GetFieldsCounters [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 13 00 00 [21:00:34]Write to MH i2c: E2 08 00 E1 0C 80 13 00 00 00 00 00 00 69 [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 62 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 62 00 E1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [21:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:34]wFMCommunicate OK [21:00:34]SAM_PROTO_GetFieldsCounters done [21:00:34]requested_item shift.num is exist - process it [21:00:34]requested_item shift.opened is exist - process it [21:00:34]req_shift_opened [21:00:34]FM_GetShiftState [21:00:34]SAM_PROTO_GetShiftState [21:00:34]wFMCommunicate request_size=4 [21:00:34]MH_SAM_APDU [21:00:34]CAPDU: 80 13 01 00 [21:00:34]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [21:00:34]Write i2c OK [21:00:34]MH_I2C_Read... [21:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:34]Read from MH i2c: E2 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 0E 00 [21:00:34]MH_I2C_Read... [21:00:34]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 88 [21:00:34]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:00:34]wFMCommunicate OK [21:00:34]SAM_PROTO_GetShiftState done [21:00:34]FM_GetShiftState done [21:00:34]req_shift_opened done [21:00:34]requested_item shift.open_date is exist - process it [21:00:34]req_shift_open_date [21:00:34]req_shift_open_date done [21:00:34]produce_requested_data done [21:00:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49866,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:00:34]process_action_free close_receipt [21:00:34]json_value_free [21:00:34]json_value_free done [21:00:34]process_json_proto returns [21:00:34]Send response to host [21:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49866,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:00:34]free response buf [21:00:34]execute_script done [21:00:34]execute_script returns [21:00:34]free content buf [21:00:34]Sock 7.Close socket [21:00:34]Sock 7.Thread stoped [21:01:48]accept exits with 9 [21:01:48]New connection [21:01:48]New thread 3067055460 created [21:01:48]Thread 3067198820 joined [21:01:48]Waiting for new connection... [21:01:48] Sock 9.Parse request [21:01:48]Sock 9.Check first char [21:01:48]Sock 9.First char is OK [21:01:48]request: POST /json_proto HTTP/1.0 [21:01:48]Method: POST [21:01:48]URL: /json_proto [21:01:48]Method is POST - this is cgi request [21:01:48]url: /json_proto [21:01:48]query_string will be loaded in cgi processing [21:01:48]execute_cgi json_proto POST (null) [21:01:48]execute_cgi path=json_proto method=POST [21:01:48]POST find Content-Length [21:01:48]Host: 172.17.46.196:8080 [21:01:48]Content-Length: 855 [21:01:48]Content-Type: application/json [21:01:48] [21:01:48]POST finish read [21:01:48]Found Content-Length = 855 [21:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190042", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:48]execute_script... [21:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190042", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:48]POST & json_proto [21:01:48]process_json_proto [21:01:48]json parsed OK: [21:01:48]protocol is kg_v1.0 [21:01:48]action value=close_receipt [21:01:48]process_action close_receipt [21:01:48]cmd_close_receipt [21:01:48]MH_GetDate [21:01:48]Write to MH i2c: F0 00 00 E3 0C DE [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: F0 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: F0 09 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: F0 09 00 E3 0C 00 3E 61 C2 66 27 15 C2 66 12 [21:01:48]GetLastDocTimeStamp 1724014830 [21:01:48]current date 1724014910 [21:01:48]FM_GetShiftState [21:01:48]SAM_PROTO_GetShiftState [21:01:48]wFMCommunicate request_size=4 [21:01:48]MH_SAM_APDU [21:01:48]CAPDU: 80 13 01 00 [21:01:48]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:48]Read from MH i2c: E2 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: E2 0E 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 8A [21:01:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:01:48]wFMCommunicate OK [21:01:48]SAM_PROTO_GetShiftState done [21:01:48]FM_GetShiftState done [21:01:48]opened in 1723939759 [21:01:48]opened+sec_in_day 1724026159 [21:01:48]quantity*price = 14000 [21:01:48]sum+1 = 14001 [21:01:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 291.00 НСП 1% : 2.58 НДС 12% : 30.90 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 133 18.08.2024 21:01 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49867 ФПД: 113227982268074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210150&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49867&fm=113227982268074&tin=02508201610067®Number=0000000000092546&sum=29100 0 [21:01:49]StoreToDocumentArchive [21:01:49]shift 466 fd 49867 [21:01:49]save to /storage/0466/doc_00049867 [21:01:49]save last doc name /storage/0466/doc_00049867 to /storage/kkm_last_doc_name [21:01:49]save OK [21:01:49]Clear old archive folders... [21:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=373 [21:01:49]tlvbuf is B6DE48A0 [21:01:49]SAM_PROTO_ClearQueue [21:01:49]wFMCommunicate request_size=4 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 09 00 00 [21:01:49]Write to MH i2c: E2 08 00 F1 0C 80 09 00 00 00 00 00 00 6F [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [21:01:49]RAPDU: 90 00 [21:01:49]wFMCommunicate OK [21:01:49]SAM_PROTO_ClearQueue done [21:01:49]KKMCreateOFDPacket [21:01:49]OFDProtocolAddRootSTLVToBuf [21:01:49]FM_MakeSignedData [21:01:49]FM_MakeSignedData [21:01:49]SAM_PROTO_SignData [21:01:49]wFMCommunicate request_size=4 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 0D 01 02 [21:01:49]Write to MH i2c: E2 08 00 F2 0C 80 0D 01 02 00 00 00 00 77 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [21:01:49]RAPDU: 90 00 [21:01:49]wFMCommunicate OK [21:01:49]wFMCommunicate request_size=255 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 [21:01:49]Write to MH i2c: E2 02 01 F3 0C 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 00 00 64 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [21:01:49]RAPDU: 90 00 [21:01:49]wFMCommunicate OK [21:01:49]wFMCommunicate request_size=132 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 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 3E 61 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C2 00 00 35 04 06 00 66 FA F1 A9 66 AA [21:01:49]Write to MH i2c: E2 87 00 F4 0C 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 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 3E 61 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C2 00 00 35 04 06 00 66 FA F1 A9 66 AA 00 00 9D [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [21:01:50]RAPDU: 90 00 [21:01:50]wFMCommunicate OK [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 0D 03 02 [21:01:50]Write to MH i2c: E2 08 00 F5 0C 80 0D 03 02 00 00 00 00 7C [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0B 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0B 00 F5 0C 00 40 E4 7E 1D 25 DE B6 23 90 00 18 [21:01:50]RAPDU: 40 E4 7E 1D 25 DE B6 23 90 00 [21:01:50]wFMCommunicate OK [21:01:50]SAM_PROTO_SignData done [21:01:50]FM_MakeSignedData done [21:01:50]CreateOFDProtocolMessage [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 11 00 00 [21:01:50]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [21:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:01:50]wFMCommunicate OK [21:01:50]CreateOFDProtocolMessage done [21:01:50]OFDSenderStorePacket 49867 [21:01:50]StoreOFDPacket docnum=49867 [21:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 95 B9 81 01 8B 8D 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 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 3E 61 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C2 00 00 35 04 06 00 66 FA F1 A9 66 AA 40 E4 7E 1D 25 DE B6 23 [21:01:50]CheckFolder [21:01:50]dirname=/storage/ofd_packets [21:01:50]CheckFolder done [21:01:50]ProducePacketName [21:01:50]name=ofd_packets/00049867 [21:01:50]NVStorageSaveData ofd_packets/00049867 [21:01:50]File name is /storage/ofd_packets/00049867 [21:01:50]Write 423 bytes [21:01:50]NVStorageSaveData done [21:01:50]OFDSenderStorePacket done [21:01:50]KKMCreateOFDPacket done [21:01:50]NVStorageSaveData kkm_last_timestamp [21:01:50]File name is /storage/kkm_last_timestamp [21:01:50]Write 4 bytes [21:01:50]NVStorageSaveData done [21:01:50]ExternCall_PrintAddStr [21:01:50]wPrintStart [21:01:50]Write to MH i2c: 01 00 00 F7 0C 03 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [21:01:50]RasterBufferAndPrint [21:01:50]line Счет N : (3)190042 [21:01:50]line ИНН: 02508201610067 [21:01:50]line Контрольно-Кассовый Чек [21:01:50]line ПРОДАЖА [21:01:50]line Товар: 47803008 [21:01:50]line Сигареты Winston XS Blue [21:01:50]line 1.000 * 140.00 [21:01:50]line = 140.00 [21:01:50]line НДС 12% НСП 1% [21:01:50]line > о реализуемом товаре [21:01:50]line Товар: 48741958 [21:01:50]line Сигареты Parliament Aqua Blue [21:01:50]line 1.000 * 151.00 [21:01:50]line = 151.00 [21:01:50]line НДС 12% НСП 1% [21:01:50]line > о реализуемом товаре [21:01:50]line ИТОГО: 291.00 [21:01:50]line НСП 1% : 2.58 [21:01:50]line НДС 12% : 30.90 [21:01:50]line Наличными: 291.00 [21:01:50]line Безнал.: 0.00 [21:01:50]line Место: АЗС № 95 "Партнер Нефть" [21:01:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:01:50]line СНО: Общий режим [21:01:50]line Чек 133 18.08.2024 21:01 [21:01:50]line Смена: 466 ФФД: 1.0 [21:01:50]line ЗНМ: 0300000078 [21:01:50]line РНМ: 0000000000092546 [21:01:50]line Версия ККМ: 001 [21:01:50]line ФМ: 0000000000871800 [21:01:50]line ФД: 49867 [21:01:50]line ФПД: 113227982268074 [21:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210150&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49867&fm=113227982268074&tin=02508201610067®Number=0000000000092546&sum=29100 [21:01:50]line 0 [21:01:50]written 0, free lines is 4095 [21:01:50]Write to MH i2c: 01 00 00 26 0D 33 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 61 0C A7 [21:01:50]RasterBufferAndPrint [21:01:50]line [21:01:50]line [21:01:50]line [21:01:50]line [21:01:50]line [21:01:50]written 0, free lines is 3176 [21:01:50]MH_Cut [21:01:50]Write to MH i2c: D1 01 00 2D 0D 01 0C [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: D1 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: D1 01 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: D1 01 00 2D 0D 00 0B [21:01:50]Write to MH i2c: 01 00 00 2E 0D 3B [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:51]*** Cut start [21:01:51]*** Purtial cut [21:01:51]*** Stage 1: CUTSNS_PIN = 1 [21:01:52]Read from MH i2c: 01 [21:01:52]MH_I2C_Read... [21:01:52]*** Stop cut motor [21:01:52]*** Cut end [21:01:52]Read from MH i2c: 01 07 00 [21:01:52]MH_I2C_Read... [21:01:52]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [21:01:52]process_action close_receipt done [21:01:52]requested_data is exist [21:01:52]produce_requested_data [21:01:52]requested_item fm.sn is exist - process it [21:01:52]wFMCommunicate request_size=4 [21:01:52]MH_SAM_APDU [21:01:52]CAPDU: 80 11 00 00 [21:01:52]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [21:01:52]Write i2c OK [21:01:52]MH_I2C_Read... [21:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:52]Read from MH i2c: E2 [21:01:52]MH_I2C_Read... [21:01:52]Read from MH i2c: E2 17 00 [21:01:52]MH_I2C_Read... [21:01:52]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 38 30 30 90 00 01 [21:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:01:52]wFMCommunicate OK [21:01:52]requested_item fd.num is exist - process it [21:01:52]SAM_PROTO_GetFieldsCounters [21:01:52]wFMCommunicate request_size=4 [21:01:52]MH_SAM_APDU [21:01:52]CAPDU: 80 13 00 00 [21:01:52]Write to MH i2c: E2 08 00 30 0D 80 13 00 00 00 00 00 00 B9 [21:01:52]Write i2c OK [21:01:52]MH_I2C_Read... [21:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:52]Read from MH i2c: E2 [21:01:52]MH_I2C_Read... [21:01:52]Read from MH i2c: E2 62 00 [21:01:52]MH_I2C_Read... [21:01:52]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [21:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:52]wFMCommunicate OK [21:01:52]SAM_PROTO_GetFieldsCounters done [21:01:52]requested_item shift.num is exist - process it [21:01:52]requested_item shift.opened is exist - process it [21:01:52]req_shift_opened [21:01:52]FM_GetShiftState [21:01:52]SAM_PROTO_GetShiftState [21:01:52]wFMCommunicate request_size=4 [21:01:52]MH_SAM_APDU [21:01:52]CAPDU: 80 13 01 00 [21:01:52]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [21:01:52]Write i2c OK [21:01:52]MH_I2C_Read... [21:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:52]Read from MH i2c: E2 [21:01:52]MH_I2C_Read... [21:01:52]Read from MH i2c: E2 0E 00 [21:01:52]MH_I2C_Read... [21:01:52]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D8 [21:01:52]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:01:52]wFMCommunicate OK [21:01:52]SAM_PROTO_GetShiftState done [21:01:52]FM_GetShiftState done [21:01:52]req_shift_opened done [21:01:52]requested_item shift.open_date is exist - process it [21:01:52]req_shift_open_date [21:01:52]req_shift_open_date done [21:01:52]produce_requested_data done [21:01:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49867,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:01:52]process_action_free close_receipt [21:01:52]json_value_free [21:01:52]json_value_free done [21:01:52]process_json_proto returns [21:01:52]Send response to host [21:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49867,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:01:52]free response buf [21:01:52]execute_script done [21:01:52]execute_script returns [21:01:52]free content buf [21:01:52]Sock 9.Close socket [21:01:52]Sock 9.Thread stoped [21:02:44]ConnectInit Can't connect to host [21:02:44]CommunicateWithHost connect error [21:02:44]CommunicateWithHost err = -1 [21:02:44]OFD Sender: Server communicate error [21:02:44]OFD Sender: Processing packet 49866 [packets to send 22, broken 20] [21:02:44]ProducePacketName [21:02:44]name=ofd_packets/00049866 [21:02:44]OFD Sender: To server: pG, [21:02:44]CommunicateWithHost lk.salyk.kg:30040 [21:02:44]ConnectInit lk.salyk.kg [21:02:45]Connected sock=9 [21:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F2 01 00 00 C1 21 EA 01 C9 47 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 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 EE 60 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CA C2 00 00 35 04 06 00 5B A9 62 40 0C 06 AA BE 4F F1 44 B4 02 4B [21:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1C 7F 47 00 E6 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 38 30 30 10 04 04 00 CA C2 00 00 F4 03 04 00 E8 0B C2 66 B6 04 01 00 00 C5 89 F7 79 80 35 8F F8 [21:02:45]CommunicateWithHost err = 0 [21:02:45]CheckOFDResponse [21:02:45]1017 (14) - 77093643461234 [21:02:45]1041 (16) - 0000000000871800 [21:02:45]1040 (4) - 49866 [21:02:45]1012 (4) - 18.08.2024 14:57 [21:02:45]1206 (1) - 0 [21:02:45]OFD Sender: Remove packet 49866 [21:02:45]ProducePacketName [21:02:45]name=ofd_packets/00049866 [21:02:45]NVStorageDeleteData [21:02:45]OFD Sender: Processing packet 49867 [packets to send 21, broken 20] [21:02:45]ProducePacketName [21:02:45]name=ofd_packets/00049867 [21:02:45]OFD Sender: To server: pG, [21:02:45]CommunicateWithHost lk.salyk.kg:30040 [21:02:45]ConnectInit lk.salyk.kg [21:02:46]Connected sock=9 [21:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 89 01 00 00 95 B9 81 01 8B 8D 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 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 3E 61 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CB C2 00 00 35 04 06 00 66 FA F1 A9 66 AA 40 E4 7E 1D 25 DE B6 23 [21:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AF A6 47 00 A6 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 38 30 30 10 04 04 00 CB C2 00 00 F4 03 04 00 E9 0B C2 66 B6 04 01 00 00 E1 AE 5F 02 EA 8E 20 DF [21:02:46]CommunicateWithHost err = 0 [21:02:46]CheckOFDResponse [21:02:46]1017 (14) - 77093643461234 [21:02:46]1041 (16) - 0000000000871800 [21:02:46]1040 (4) - 49867 [21:02:46]1012 (4) - 18.08.2024 14:57 [21:02:46]1206 (1) - 0 [21:02:46]OFD Sender: Remove packet 49867 [21:02:46]ProducePacketName [21:02:46]name=ofd_packets/00049867 [21:02:46]NVStorageDeleteData [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:33]accept exits with 7 [21:07:33]New connection [21:07:33]New thread 3067198820 created [21:07:33]Thread 3067055460 joined [21:07:33]Waiting for new connection... [21:07:33] Sock 7.Parse request [21:07:33]Sock 7.Check first char [21:07:33]Sock 7.First char is OK [21:07:33]request: POST /json_proto HTTP/1.0 [21:07:33]Method: POST [21:07:33]URL: /json_proto [21:07:33]Method is POST - this is cgi request [21:07:33]url: /json_proto [21:07:33]query_string will be loaded in cgi processing [21:07:33]execute_cgi json_proto POST (null) [21:07:33]execute_cgi path=json_proto method=POST [21:07:33]POST find Content-Length [21:07:33]Host: 172.17.46.196:8080 [21:07:33]Content-Length: 646 [21:07:33]Content-Type: application/json [21:07:33] [21:07:33]POST finish read [21:07:33]Found Content-Length = 646 [21:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190043", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:33]execute_script... [21:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190043", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:33]POST & json_proto [21:07:33]process_json_proto [21:07:33]json parsed OK: [21:07:33]protocol is kg_v1.0 [21:07:33]action value=close_receipt [21:07:33]process_action close_receipt [21:07:33]cmd_close_receipt [21:07:33]MH_GetDate [21:07:33]Write to MH i2c: F0 00 00 32 0D 2E [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 09 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: F0 09 00 32 0D 00 98 62 C2 66 27 15 C2 66 BD [21:07:33]GetLastDocTimeStamp 1724014910 [21:07:33]current date 1724015256 [21:07:33]FM_GetShiftState [21:07:33]SAM_PROTO_GetShiftState [21:07:33]wFMCommunicate request_size=4 [21:07:33]MH_SAM_APDU [21:07:33]CAPDU: 80 13 01 00 [21:07:33]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 DA [21:07:34]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:07:34]wFMCommunicate OK [21:07:34]SAM_PROTO_GetShiftState done [21:07:34]FM_GetShiftState done [21:07:34]opened in 1723939759 [21:07:34]opened+sec_in_day 1724026159 [21:07:34]quantity*price = 13000 [21:07:34]sum+1 = 13001 [21:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 134 18.08.2024 21:07 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49868 ФПД: 234342486049353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210736&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49868&fm=234342486049353&tin=02508201610067®Number=0000000000092546&sum=13000 0 [21:07:35]StoreToDocumentArchive [21:07:35]shift 466 fd 49868 [21:07:35]save to /storage/0466/doc_00049868 [21:07:35]save last doc name /storage/0466/doc_00049868 to /storage/kkm_last_doc_name [21:07:35]save OK [21:07:35]Clear old archive folders... [21:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:07:35]tlvbuf is 00FA0B90 [21:07:35]SAM_PROTO_ClearQueue [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 09 00 00 [21:07:35]Write to MH i2c: E2 08 00 40 0D 80 09 00 00 00 00 00 00 BF [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_ClearQueue done [21:07:35]KKMCreateOFDPacket [21:07:35]OFDProtocolAddRootSTLVToBuf [21:07:35]FM_MakeSignedData [21:07:35]FM_MakeSignedData [21:07:35]SAM_PROTO_SignData [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 01 02 [21:07:35]Write to MH i2c: E2 08 00 41 0D 80 0D 01 02 00 00 00 00 C7 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=255 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 62 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [21:07:35]Write to MH i2c: E2 02 01 42 0D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 62 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 52 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=41 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C2 00 00 35 04 06 00 D5 22 1C A3 02 49 [21:07:35]Write to MH i2c: E2 2C 00 43 0D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C2 00 00 35 04 06 00 D5 22 1C A3 02 49 00 00 20 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 03 02 [21:07:35]Write to MH i2c: E2 08 00 44 0D 80 0D 03 02 00 00 00 00 CC [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0B 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 0B 00 44 0D 00 96 B1 E7 82 FF D0 35 6F 90 00 F0 [21:07:35]RAPDU: 96 B1 E7 82 FF D0 35 6F 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_SignData done [21:07:35]FM_MakeSignedData done [21:07:35]CreateOFDProtocolMessage [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 11 00 00 [21:07:35]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 17 00 [21:07:35]MH_I2C_Read... [21:07:35]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 38 30 30 90 00 17 [21:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:07:35]wFMCommunicate OK [21:07:35]CreateOFDProtocolMessage done [21:07:35]OFDSenderStorePacket 49868 [21:07:35]StoreOFDPacket docnum=49868 [21:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 51 07 26 01 C2 5A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 62 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C2 00 00 35 04 06 00 D5 22 1C A3 02 49 96 B1 E7 82 FF D0 35 6F [21:07:35]CheckFolder [21:07:35]dirname=/storage/ofd_packets [21:07:35]CheckFolder done [21:07:35]ProducePacketName [21:07:35]name=ofd_packets/00049868 [21:07:35]NVStorageSaveData ofd_packets/00049868 [21:07:35]File name is /storage/ofd_packets/00049868 [21:07:35]Write 332 bytes [21:07:35]NVStorageSaveData done [21:07:35]OFDSenderStorePacket done [21:07:35]KKMCreateOFDPacket done [21:07:35]NVStorageSaveData kkm_last_timestamp [21:07:35]File name is /storage/kkm_last_timestamp [21:07:35]Write 4 bytes [21:07:35]NVStorageSaveData done [21:07:35]ExternCall_PrintAddStr [21:07:35]wPrintStart [21:07:35]Write to MH i2c: 01 00 00 46 0D 53 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [21:07:35]RasterBufferAndPrint [21:07:35]line Счет N : (3)190043 [21:07:35]line ИНН: 02508201610067 [21:07:35]line Контрольно-Кассовый Чек [21:07:35]line ПРОДАЖА [21:07:35]line Товар: 2000036220012 [21:07:35]line Кофе Капучино XL(GABB TRADE) [21:07:35]line 1.000 * 130.00 [21:07:35]line = 130.00 [21:07:35]line НДС 12% НСП 1% [21:07:35]line > о реализуемом товаре [21:07:35]line ИТОГО: 130.00 [21:07:35]line НСП 1% : 1.15 [21:07:35]line НДС 12% : 13.80 [21:07:35]line Наличными: 130.00 [21:07:35]line Безнал.: 0.00 [21:07:35]line Место: АЗС № 95 "Партнер Нефть" [21:07:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:07:35]line СНО: Общий режим [21:07:35]line Чек 134 18.08.2024 21:07 [21:07:35]line Смена: 466 ФФД: 1.0 [21:07:35]line ЗНМ: 0300000078 [21:07:35]line РНМ: 0000000000092546 [21:07:35]line Версия ККМ: 001 [21:07:35]line ФМ: 0000000000871800 [21:07:35]line ФД: 49868 [21:07:35]line ФПД: 234342486049353 [21:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210736&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49868&fm=234342486049353&tin=02508201610067®Number=0000000000092546&sum=13000 [21:07:36]line 0 [21:07:36]OFD Sender: Processing packet 49868 [packets to send 21, broken 20] [21:07:36]ProducePacketName [21:07:36]name=ofd_packets/00049868 [21:07:36]OFD Sender: To server: pG, [21:07:36]CommunicateWithHost lk.salyk.kg:30040 [21:07:36]ConnectInit lk.salyk.kg [21:07:36]written 0, free lines is 4095 [21:07:36]Connected sock=10 [21:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 51 07 26 01 C2 5A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 62 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CC C2 00 00 35 04 06 00 D5 22 1C A3 02 49 96 B1 E7 82 FF D0 35 6F [21:07:36]Write to MH i2c: 01 00 00 6F 0D 7C [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 D4 0C 63 [21:07:36]RasterBufferAndPrint [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]written 0, free lines is 3289 [21:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 72 47 00 57 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 38 30 30 10 04 04 00 CC C2 00 00 F4 03 04 00 0C 0D C2 66 B6 04 01 00 00 2A B7 BF 13 F9 FF 8C D6 [21:07:36]CommunicateWithHost err = 0 [21:07:36]CheckOFDResponse [21:07:36]1017 (14) - 77093643461234 [21:07:36]1041 (16) - 0000000000871800 [21:07:36]1040 (4) - 49868 [21:07:36]1012 (4) - 18.08.2024 15:02 [21:07:36]1206 (1) - 0 [21:07:36]OFD Sender: Remove packet 49868 [21:07:36]ProducePacketName [21:07:36]name=ofd_packets/00049868 [21:07:36]NVStorageDeleteData [21:07:36]MH_Cut [21:07:36]Write to MH i2c: D1 01 00 76 0D 01 55 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 01 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 01 00 76 0D 00 54 [21:07:36]Write to MH i2c: 01 00 00 77 0D 84 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]OFD Sender: No OFD packet to send [21:07:37]*** Cut start [21:07:37]*** Purtial cut [21:07:37]*** CUTSNS_PIN = 0 [21:07:37]*** Stage 1: CUTSNS_PIN = 1 [21:07:39]Read from MH i2c: 01 [21:07:39]MH_I2C_Read... [21:07:39]*** Stop cut motor [21:07:39]*** Cut end [21:07:39]Read from MH i2c: 01 07 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FF 0F 99 [21:07:39]process_action close_receipt done [21:07:39]requested_data is exist [21:07:39]produce_requested_data [21:07:39]requested_item fm.sn is exist - process it [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 11 00 00 [21:07:39]Write to MH i2c: E2 08 00 78 0D 80 11 00 00 00 00 00 00 FF [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 17 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 17 00 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [21:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:07:39]wFMCommunicate OK [21:07:39]requested_item fd.num is exist - process it [21:07:39]SAM_PROTO_GetFieldsCounters [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 13 00 00 [21:07:39]Write to MH i2c: E2 08 00 79 0D 80 13 00 00 00 00 00 00 02 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 62 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 62 00 79 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [21:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:39]wFMCommunicate OK [21:07:39]SAM_PROTO_GetFieldsCounters done [21:07:39]requested_item shift.num is exist - process it [21:07:39]requested_item shift.opened is exist - process it [21:07:39]req_shift_opened [21:07:39]FM_GetShiftState [21:07:39]SAM_PROTO_GetShiftState [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 13 01 00 [21:07:39]Write to MH i2c: E2 08 00 7A 0D 80 13 01 00 00 00 00 00 04 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 7A 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 21 [21:07:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:07:39]wFMCommunicate OK [21:07:39]SAM_PROTO_GetShiftState done [21:07:39]FM_GetShiftState done [21:07:39]req_shift_opened done [21:07:39]requested_item shift.open_date is exist - process it [21:07:39]req_shift_open_date [21:07:39]req_shift_open_date done [21:07:39]produce_requested_data done [21:07:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49868,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:07:39]process_action_free close_receipt [21:07:39]json_value_free [21:07:39]json_value_free done [21:07:39]process_json_proto returns [21:07:39]Send response to host [21:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49868,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:07:39]free response buf [21:07:39]execute_script done [21:07:39]execute_script returns [21:07:39]free content buf [21:07:39]Sock 7.Close socket [21:07:39]Sock 7.Thread stoped [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]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:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:18]accept exits with 9 [21:10:18]New connection [21:10:18]New thread 3067055460 created [21:10:18]Thread 3067198820 joined [21:10:18]Waiting for new connection... [21:10:18] Sock 9.Parse request [21:10:18]Sock 9.Check first char [21:10:18]Sock 9.First char is OK [21:10:18]request: POST /json_proto HTTP/1.0 [21:10:18]Method: POST [21:10:18]URL: /json_proto [21:10:18]Method is POST - this is cgi request [21:10:18]url: /json_proto [21:10:18]query_string will be loaded in cgi processing [21:10:18]execute_cgi json_proto POST (null) [21:10:18]execute_cgi path=json_proto method=POST [21:10:18]POST find Content-Length [21:10:18]Host: 172.17.46.196:8080 [21:10:18]Content-Length: 1087 [21:10:18]Content-Type: application/json [21:10:18] [21:10:18]POST finish read [21:10:18]Found Content-Length = 1087 [21:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190044", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:18]execute_script... [21:10:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190044", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:18]POST & json_proto [21:10:18]process_json_proto [21:10:18]json parsed OK: [21:10:18]protocol is kg_v1.0 [21:10:18]action value=close_receipt [21:10:18]process_action close_receipt [21:10:18]cmd_close_receipt [21:10:18]MH_GetDate [21:10:18]Write to MH i2c: F0 00 00 7B 0D 77 [21:10:18]Write i2c OK [21:10:18]MH_I2C_Read... [21:10:18]Read from MH i2c: F0 [21:10:18]MH_I2C_Read... [21:10:18]Read from MH i2c: F0 09 00 [21:10:18]MH_I2C_Read... [21:10:18]Read from MH i2c: F0 09 00 7B 0D 00 3C 63 C2 66 27 15 C2 66 AB [21:10:18]GetLastDocTimeStamp 1724015256 [21:10:18]current date 1724015420 [21:10:18]FM_GetShiftState [21:10:18]SAM_PROTO_GetShiftState [21:10:18]wFMCommunicate request_size=4 [21:10:18]MH_SAM_APDU [21:10:18]CAPDU: 80 13 01 00 [21:10:18]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [21:10:18]Write i2c OK [21:10:18]MH_I2C_Read... [21:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:18]Read from MH i2c: E2 [21:10:18]MH_I2C_Read... [21:10:18]Read from MH i2c: E2 0E 00 [21:10:18]MH_I2C_Read... [21:10:18]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 23 [21:10:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:10:18]wFMCommunicate OK [21:10:18]SAM_PROTO_GetShiftState done [21:10:18]FM_GetShiftState done [21:10:18]opened in 1723939759 [21:10:18]opened+sec_in_day 1724026159 [21:10:18]quantity*price = 11100 [21:10:18]sum+1 = 11101 [21:10:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521261 Напиток MAXI чай 1,2 лесные ягоды 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 0.00 Безнал.: 236.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 135 18.08.2024 21:10 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49869 ФПД: 269962927016198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211020&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49869&fm=269962927016198&tin=02508201610067®Number=0000000000092546&sum=23600 0 [21:10:19]StoreToDocumentArchive [21:10:19]shift 466 fd 49869 [21:10:19]save to /storage/0466/doc_00049869 [21:10:19]save last doc name /storage/0466/doc_00049869 to /storage/kkm_last_doc_name [21:10:19]save OK [21:10:19]Clear old archive folders... [21:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=392 [21:10:19]tlvbuf is 00FF24D0 [21:10:19]SAM_PROTO_ClearQueue [21:10:19]wFMCommunicate request_size=4 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 09 00 00 [21:10:19]Write to MH i2c: E2 08 00 89 0D 80 09 00 00 00 00 00 00 08 [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:19]Read from MH i2c: E2 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [21:10:19]RAPDU: 90 00 [21:10:19]wFMCommunicate OK [21:10:19]SAM_PROTO_ClearQueue done [21:10:19]KKMCreateOFDPacket [21:10:19]OFDProtocolAddRootSTLVToBuf [21:10:19]FM_MakeSignedData [21:10:19]FM_MakeSignedData [21:10:19]SAM_PROTO_SignData [21:10:19]wFMCommunicate request_size=4 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 0D 01 02 [21:10:19]Write to MH i2c: E2 08 00 8A 0D 80 0D 01 02 00 00 00 00 10 [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:19]Read from MH i2c: E2 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [21:10:19]RAPDU: 90 00 [21:10:19]wFMCommunicate OK [21:10:19]wFMCommunicate request_size=255 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [21:10:19]Write to MH i2c: E2 02 01 8B 0D 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 24 [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:19]Read from MH i2c: E2 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [21:10:19]RAPDU: 90 00 [21:10:19]wFMCommunicate OK [21:10:19]wFMCommunicate request_size=151 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C2 00 00 35 04 06 00 F5 87 A4 5E 09 06 [21:10:19]Write to MH i2c: E2 9A 00 8C 0D 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C2 00 00 35 04 06 00 F5 87 A4 5E 09 06 00 00 CF [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:19]Read from MH i2c: E2 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [21:10:19]RAPDU: 90 00 [21:10:19]wFMCommunicate OK [21:10:19]wFMCommunicate request_size=4 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 0D 03 02 [21:10:19]Write to MH i2c: E2 08 00 8D 0D 80 0D 03 02 00 00 00 00 15 [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:19]Read from MH i2c: E2 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 0B 00 [21:10:19]MH_I2C_Read... [21:10:19]Read from MH i2c: E2 0B 00 8D 0D 00 2B ED 01 14 57 30 A9 E3 90 00 56 [21:10:19]RAPDU: 2B ED 01 14 57 30 A9 E3 90 00 [21:10:19]wFMCommunicate OK [21:10:19]SAM_PROTO_SignData done [21:10:19]FM_MakeSignedData done [21:10:19]CreateOFDProtocolMessage [21:10:19]wFMCommunicate request_size=4 [21:10:19]MH_SAM_APDU [21:10:19]CAPDU: 80 11 00 00 [21:10:19]Write to MH i2c: E2 08 00 8E 0D 80 11 00 00 00 00 00 00 15 [21:10:19]Write i2c OK [21:10:19]MH_I2C_Read... [21:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:20]Read from MH i2c: E2 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: E2 17 00 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: E2 17 00 8E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [21:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:20]wFMCommunicate OK [21:10:20]CreateOFDProtocolMessage done [21:10:20]OFDSenderStorePacket 49869 [21:10:20]StoreOFDPacket docnum=49869 [21:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 C3 D1 94 01 61 BB 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C2 00 00 35 04 06 00 F5 87 A4 5E 09 06 2B ED 01 14 57 30 A9 E3 [21:10:20]CheckFolder [21:10:20]dirname=/storage/ofd_packets [21:10:20]CheckFolder done [21:10:20]ProducePacketName [21:10:20]name=ofd_packets/00049869 [21:10:20]NVStorageSaveData ofd_packets/00049869 [21:10:20]File name is /storage/ofd_packets/00049869 [21:10:20]Write 442 bytes [21:10:20]NVStorageSaveData done [21:10:20]OFDSenderStorePacket done [21:10:20]KKMCreateOFDPacket done [21:10:20]NVStorageSaveData kkm_last_timestamp [21:10:20]File name is /storage/kkm_last_timestamp [21:10:20]Write 4 bytes [21:10:20]NVStorageSaveData done [21:10:20]ExternCall_PrintAddStr [21:10:20]wPrintStart [21:10:20]Write to MH i2c: 01 00 00 8F 0D 9C [21:10:20]OFD Sender: Processing packet 49869 [packets to send 21, broken 20] [21:10:20]ProducePacketName [21:10:20]name=ofd_packets/00049869 [21:10:20]OFD Sender: To server: pG, [21:10:20]CommunicateWithHost lk.salyk.kg:30040 [21:10:20]ConnectInit lk.salyk.kg [21:10:20]Write i2c OK [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [21:10:20]RasterBufferAndPrint [21:10:20]line Счет N : (3)190044 [21:10:20]line ИНН: 02508201610067 [21:10:20]line Контрольно-Кассовый Чек [21:10:20]line ПРОДАЖА [21:10:20]line Товар: 4870001570071 [21:10:20]line Напиток Pepsi 1л [21:10:20]line 1.000 * 111.00 [21:10:20]line = 111.00 [21:10:20]line НДС 12% НСП 1% [21:10:20]line > о реализуемом товаре [21:10:20]line Товар: 4870202521261 [21:10:20]line Напиток MAXI чай 1,2 лесные ягоды [21:10:20]line 1.000 * 125.00 [21:10:20]line = 125.00 [21:10:20]line НДС 12% НСП 1% [21:10:20]line > о реализуемом товаре [21:10:20]line ИТОГО: 236.00 [21:10:20]line НСП 1% : 2.09 [21:10:20]line НДС 12% : 25.06 [21:10:20]line Наличными: 0.00 [21:10:20]line Безнал.: 236.00 [21:10:20]line Место: АЗС № 95 "Партнер Нефть" [21:10:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:10:20]line СНО: Общий режим [21:10:20]line Чек 135 18.08.2024 21:10 [21:10:20]line Смена: 466 ФФД: 1.0 [21:10:20]line ЗНМ: 0300000078 [21:10:20]line РНМ: 0000000000092546 [21:10:20]line Версия ККМ: 001 [21:10:20]line Платежная система: O! деньги [21:10:20]line ФМ: 0000000000871800 [21:10:20]line ФД: 49869 [21:10:20]line ФПД: 269962927016198 [21:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211020&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49869&fm=269962927016198&tin=02508201610067®Number=0000000000092546&sum=23600 [21:10:20]line 0 [21:10:20]written 0, free lines is 4095 [21:10:20]Connected sock=10 [21:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 C3 D1 94 01 61 BB 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 5C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C2 00 00 35 04 06 00 F5 87 A4 5E 09 06 2B ED 01 14 57 30 A9 E3 [21:10:20]Write to MH i2c: 01 00 00 C0 0D CD [21:10:20]Write i2c OK [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 58 0C 38 [21:10:20]RasterBufferAndPrint [21:10:20]line [21:10:20]line [21:10:20]line [21:10:20]line [21:10:20]line [21:10:20]written 0, free lines is 3167 [21:10:20]MH_Cut [21:10:20]Write to MH i2c: D1 01 00 C7 0D 01 A6 [21:10:20]Write i2c OK [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: D1 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: D1 01 00 [21:10:20]MH_I2C_Read... [21:10:20]Read from MH i2c: D1 01 00 C7 0D 00 A5 [21:10:20]Write to MH i2c: 01 00 00 C8 0D D5 [21:10:20]Write i2c OK [21:10:20]MH_I2C_Read... [21:10:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AB 6B 47 00 B4 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CD C2 00 00 F4 03 04 00 B0 0D C2 66 B6 04 01 00 00 57 FD E2 8B 1D 1F 2D AA [21:10:21]CommunicateWithHost err = 0 [21:10:21]CheckOFDResponse [21:10:21]1017 (14) - 77093643461234 [21:10:21]1041 (16) - 0000000000871800 [21:10:21]1040 (4) - 49869 [21:10:21]1012 (4) - 18.08.2024 15:05 [21:10:21]1206 (1) - 0 [21:10:21]OFD Sender: Remove packet 49869 [21:10:21]ProducePacketName [21:10:21]name=ofd_packets/00049869 [21:10:21]NVStorageDeleteData [21:10:21]OFD Sender: No OFD packet to send [21:10:21]*** Cut start [21:10:21]*** Purtial cut [21:10:21]*** Stage 1: CUTSNS_PIN = 1 [21:10:22]Read from MH i2c: 01 [21:10:22]MH_I2C_Read... [21:10:22]*** Stop cut motor [21:10:22]*** Cut end [21:10:22]Read from MH i2c: 01 07 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 FF 0F EA [21:10:22]process_action close_receipt done [21:10:22]requested_data is exist [21:10:22]produce_requested_data [21:10:22]requested_item fm.sn is exist - process it [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 11 00 00 [21:10:22]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 17 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [21:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:22]wFMCommunicate OK [21:10:22]requested_item fd.num is exist - process it [21:10:22]SAM_PROTO_GetFieldsCounters [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 13 00 00 [21:10:22]Write to MH i2c: E2 08 00 CA 0D 80 13 00 00 00 00 00 00 53 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 62 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 62 00 CA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_GetFieldsCounters done [21:10:22]requested_item shift.num is exist - process it [21:10:22]requested_item shift.opened is exist - process it [21:10:22]req_shift_opened [21:10:22]FM_GetShiftState [21:10:22]SAM_PROTO_GetShiftState [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 13 01 00 [21:10:22]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 72 [21:10:22]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_GetShiftState done [21:10:22]FM_GetShiftState done [21:10:22]req_shift_opened done [21:10:22]requested_item shift.open_date is exist - process it [21:10:22]req_shift_open_date [21:10:22]req_shift_open_date done [21:10:22]produce_requested_data done [21:10:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49869,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:10:22]process_action_free close_receipt [21:10:22]json_value_free [21:10:22]json_value_free done [21:10:22]process_json_proto returns [21:10:22]Send response to host [21:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49869,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:10:22]free response buf [21:10:22]execute_script done [21:10:22]execute_script returns [21:10:22]free content buf [21:10:22]Sock 9.Close socket [21:10:22]Sock 9.Thread stoped [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:42]accept exits with 7 [21:10:42]New connection [21:10:42]New thread 3067198820 created [21:10:42]Thread 3067055460 joined [21:10:42]Waiting for new connection... [21:10:42] Sock 7.Parse request [21:10:42]Sock 7.Check first char [21:10:42]Sock 7.First char is OK [21:10:42]request: POST /json_proto HTTP/1.0 [21:10:42]Method: POST [21:10:42]URL: /json_proto [21:10:42]Method is POST - this is cgi request [21:10:42]url: /json_proto [21:10:42]query_string will be loaded in cgi processing [21:10:42]execute_cgi json_proto POST (null) [21:10:42]execute_cgi path=json_proto method=POST [21:10:42]POST find Content-Length [21:10:42]Host: 172.17.46.196:8080 [21:10:42]Content-Length: 656 [21:10:42]Content-Type: application/json [21:10:42] [21:10:42]POST finish read [21:10:42]Found Content-Length = 656 [21:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190045", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:42]execute_script... [21:10: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 : (3)190045", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:42]POST & json_proto [21:10:42]process_json_proto [21:10:42]json parsed OK: [21:10:42]protocol is kg_v1.0 [21:10:42]action value=close_receipt [21:10:42]process_action close_receipt [21:10:42]cmd_close_receipt [21:10:42]MH_GetDate [21:10:42]Write to MH i2c: F0 00 00 CC 0D C8 [21:10:42]Write i2c OK [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: F0 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: F0 09 00 [21:10:42]MH_I2C_Read... [21:10:42]Read from MH i2c: F0 09 00 CC 0D 00 55 63 C2 66 27 15 C2 66 15 [21:10:42]GetLastDocTimeStamp 1724015420 [21:10:42]current date 1724015445 [21:10:42]FM_GetShiftState [21:10:42]SAM_PROTO_GetShiftState [21:10:42]wFMCommunicate request_size=4 [21:10:42]MH_SAM_APDU [21:10:42]CAPDU: 80 13 01 00 [21:10:42]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [21:10:42]Write i2c OK [21:10:43]MH_I2C_Read... [21:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:43]Read from MH i2c: E2 [21:10:43]MH_I2C_Read... [21:10:43]Read from MH i2c: E2 0E 00 [21:10:43]MH_I2C_Read... [21:10:43]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 74 [21:10:43]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:10:43]wFMCommunicate OK [21:10:43]SAM_PROTO_GetShiftState done [21:10:43]FM_GetShiftState done [21:10:43]opened in 1723939759 [21:10:43]opened+sec_in_day 1724026159 [21:10:43]quantity*price = 400 [21:10:43]sum+1 = 401 [21:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 136 18.08.2024 21:10 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49870 ФПД: 69225874726685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211045&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49870&fm=69225874726685&tin=02508201610067®Number=0000000000092546&sum=400 0 [21:10:44]StoreToDocumentArchive [21:10:44]shift 466 fd 49870 [21:10:44]save to /storage/0466/doc_00049870 [21:10:44]save last doc name /storage/0466/doc_00049870 to /storage/kkm_last_doc_name [21:10:44]save OK [21:10:44]Clear old archive folders... [21:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:10:44]tlvbuf is 00FF2D00 [21:10:44]SAM_PROTO_ClearQueue [21:10:44]wFMCommunicate request_size=4 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 09 00 00 [21:10:44]Write to MH i2c: E2 08 00 DA 0D 80 09 00 00 00 00 00 00 59 [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [21:10:44]RAPDU: 90 00 [21:10:44]wFMCommunicate OK [21:10:44]SAM_PROTO_ClearQueue done [21:10:44]KKMCreateOFDPacket [21:10:44]OFDProtocolAddRootSTLVToBuf [21:10:44]FM_MakeSignedData [21:10:44]FM_MakeSignedData [21:10:44]SAM_PROTO_SignData [21:10:44]wFMCommunicate request_size=4 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 0D 01 02 [21:10:44]Write to MH i2c: E2 08 00 DB 0D 80 0D 01 02 00 00 00 00 61 [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [21:10:44]RAPDU: 90 00 [21:10:44]wFMCommunicate OK [21:10:44]wFMCommunicate request_size=255 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 55 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [21:10:44]Write to MH i2c: E2 02 01 DC 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 55 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 DA [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [21:10:44]RAPDU: 90 00 [21:10:44]wFMCommunicate OK [21:10:44]wFMCommunicate request_size=37 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C2 00 00 35 04 06 00 3E F5 E7 AC 1F 1D [21:10:44]Write to MH i2c: E2 28 00 DD 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C2 00 00 35 04 06 00 3E F5 E7 AC 1F 1D 00 00 45 [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [21:10:44]RAPDU: 90 00 [21:10:44]wFMCommunicate OK [21:10:44]wFMCommunicate request_size=4 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 0D 03 02 [21:10:44]Write to MH i2c: E2 08 00 DE 0D 80 0D 03 02 00 00 00 00 66 [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 0B 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 0B 00 DE 0D 00 D8 FA 58 1A 08 44 FF AF 90 00 A5 [21:10:44]RAPDU: D8 FA 58 1A 08 44 FF AF 90 00 [21:10:44]wFMCommunicate OK [21:10:44]SAM_PROTO_SignData done [21:10:44]FM_MakeSignedData done [21:10:44]CreateOFDProtocolMessage [21:10:44]wFMCommunicate request_size=4 [21:10:44]MH_SAM_APDU [21:10:44]CAPDU: 80 11 00 00 [21:10:44]Write to MH i2c: E2 08 00 DF 0D 80 11 00 00 00 00 00 00 66 [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:44]Read from MH i2c: E2 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 17 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: E2 17 00 DF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B1 [21:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:44]wFMCommunicate OK [21:10:44]CreateOFDProtocolMessage done [21:10:44]OFDSenderStorePacket 49870 [21:10:44]StoreOFDPacket docnum=49870 [21:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 E5 F5 22 01 15 EB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 55 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C2 00 00 35 04 06 00 3E F5 E7 AC 1F 1D D8 FA 58 1A 08 44 FF AF [21:10:44]CheckFolder [21:10:44]dirname=/storage/ofd_packets [21:10:44]CheckFolder done [21:10:44]ProducePacketName [21:10:44]name=ofd_packets/00049870 [21:10:44]NVStorageSaveData ofd_packets/00049870 [21:10:44]File name is /storage/ofd_packets/00049870 [21:10:44]Write 328 bytes [21:10:44]NVStorageSaveData done [21:10:44]OFDSenderStorePacket done [21:10:44]KKMCreateOFDPacket done [21:10:44]NVStorageSaveData kkm_last_timestamp [21:10:44]File name is /storage/kkm_last_timestamp [21:10:44]Write 4 bytes [21:10:44]NVStorageSaveData done [21:10:44]ExternCall_PrintAddStr [21:10:44]wPrintStart [21:10:44]Write to MH i2c: 01 00 00 E0 0D ED [21:10:44]Write i2c OK [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: 01 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: 01 07 00 [21:10:44]MH_I2C_Read... [21:10:44]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [21:10:44]RasterBufferAndPrint [21:10:44]line Счет N : (3)190045 [21:10:44]line ИНН: 02508201610067 [21:10:44]line Контрольно-Кассовый Чек [21:10:44]line ПРОДАЖА [21:10:44]line Товар: 2000031750019 [21:10:44]line Пакет Партнер Нефть [21:10:44]line 1.000 * 4.00 [21:10:44]line = 4.00 [21:10:44]line НДС 12% НСП 1% [21:10:44]line > о реализуемом товаре [21:10:44]line ИТОГО: 4.00 [21:10:44]line НСП 1% : 0.03 [21:10:44]line НДС 12% : 0.42 [21:10:44]line Наличными: 4.00 [21:10:44]line Безнал.: 0.00 [21:10:44]line Место: АЗС № 95 "Партнер Нефть" [21:10:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:10:44]line СНО: Общий режим [21:10:44]line Чек 136 18.08.2024 21:10 [21:10:44]line Смена: 466 ФФД: 1.0 [21:10:44]line ЗНМ: 0300000078 [21:10:44]line РНМ: 0000000000092546 [21:10:44]line Версия ККМ: 001 [21:10:44]line ФМ: 0000000000871800 [21:10:44]line ФД: 49870 [21:10:44]line ФПД: 69225874726685 [21:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211045&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49870&fm=69225874726685&tin=02508201610067®Number=0000000000092546&sum=400 [21:10:45]OFD Sender: Processing packet 49870 [packets to send 21, broken 20] [21:10:45]ProducePacketName [21:10:45]name=ofd_packets/00049870 [21:10:45]OFD Sender: To server: pG, [21:10:45]CommunicateWithHost lk.salyk.kg:30040 [21:10:45]ConnectInit lk.salyk.kg [21:10:45]line 0 [21:10:45]written 0, free lines is 4095 [21:10:45]Connected sock=10 [21:10:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 E5 F5 22 01 15 EB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 55 63 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C2 00 00 35 04 06 00 3E F5 E7 AC 1F 1D D8 FA 58 1A 08 44 FF AF [21:10:45]Write to MH i2c: 01 00 00 08 0E 16 [21:10:45]Write i2c OK [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: 01 [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: 01 07 00 [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 E3 0C 0C [21:10:45]RasterBufferAndPrint [21:10:45]line [21:10:45]line [21:10:45]line [21:10:45]line [21:10:45]line [21:10:45]written 0, free lines is 3305 [21:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 01 C8 47 00 37 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CE C2 00 00 F4 03 04 00 C9 0D C2 66 B6 04 01 00 00 AB CA A1 62 C4 46 5F 4D [21:10:45]CommunicateWithHost err = 0 [21:10:45]CheckOFDResponse [21:10:45]1017 (14) - 77093643461234 [21:10:45]1041 (16) - 0000000000871800 [21:10:45]1040 (4) - 49870 [21:10:45]1012 (4) - 18.08.2024 15:05 [21:10:45]1206 (1) - 0 [21:10:45]OFD Sender: Remove packet 49870 [21:10:45]ProducePacketName [21:10:45]name=ofd_packets/00049870 [21:10:45]NVStorageDeleteData [21:10:45]MH_Cut [21:10:45]Write to MH i2c: D1 01 00 0F 0E 01 EF [21:10:45]Write i2c OK [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: D1 [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: D1 01 00 [21:10:45]MH_I2C_Read... [21:10:45]Read from MH i2c: D1 01 00 0F 0E 00 EE [21:10:45]Write to MH i2c: 01 00 00 10 0E 1E [21:10:45]Write i2c OK [21:10:45]MH_I2C_Read... [21:10:46]OFD Sender: No OFD packet to send [21:10:46]*** Cut start [21:10:46]*** Purtial cut [21:10:46]*** CUTSNS_PIN = 0 [21:10:46]*** Stage 1: CUTSNS_PIN = 1 [21:10:48]Read from MH i2c: 01 [21:10:48]MH_I2C_Read... [21:10:48]*** Stop cut motor [21:10:48]*** Cut end [21:10:48]Read from MH i2c: 01 07 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FF 0F 33 [21:10:48]process_action close_receipt done [21:10:48]requested_data is exist [21:10:48]produce_requested_data [21:10:48]requested_item fm.sn is exist - process it [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 11 00 00 [21:10:48]Write to MH i2c: E2 08 00 11 0E 80 11 00 00 00 00 00 00 99 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 17 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 17 00 11 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E4 [21:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:48]wFMCommunicate OK [21:10:48]requested_item fd.num is exist - process it [21:10:48]SAM_PROTO_GetFieldsCounters [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 13 00 00 [21:10:48]Write to MH i2c: E2 08 00 12 0E 80 13 00 00 00 00 00 00 9C [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 62 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 62 00 12 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [21:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:48]wFMCommunicate OK [21:10:48]SAM_PROTO_GetFieldsCounters done [21:10:48]requested_item shift.num is exist - process it [21:10:48]requested_item shift.opened is exist - process it [21:10:48]req_shift_opened [21:10:48]FM_GetShiftState [21:10:48]SAM_PROTO_GetShiftState [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 13 01 00 [21:10:48]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 0E 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BB [21:10:48]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:10:48]wFMCommunicate OK [21:10:48]SAM_PROTO_GetShiftState done [21:10:48]FM_GetShiftState done [21:10:48]req_shift_opened done [21:10:48]requested_item shift.open_date is exist - process it [21:10:48]req_shift_open_date [21:10:48]req_shift_open_date done [21:10:48]produce_requested_data done [21:10:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49870,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:10:48]process_action_free close_receipt [21:10:48]json_value_free [21:10:48]json_value_free done [21:10:48]process_json_proto returns [21:10:48]Send response to host [21:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49870,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:10:48]free response buf [21:10:48]execute_script done [21:10:48]execute_script returns [21:10:48]free content buf [21:10:48]Sock 7.Close socket [21:10:48]Sock 7.Thread stoped [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:05]accept exits with 9 [21:22:05]New connection [21:22:05]New thread 3067055460 created [21:22:05]Thread 3067198820 joined [21:22:05]Waiting for new connection... [21:22:05] Sock 9.Parse request [21:22:05]Sock 9.Check first char [21:22:05]Sock 9.First char is OK [21:22:05]request: POST /json_proto HTTP/1.0 [21:22:05]Method: POST [21:22:05]URL: /json_proto [21:22:05]Method is POST - this is cgi request [21:22:05]url: /json_proto [21:22:05]query_string will be loaded in cgi processing [21:22:05]execute_cgi json_proto POST (null) [21:22:05]execute_cgi path=json_proto method=POST [21:22:05]POST find Content-Length [21:22:05]Host: 172.17.46.196:8080 [21:22:05]Content-Length: 1376 [21:22:05]Content-Type: application/json [21:22:05] [21:22:05]POST finish read [21:22:05]Found Content-Length = 1376 [21:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190046", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:05]execute_script... [21:22:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190046", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:05]POST & json_proto [21:22:05]process_json_proto [21:22:05]json parsed OK: [21:22:05]protocol is kg_v1.0 [21:22:05]action value=close_receipt [21:22:05]process_action close_receipt [21:22:05]cmd_close_receipt [21:22:05]MH_GetDate [21:22:05]Write to MH i2c: F0 00 00 14 0E 11 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: F0 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: F0 09 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: F0 09 00 14 0E 00 FF 65 C2 66 27 15 C2 66 0A [21:22:05]GetLastDocTimeStamp 1724015445 [21:22:05]current date 1724016127 [21:22:05]FM_GetShiftState [21:22:05]SAM_PROTO_GetShiftState [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 13 01 00 [21:22:05]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0E 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BD [21:22:05]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:22:05]wFMCommunicate OK [21:22:05]SAM_PROTO_GetShiftState done [21:22:05]FM_GetShiftState done [21:22:05]opened in 1723939759 [21:22:05]opened+sec_in_day 1724026159 [21:22:05]quantity*price = 15000 [21:22:05]sum+1 = 15001 [21:22:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 137 18.08.2024 21:22 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49871 ФПД: 155715642602352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212208&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49871&fm=155715642602352&tin=02508201610067®Number=0000000000092546&sum=36000 0 [21:22:07]StoreToDocumentArchive [21:22:07]shift 466 fd 49871 [21:22:07]save to /storage/0466/doc_00049871 [21:22:07]save last doc name /storage/0466/doc_00049871 to /storage/kkm_last_doc_name [21:22:07]save OK [21:22:07]Clear old archive folders... [21:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=594 [21:22:07]tlvbuf is 00FEFF70 [21:22:07]SAM_PROTO_ClearQueue [21:22:07]wFMCommunicate request_size=4 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 09 00 00 [21:22:07]Write to MH i2c: E2 08 00 22 0E 80 09 00 00 00 00 00 00 A2 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [21:22:07]RAPDU: 90 00 [21:22:07]wFMCommunicate OK [21:22:07]SAM_PROTO_ClearQueue done [21:22:07]KKMCreateOFDPacket [21:22:07]OFDProtocolAddRootSTLVToBuf [21:22:07]FM_MakeSignedData [21:22:07]FM_MakeSignedData [21:22:07]SAM_PROTO_SignData [21:22:07]wFMCommunicate request_size=4 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 0D 01 02 [21:22:07]Write to MH i2c: E2 08 00 23 0E 80 0D 01 02 00 00 00 00 AA [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [21:22:07]RAPDU: 90 00 [21:22:07]wFMCommunicate OK [21:22:07]wFMCommunicate request_size=255 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 0D 02 02 FA 03 00 52 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 [21:22:07]Write to MH i2c: E2 02 01 24 0E 80 0D 02 02 FA 00 03 00 52 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 00 00 5E [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [21:22:07]RAPDU: 90 00 [21:22:07]wFMCommunicate OK [21:22:07]wFMCommunicate request_size=255 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 0D 02 02 FA 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 [21:22:07]Write to MH i2c: E2 02 01 25 0E 80 0D 02 02 FA 00 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 26 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [21:22:07]RAPDU: 90 00 [21:22:07]wFMCommunicate OK [21:22:07]wFMCommunicate request_size=103 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 0D 02 02 62 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 00 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C2 00 00 35 04 06 00 8D 9F 5F 90 33 70 [21:22:07]Write to MH i2c: E2 6A 00 26 0E 80 0D 02 02 62 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 00 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C2 00 00 35 04 06 00 8D 9F 5F 90 33 70 00 00 8A [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [21:22:07]RAPDU: 90 00 [21:22:07]wFMCommunicate OK [21:22:07]wFMCommunicate request_size=4 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 0D 03 02 [21:22:07]Write to MH i2c: E2 08 00 27 0E 80 0D 03 02 00 00 00 00 B0 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 0B 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 0B 00 27 0E 00 B1 40 33 30 48 B1 E2 AD 90 00 8D [21:22:07]RAPDU: B1 40 33 30 48 B1 E2 AD 90 00 [21:22:07]wFMCommunicate OK [21:22:07]SAM_PROTO_SignData done [21:22:07]FM_MakeSignedData done [21:22:07]CreateOFDProtocolMessage [21:22:07]wFMCommunicate request_size=4 [21:22:07]MH_SAM_APDU [21:22:07]CAPDU: 80 11 00 00 [21:22:07]Write to MH i2c: E2 08 00 28 0E 80 11 00 00 00 00 00 00 B0 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:07]Read from MH i2c: E2 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 17 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: E2 17 00 28 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FB [21:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:22:07]wFMCommunicate OK [21:22:07]CreateOFDProtocolMessage done [21:22:07]OFDSenderStorePacket 49871 [21:22:07]StoreOFDPacket docnum=49871 [21:22:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 66 02 00 00 E1 78 5E 02 12 17 5A 03 01 00 03 00 52 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 00 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C2 00 00 35 04 06 00 8D 9F 5F 90 33 70 B1 40 33 30 48 B1 E2 AD [21:22:07]CheckFolder [21:22:07]dirname=/storage/ofd_packets [21:22:07]CheckFolder done [21:22:07]ProducePacketName [21:22:07]name=ofd_packets/00049871 [21:22:07]NVStorageSaveData ofd_packets/00049871 [21:22:07]File name is /storage/ofd_packets/00049871 [21:22:07]Write 644 bytes [21:22:07]NVStorageSaveData done [21:22:07]OFDSenderStorePacket done [21:22:07]KKMCreateOFDPacket done [21:22:07]NVStorageSaveData kkm_last_timestamp [21:22:07]File name is /storage/kkm_last_timestamp [21:22:07]Write 4 bytes [21:22:07]NVStorageSaveData done [21:22:07]ExternCall_PrintAddStr [21:22:07]wPrintStart [21:22:07]Write to MH i2c: 01 00 00 29 0E 37 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 FF 0F 4C [21:22:07]RasterBufferAndPrint [21:22:07]line Счет N : (3)190046 [21:22:07]line ИНН: 02508201610067 [21:22:07]line Контрольно-Кассовый Чек [21:22:07]line ПРОДАЖА [21:22:07]line Товар: 46230614 [21:22:07]line Сигареты Richmond Red Edition [21:22:07]line 1.000 * 150.00 [21:22:07]line = 150.00 [21:22:07]line НДС 12% НСП 1% [21:22:07]line > о реализуемом товаре [21:22:07]line Товар: 4700000160044 [21:22:07]line Вода Ыссык Ата 0,5л [21:22:07]line 1.000 * 40.00 [21:22:07]line = 40.00 [21:22:07]line НДС 12% НСП 1% [21:22:07]line > о реализуемом товаре [21:22:08]line Товар: 4700000160211 [21:22:08]line Вода Легенда 0,5л [21:22:08]line 1.000 * 40.00 [21:22:08]line = 40.00 [21:22:08]line НДС 12% НСП 1% [21:22:08]line > о реализуемом товаре [21:22:08]line Товар: 48745291 [21:22:08]line Сигареты Parliament SOHO NYC COMPACT BLU [21:22:08]line 1.000 * 130.00 [21:22:08]line = 130.00 [21:22:08]line НДС 12% НСП 1% [21:22:08]line > о реализуемом товаре [21:22:08]line ИТОГО: 360.00 [21:22:08]line НСП 1% : 3.18 [21:22:08]line НДС 12% : 38.23 [21:22:08]line Наличными: 360.00 [21:22:08]line Безнал.: 0.00 [21:22:08]line Место: АЗС № 95 "Партнер Нефть" [21:22:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:22:08]line СНО: Общий режим [21:22:08]line Чек 137 18.08.2024 21:22 [21:22:08]line Смена: 466 ФФД: 1.0 [21:22:08]line ЗНМ: 0300000078 [21:22:08]line РНМ: 0000000000092546 [21:22:08]line Версия ККМ: 001 [21:22:08]line ФМ: 0000000000871800 [21:22:08]line ФД: 49871 [21:22:08]line ФПД: 155715642602352 [21:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212208&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49871&fm=155715642602352&tin=02508201610067®Number=0000000000092546&sum=36000 [21:22:08]line 0 [21:22:08]OFD Sender: Processing packet 49871 [packets to send 21, broken 20] [21:22:08]ProducePacketName [21:22:08]name=ofd_packets/00049871 [21:22:08]OFD Sender: To server: pG, [21:22:08]CommunicateWithHost lk.salyk.kg:30040 [21:22:08]ConnectInit lk.salyk.kg [21:22:08]written 0, free lines is 4095 [21:22:08]Connected sock=10 [21:22:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 66 02 00 00 E1 78 5E 02 12 17 5A 03 01 00 03 00 52 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 00 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C2 00 00 35 04 06 00 8D 9F 5F 90 33 70 B1 40 33 30 48 B1 E2 AD [21:22:08]Write to MH i2c: 01 00 00 65 0E 73 [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: 01 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: 01 07 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 99 0B 1E [21:22:08]RasterBufferAndPrint [21:22:08]line [21:22:08]line [21:22:08]line [21:22:08]line [21:22:08]line [21:22:08]written 0, free lines is 2980 [21:22:08]MH_Cut [21:22:08]Write to MH i2c: D1 01 00 6C 0E 01 4C [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: D1 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: D1 01 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: D1 01 00 6C 0E 00 4B [21:22:08]Write to MH i2c: 01 00 00 6D 0E 7B [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 00 ED 47 00 23 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 CF C2 00 00 F4 03 04 00 74 10 C2 66 B6 04 01 00 00 D8 CA 7E 89 84 57 82 4C [21:22:09]CommunicateWithHost err = 0 [21:22:09]CheckOFDResponse [21:22:09]1017 (14) - 77093643461234 [21:22:09]1041 (16) - 0000000000871800 [21:22:09]1040 (4) - 49871 [21:22:09]1012 (4) - 18.08.2024 15:17 [21:22:09]1206 (1) - 0 [21:22:09]OFD Sender: Remove packet 49871 [21:22:09]ProducePacketName [21:22:09]name=ofd_packets/00049871 [21:22:09]NVStorageDeleteData [21:22:09]OFD Sender: No OFD packet to send [21:22:09]*** Cut start [21:22:09]*** Purtial cut [21:22:09]*** Stage 1: CUTSNS_PIN = 1 [21:22:10]Read from MH i2c: 01 [21:22:10]MH_I2C_Read... [21:22:10]*** Stop cut motor [21:22:10]*** Cut end [21:22:10]Read from MH i2c: 01 07 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [21:22:10]process_action close_receipt done [21:22:10]requested_data is exist [21:22:10]produce_requested_data [21:22:10]requested_item fm.sn is exist - process it [21:22:10]wFMCommunicate request_size=4 [21:22:10]MH_SAM_APDU [21:22:10]CAPDU: 80 11 00 00 [21:22:10]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:10]Read from MH i2c: E2 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 17 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [21:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:22:10]wFMCommunicate OK [21:22:10]requested_item fd.num is exist - process it [21:22:10]SAM_PROTO_GetFieldsCounters [21:22:10]wFMCommunicate request_size=4 [21:22:10]MH_SAM_APDU [21:22:10]CAPDU: 80 13 00 00 [21:22:10]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:10]Read from MH i2c: E2 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 62 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [21:22:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 CF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:10]wFMCommunicate OK [21:22:10]SAM_PROTO_GetFieldsCounters done [21:22:10]requested_item shift.num is exist - process it [21:22:10]requested_item shift.opened is exist - process it [21:22:10]req_shift_opened [21:22:10]FM_GetShiftState [21:22:10]SAM_PROTO_GetShiftState [21:22:10]wFMCommunicate request_size=4 [21:22:10]MH_SAM_APDU [21:22:10]CAPDU: 80 13 01 00 [21:22:10]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:10]Read from MH i2c: E2 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 0E 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 18 [21:22:10]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:22:10]wFMCommunicate OK [21:22:10]SAM_PROTO_GetShiftState done [21:22:10]FM_GetShiftState done [21:22:10]req_shift_opened done [21:22:10]requested_item shift.open_date is exist - process it [21:22:10]req_shift_open_date [21:22:10]req_shift_open_date done [21:22:10]produce_requested_data done [21:22:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49871,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:22:10]process_action_free close_receipt [21:22:10]json_value_free [21:22:10]json_value_free done [21:22:10]process_json_proto returns [21:22:10]Send response to host [21:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49871,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:22:10]free response buf [21:22:10]execute_script done [21:22:10]execute_script returns [21:22:10]free content buf [21:22:10]Sock 9.Close socket [21:22:10]Sock 9.Thread stoped [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:11]int [21:25:11]Write to MH i2c: 01 00 00 71 0E 7F [21:25:11]*** FLAG_PRN_KEY set [21:25:11]Write i2c OK [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 07 00 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 07 00 71 0E 00 08 00 00 00 FF 0F 9C [21:25:11]state=0 [21:25:11]Key pressed [21:25:11]Feed [21:25:11]Write to MH i2c: D8 00 00 72 0E 57 [21:25:11]Write i2c OK [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: D8 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: D8 01 00 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: D8 01 00 72 0E 00 58 [21:25:11]int [21:25:11]Write to MH i2c: 01 00 00 73 0E 81 [21:25:11]Write i2c OK [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 07 00 [21:25:11]MH_I2C_Read... [21:25:11]Read from MH i2c: 01 07 00 73 0E 00 48 00 00 00 3C 00 0C [21:25:11]state=2 [21:25:11]Key pressed [21:25:12]int [21:25:12]Write to MH i2c: 01 00 00 74 0E 82 [21:25:12]*** FLAG_PRN_KEY reset [21:25:12]Write i2c OK [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: 01 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: 01 07 00 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 F5 0F 8D [21:25:12]state=2 [21:25:12]Stop feed [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:55]accept exits with 7 [21:25:55]New connection [21:25:55]New thread 3067198820 created [21:25:55]Thread 3067055460 joined [21:25:55]Waiting for new connection... [21:25:55] Sock 7.Parse request [21:25:55]Sock 7.Check first char [21:25:55]Sock 7.First char is OK [21:25:55]request: POST /json_proto HTTP/1.0 [21:25:55]Method: POST [21:25:55]URL: /json_proto [21:25:55]Method is POST - this is cgi request [21:25:55]url: /json_proto [21:25:55]query_string will be loaded in cgi processing [21:25:55]execute_cgi json_proto POST (null) [21:25:55]execute_cgi path=json_proto method=POST [21:25:55]POST find Content-Length [21:25:55]Host: 172.17.46.196:8080 [21:25:55]Content-Length: 747 [21:25:55]Content-Type: application/json [21:25:55] [21:25:55]POST finish read [21:25:55]Found Content-Length = 747 [21:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190047", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:55]execute_script... [21:25: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 : (3)190047", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:55]POST & json_proto [21:25:55]process_json_proto [21:25:55]json parsed OK: [21:25:55]protocol is kg_v1.0 [21:25:55]action value=close_receipt [21:25:55]process_action close_receipt [21:25:55]cmd_close_receipt [21:25:55]MH_GetDate [21:25:55]Write to MH i2c: F0 00 00 75 0E 72 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 09 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: F0 09 00 75 0E 00 E6 66 C2 66 27 15 C2 66 53 [21:25:56]GetLastDocTimeStamp 1724016128 [21:25:56]current date 1724016358 [21:25:56]FM_GetShiftState [21:25:56]SAM_PROTO_GetShiftState [21:25:56]wFMCommunicate request_size=4 [21:25:56]MH_SAM_APDU [21:25:56]CAPDU: 80 13 01 00 [21:25:56]Write to MH i2c: E2 08 00 76 0E 80 13 01 00 00 00 00 00 01 [21:25:56]Write i2c OK [21:25:56]MH_I2C_Read... [21:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:56]Read from MH i2c: E2 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: E2 0E 00 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: E2 0E 00 76 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 1E [21:25:56]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:25:56]wFMCommunicate OK [21:25:56]SAM_PROTO_GetShiftState done [21:25:56]FM_GetShiftState done [21:25:56]opened in 1723939759 [21:25:56]opened+sec_in_day 1724026159 [21:25:56]quantity*price = 59000 [21:25:56]sum+1 = 59001 [21:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 138 18.08.2024 21:25 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49872 ФПД: 5415025624878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212558&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49872&fm=5415025624878&tin=02508201610067®Number=0000000000092546&sum=59000 0 [21:25:57]StoreToDocumentArchive [21:25:57]shift 466 fd 49872 [21:25:57]save to /storage/0466/doc_00049872 [21:25:57]save last doc name /storage/0466/doc_00049872 to /storage/kkm_last_doc_name [21:25:57]save OK [21:25:57]Clear old archive folders... [21:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=307 [21:25:57]tlvbuf is 00FF0880 [21:25:57]SAM_PROTO_ClearQueue [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 09 00 00 [21:25:57]Write to MH i2c: E2 08 00 83 0E 80 09 00 00 00 00 00 00 03 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 83 0E 00 90 00 05 [21:25:57]RAPDU: 90 00 [21:25:57]wFMCommunicate OK [21:25:57]SAM_PROTO_ClearQueue done [21:25:57]KKMCreateOFDPacket [21:25:57]OFDProtocolAddRootSTLVToBuf [21:25:57]FM_MakeSignedData [21:25:57]FM_MakeSignedData [21:25:57]SAM_PROTO_SignData [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 0D 01 02 [21:25:57]Write to MH i2c: E2 08 00 84 0E 80 0D 01 02 00 00 00 00 0B [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 84 0E 00 90 00 06 [21:25:57]RAPDU: 90 00 [21:25:57]wFMCommunicate OK [21:25:57]wFMCommunicate request_size=255 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 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 79 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 8A 00 00 00 F4 03 04 00 E6 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 [21:25:57]Write to MH i2c: E2 02 01 85 0E 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 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 79 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 8A 00 00 00 F4 03 04 00 E6 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 00 00 63 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 85 0E 00 90 00 07 [21:25:57]RAPDU: 90 00 [21:25:57]wFMCommunicate OK [21:25:57]wFMCommunicate request_size=66 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C2 00 00 35 04 06 00 04 EC C8 AD C7 2E [21:25:57]Write to MH i2c: E2 45 00 86 0E 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C2 00 00 35 04 06 00 04 EC C8 AD C7 2E 00 00 45 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 03 00 86 0E 00 90 00 08 [21:25:57]RAPDU: 90 00 [21:25:57]wFMCommunicate OK [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 0D 03 02 [21:25:57]Write to MH i2c: E2 08 00 87 0E 80 0D 03 02 00 00 00 00 10 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 0B 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 0B 00 87 0E 00 BD 3F 58 AA F2 3B 0A 14 90 00 5A [21:25:57]RAPDU: BD 3F 58 AA F2 3B 0A 14 90 00 [21:25:57]wFMCommunicate OK [21:25:57]SAM_PROTO_SignData done [21:25:57]FM_MakeSignedData done [21:25:57]CreateOFDProtocolMessage [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 11 00 00 [21:25:57]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 17 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [21:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:25:57]wFMCommunicate OK [21:25:57]CreateOFDProtocolMessage done [21:25:57]OFDSenderStorePacket 49872 [21:25:57]StoreOFDPacket docnum=49872 [21:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 47 01 00 00 94 FB 3F 01 4E 13 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 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 79 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 8A 00 00 00 F4 03 04 00 E6 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C2 00 00 35 04 06 00 04 EC C8 AD C7 2E BD 3F 58 AA F2 3B 0A 14 [21:25:57]CheckFolder [21:25:57]dirname=/storage/ofd_packets [21:25:57]CheckFolder done [21:25:57]ProducePacketName [21:25:57]name=ofd_packets/00049872 [21:25:57]NVStorageSaveData ofd_packets/00049872 [21:25:57]File name is /storage/ofd_packets/00049872 [21:25:57]Write 357 bytes [21:25:57]NVStorageSaveData done [21:25:57]OFDSenderStorePacket done [21:25:57]KKMCreateOFDPacket done [21:25:57]NVStorageSaveData kkm_last_timestamp [21:25:57]File name is /storage/kkm_last_timestamp [21:25:57]Write 4 bytes [21:25:57]NVStorageSaveData done [21:25:57]ExternCall_PrintAddStr [21:25:57]wPrintStart [21:25:57]Write to MH i2c: 01 00 00 89 0E 97 [21:25:57]OFD Sender: Processing packet 49872 [packets to send 21, broken 20] [21:25:57]ProducePacketName [21:25:57]name=ofd_packets/00049872 [21:25:57]OFD Sender: To server: pG, [21:25:57]CommunicateWithHost lk.salyk.kg:30040 [21:25:57]ConnectInit lk.salyk.kg [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: 01 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: 01 07 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: 01 07 00 89 0E 00 00 00 00 00 FF 0F AC [21:25:57]RasterBufferAndPrint [21:25:57]line Счет N : (3)190047 [21:25:57]line ИНН: 02508201610067 [21:25:57]line Контрольно-Кассовый Чек [21:25:57]line ПРОДАЖА [21:25:57]line Товар: 2000029770012 [21:25:57]line Очки солнцезащитные в ассортименте [21:25:57]line 1.000 * 590.00 [21:25:57]line = 590.00 [21:25:57]line НДС 12% НСП 1% [21:25:57]line > о реализуемом товаре [21:25:57]line ИТОГО: 590.00 [21:25:57]line НСП 1% : 5.22 [21:25:57]line НДС 12% : 62.65 [21:25:57]line Наличными: 590.00 [21:25:57]line Безнал.: 0.00 [21:25:57]line Место: АЗС № 95 "Партнер Нефть" [21:25:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:25:57]line СНО: Общий режим [21:25:57]line Чек 138 18.08.2024 21:25 [21:25:57]line Смена: 466 ФФД: 1.0 [21:25:57]line ЗНМ: 0300000078 [21:25:57]line РНМ: 0000000000092546 [21:25:57]line Версия ККМ: 001 [21:25:57]line ФМ: 0000000000871800 [21:25:57]line ФД: 49872 [21:25:57]line ФПД: 5415025624878 [21:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212558&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49872&fm=5415025624878&tin=02508201610067®Number=0000000000092546&sum=59000 [21:25:58]line 0 [21:25:58]Connected sock=10 [21:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 47 01 00 00 94 FB 3F 01 4E 13 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 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 79 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 8A 00 00 00 F4 03 04 00 E6 66 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C2 00 00 35 04 06 00 04 EC C8 AD C7 2E BD 3F 58 AA F2 3B 0A 14 [21:25:58]written 0, free lines is 4095 [21:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 10 98 47 00 72 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D0 C2 00 00 F4 03 04 00 59 11 C2 66 B6 04 01 00 00 64 5E 9F C8 22 0E 6C C0 [21:25:58]CommunicateWithHost err = 0 [21:25:58]CheckOFDResponse [21:25:58]1017 (14) - 77093643461234 [21:25:58]1041 (16) - 0000000000871800 [21:25:58]1040 (4) - 49872 [21:25:58]1012 (4) - 18.08.2024 15:20 [21:25:58]1206 (1) - 0 [21:25:58]OFD Sender: Remove packet 49872 [21:25:58]ProducePacketName [21:25:58]name=ofd_packets/00049872 [21:25:58]NVStorageDeleteData [21:25:58]Write to MH i2c: 01 00 00 B2 0E C0 [21:25:58]Write i2c OK [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: 01 [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: 01 07 00 [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 C6 0C 99 [21:25:58]RasterBufferAndPrint [21:25:58]line [21:25:58]line [21:25:58]line [21:25:58]line [21:25:58]line [21:25:58]written 0, free lines is 3279 [21:25:58]MH_Cut [21:25:58]Write to MH i2c: D1 01 00 B9 0E 01 99 [21:25:58]Write i2c OK [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: D1 [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: D1 01 00 [21:25:58]MH_I2C_Read... [21:25:58]Read from MH i2c: D1 01 00 B9 0E 00 98 [21:25:58]Write to MH i2c: 01 00 00 BA 0E C8 [21:25:58]Write i2c OK [21:25:58]MH_I2C_Read... [21:25:58]OFD Sender: No OFD packet to send [21:25:59]*** Cut start [21:25:59]*** Purtial cut [21:25:59]*** CUTSNS_PIN = 0 [21:25:59]*** Stage 1: CUTSNS_PIN = 1 [21:26:01]Read from MH i2c: 01 [21:26:01]MH_I2C_Read... [21:26:01]*** Stop cut motor [21:26:01]*** Cut end [21:26:01]Read from MH i2c: 01 07 00 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: 01 07 00 BA 0E 00 00 00 00 00 FF 0F DD [21:26:01]process_action close_receipt done [21:26:01]requested_data is exist [21:26:01]produce_requested_data [21:26:01]requested_item fm.sn is exist - process it [21:26:01]wFMCommunicate request_size=4 [21:26:01]MH_SAM_APDU [21:26:01]CAPDU: 80 11 00 00 [21:26:01]Write to MH i2c: E2 08 00 BB 0E 80 11 00 00 00 00 00 00 43 [21:26:01]Write i2c OK [21:26:01]MH_I2C_Read... [21:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:01]Read from MH i2c: E2 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 17 00 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 17 00 BB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8E [21:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:26:01]wFMCommunicate OK [21:26:01]requested_item fd.num is exist - process it [21:26:01]SAM_PROTO_GetFieldsCounters [21:26:01]wFMCommunicate request_size=4 [21:26:01]MH_SAM_APDU [21:26:01]CAPDU: 80 13 00 00 [21:26:01]Write to MH i2c: E2 08 00 BC 0E 80 13 00 00 00 00 00 00 46 [21:26:01]Write i2c OK [21:26:01]MH_I2C_Read... [21:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:01]Read from MH i2c: E2 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 62 00 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 62 00 BC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [21:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:01]wFMCommunicate OK [21:26:01]SAM_PROTO_GetFieldsCounters done [21:26:01]requested_item shift.num is exist - process it [21:26:01]requested_item shift.opened is exist - process it [21:26:01]req_shift_opened [21:26:01]FM_GetShiftState [21:26:01]SAM_PROTO_GetShiftState [21:26:01]wFMCommunicate request_size=4 [21:26:01]MH_SAM_APDU [21:26:01]CAPDU: 80 13 01 00 [21:26:01]Write to MH i2c: E2 08 00 BD 0E 80 13 01 00 00 00 00 00 48 [21:26:01]Write i2c OK [21:26:01]MH_I2C_Read... [21:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:01]Read from MH i2c: E2 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 0E 00 [21:26:01]MH_I2C_Read... [21:26:01]Read from MH i2c: E2 0E 00 BD 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 65 [21:26:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:26:01]wFMCommunicate OK [21:26:01]SAM_PROTO_GetShiftState done [21:26:01]FM_GetShiftState done [21:26:01]req_shift_opened done [21:26:01]requested_item shift.open_date is exist - process it [21:26:01]req_shift_open_date [21:26:01]req_shift_open_date done [21:26:01]produce_requested_data done [21:26:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49872,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:26:01]process_action_free close_receipt [21:26:01]json_value_free [21:26:01]json_value_free done [21:26:01]process_json_proto returns [21:26:01]Send response to host [21:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49872,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:26:01]free response buf [21:26:01]execute_script done [21:26:01]execute_script returns [21:26:01]free content buf [21:26:01]Sock 7.Close socket [21:26:01]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:49]accept exits with 9 [21:28:49]New connection [21:28:49]New thread 3067055460 created [21:28:49]Thread 3067198820 joined [21:28:49]Waiting for new connection... [21:28:49] Sock 9.Parse request [21:28:49]Sock 9.Check first char [21:28:49]Sock 9.First char is OK [21:28:49]request: POST /json_proto HTTP/1.0 [21:28:49]Method: POST [21:28:49]URL: /json_proto [21:28:49]Method is POST - this is cgi request [21:28:49]url: /json_proto [21:28:49]query_string will be loaded in cgi processing [21:28:49]execute_cgi json_proto POST (null) [21:28:49]execute_cgi path=json_proto method=POST [21:28:49]POST find Content-Length [21:28:49]Host: 172.17.46.196:8080 [21:28:49]Content-Length: 1071 [21:28:49]Content-Type: application/json [21:28:49] [21:28:49]POST finish read [21:28:49]Found Content-Length = 1071 [21:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190048", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:49]execute_script... [21:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190048", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:49]POST & json_proto [21:28:49]process_json_proto [21:28:49]json parsed OK: [21:28:49]protocol is kg_v1.0 [21:28:49]action value=close_receipt [21:28:49]process_action close_receipt [21:28:49]cmd_close_receipt [21:28:49]MH_GetDate [21:28:49]Write to MH i2c: F0 00 00 BE 0E BB [21:28:49]Write i2c OK [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 09 00 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 09 00 BE 0E 00 93 67 C2 66 27 15 C2 66 4A [21:28:49]GetLastDocTimeStamp 1724016358 [21:28:49]current date 1724016531 [21:28:49]FM_GetShiftState [21:28:49]SAM_PROTO_GetShiftState [21:28:49]wFMCommunicate request_size=4 [21:28:49]MH_SAM_APDU [21:28:49]CAPDU: 80 13 01 00 [21:28:49]Write to MH i2c: E2 08 00 BF 0E 80 13 01 00 00 00 00 00 4A [21:28:49]Write i2c OK [21:28:49]MH_I2C_Read... [21:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:49]Read from MH i2c: E2 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: E2 0E 00 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: E2 0E 00 BF 0E 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 67 [21:28:49]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:28:49]wFMCommunicate OK [21:28:49]SAM_PROTO_GetShiftState done [21:28:49]FM_GetShiftState done [21:28:49]opened in 1723939759 [21:28:49]opened+sec_in_day 1724026159 [21:28:49]quantity*price = 28000 [21:28:49]sum+1 = 28001 [21:28:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010056 Чай хол Let`s Go! зел лим ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 0.00 Безнал.: 375.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 139 18.08.2024 21:28 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49873 ФПД: 81372413883404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49873&fm=81372413883404&tin=02508201610067®Number=0000000000092546&sum=37500 0 [21:28:50]StoreToDocumentArchive [21:28:50]shift 466 fd 49873 [21:28:50]save to /storage/0466/doc_00049873 [21:28:50]save last doc name /storage/0466/doc_00049873 to /storage/kkm_last_doc_name [21:28:50]save OK [21:28:50]Clear old archive folders... [21:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=398 [21:28:50]tlvbuf is 00FF0480 [21:28:50]SAM_PROTO_ClearQueue [21:28:50]wFMCommunicate request_size=4 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 09 00 00 [21:28:50]Write to MH i2c: E2 08 00 CC 0E 80 09 00 00 00 00 00 00 4C [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [21:28:50]RAPDU: 90 00 [21:28:50]wFMCommunicate OK [21:28:50]SAM_PROTO_ClearQueue done [21:28:50]KKMCreateOFDPacket [21:28:50]OFDProtocolAddRootSTLVToBuf [21:28:50]FM_MakeSignedData [21:28:50]FM_MakeSignedData [21:28:50]SAM_PROTO_SignData [21:28:50]wFMCommunicate request_size=4 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 0D 01 02 [21:28:50]Write to MH i2c: E2 08 00 CD 0E 80 0D 01 02 00 00 00 00 54 [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 CD 0E 00 90 00 4F [21:28:50]RAPDU: 90 00 [21:28:50]wFMCommunicate OK [21:28:50]wFMCommunicate request_size=255 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 [21:28:50]Write to MH i2c: E2 02 01 CE 0E 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 00 8F [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 CE 0E 00 90 00 50 [21:28:50]RAPDU: 90 00 [21:28:50]wFMCommunicate OK [21:28:50]wFMCommunicate request_size=157 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 67 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C2 00 00 35 04 06 00 4A 01 FD D2 F4 0C [21:28:50]Write to MH i2c: E2 A0 00 CF 0E 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 67 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C2 00 00 35 04 06 00 4A 01 FD D2 F4 0C 00 00 CE [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [21:28:50]RAPDU: 90 00 [21:28:50]wFMCommunicate OK [21:28:50]wFMCommunicate request_size=4 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 0D 03 02 [21:28:50]Write to MH i2c: E2 08 00 D0 0E 80 0D 03 02 00 00 00 00 59 [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 0B 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 0B 00 D0 0E 00 75 22 BE EC A7 7D BF A8 90 00 26 [21:28:50]RAPDU: 75 22 BE EC A7 7D BF A8 90 00 [21:28:50]wFMCommunicate OK [21:28:50]SAM_PROTO_SignData done [21:28:50]FM_MakeSignedData done [21:28:50]CreateOFDProtocolMessage [21:28:50]wFMCommunicate request_size=4 [21:28:50]MH_SAM_APDU [21:28:50]CAPDU: 80 11 00 00 [21:28:50]Write to MH i2c: E2 08 00 D1 0E 80 11 00 00 00 00 00 00 59 [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:50]Read from MH i2c: E2 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 17 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: E2 17 00 D1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A4 [21:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:28:50]wFMCommunicate OK [21:28:50]CreateOFDProtocolMessage done [21:28:50]OFDSenderStorePacket 49873 [21:28:50]StoreOFDPacket docnum=49873 [21:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A2 01 00 00 86 21 9A 01 FF 26 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 67 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C2 00 00 35 04 06 00 4A 01 FD D2 F4 0C 75 22 BE EC A7 7D BF A8 [21:28:50]CheckFolder [21:28:50]dirname=/storage/ofd_packets [21:28:50]CheckFolder done [21:28:50]ProducePacketName [21:28:50]name=ofd_packets/00049873 [21:28:50]NVStorageSaveData ofd_packets/00049873 [21:28:50]File name is /storage/ofd_packets/00049873 [21:28:50]Write 448 bytes [21:28:50]NVStorageSaveData done [21:28:50]OFDSenderStorePacket done [21:28:50]KKMCreateOFDPacket done [21:28:50]NVStorageSaveData kkm_last_timestamp [21:28:50]File name is /storage/kkm_last_timestamp [21:28:50]Write 4 bytes [21:28:50]NVStorageSaveData done [21:28:50]ExternCall_PrintAddStr [21:28:50]wPrintStart [21:28:50]Write to MH i2c: 01 00 00 D2 0E E0 [21:28:50]Write i2c OK [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: 01 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: 01 07 00 [21:28:50]MH_I2C_Read... [21:28:50]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 FF 0F F5 [21:28:50]RasterBufferAndPrint [21:28:50]line Счет N : (3)190048 [21:28:50]line ИНН: 02508201610067 [21:28:50]line Контрольно-Кассовый Чек [21:28:50]line ПРОДАЖА [21:28:50]line Товар: 48743587 [21:28:51]line Сигареты Winston XStyle Silver [21:28:51]line 2.000 * 140.00 [21:28:51]line = 280.00 [21:28:51]line НДС 12% НСП 1% [21:28:51]line > о реализуемом товаре [21:28:51]line Товар: 4700003010056 [21:28:51]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [21:28:51]line 1.000 * 95.00 [21:28:51]line = 95.00 [21:28:51]line НДС 12% НСП 1% [21:28:51]line > о реализуемом товаре [21:28:51]line ИТОГО: 375.00 [21:28:51]line НСП 1% : 3.32 [21:28:51]line НДС 12% : 39.82 [21:28:51]line Наличными: 0.00 [21:28:51]line Безнал.: 375.00 [21:28:51]line Место: АЗС № 95 "Партнер Нефть" [21:28:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:28:51]line СНО: Общий режим [21:28:51]line Чек 139 18.08.2024 21:28 [21:28:51]line Смена: 466 ФФД: 1.0 [21:28:51]line ЗНМ: 0300000078 [21:28:51]line РНМ: 0000000000092546 [21:28:51]line Версия ККМ: 001 [21:28:51]line Платежная система: O! деньги [21:28:51]line ФМ: 0000000000871800 [21:28:51]line ФД: 49873 [21:28:51]line ФПД: 81372413883404 [21:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49873&fm=81372413883404&tin=02508201610067®Number=0000000000092546&sum=37500 [21:28:51]OFD Sender: Processing packet 49873 [packets to send 21, broken 20] [21:28:51]ProducePacketName [21:28:51]name=ofd_packets/00049873 [21:28:51]OFD Sender: To server: pG, [21:28:51]CommunicateWithHost lk.salyk.kg:30040 [21:28:51]ConnectInit lk.salyk.kg [21:28:51]line 0 [21:28:51]written 0, free lines is 4095 [21:28:51]Connected sock=10 [21:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A2 01 00 00 86 21 9A 01 FF 26 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 67 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C2 00 00 35 04 06 00 4A 01 FD D2 F4 0C 75 22 BE EC A7 7D BF A8 [21:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7C FB 47 00 72 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D1 C2 00 00 F4 03 04 00 07 12 C2 66 B6 04 01 00 00 F7 FF 9A 35 4D 7C BA 7D [21:28:51]CommunicateWithHost err = 0 [21:28:51]CheckOFDResponse [21:28:51]1017 (14) - 77093643461234 [21:28:51]1041 (16) - 0000000000871800 [21:28:51]1040 (4) - 49873 [21:28:51]1012 (4) - 18.08.2024 15:23 [21:28:51]1206 (1) - 0 [21:28:51]OFD Sender: Remove packet 49873 [21:28:51]ProducePacketName [21:28:51]name=ofd_packets/00049873 [21:28:51]NVStorageDeleteData [21:28:51]Write to MH i2c: 01 00 00 04 0F 13 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 07 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 58 0C 7E [21:28:51]RasterBufferAndPrint [21:28:51]line [21:28:51]line [21:28:51]line [21:28:51]line [21:28:51]line [21:28:51]written 0, free lines is 3167 [21:28:51]MH_Cut [21:28:51]Write to MH i2c: D1 01 00 0B 0F 01 EC [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: D1 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: D1 01 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: D1 01 00 0B 0F 00 EB [21:28:51]Write to MH i2c: 01 00 00 0C 0F 1B [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:52]OFD Sender: No OFD packet to send [21:28:52]*** Cut start [21:28:52]*** Purtial cut [21:28:52]*** Stage 1: CUTSNS_PIN = 1 [21:28:52]Read from MH i2c: 01 [21:28:52]MH_I2C_Read... [21:28:52]*** Stop cut motor [21:28:53]*** Cut end [21:28:53]Read from MH i2c: 01 07 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [21:28:53]process_action close_receipt done [21:28:53]requested_data is exist [21:28:53]produce_requested_data [21:28:53]requested_item fm.sn is exist - process it [21:28:53]wFMCommunicate request_size=4 [21:28:53]MH_SAM_APDU [21:28:53]CAPDU: 80 11 00 00 [21:28:53]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:53]Read from MH i2c: E2 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 17 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [21:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:28:53]wFMCommunicate OK [21:28:53]requested_item fd.num is exist - process it [21:28:53]SAM_PROTO_GetFieldsCounters [21:28:53]wFMCommunicate request_size=4 [21:28:53]MH_SAM_APDU [21:28:53]CAPDU: 80 13 00 00 [21:28:53]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:53]Read from MH i2c: E2 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 62 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 62 00 0E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [21:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D1 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:53]wFMCommunicate OK [21:28:53]SAM_PROTO_GetFieldsCounters done [21:28:53]requested_item shift.num is exist - process it [21:28:53]requested_item shift.opened is exist - process it [21:28:53]req_shift_opened [21:28:53]FM_GetShiftState [21:28:53]SAM_PROTO_GetShiftState [21:28:53]wFMCommunicate request_size=4 [21:28:53]MH_SAM_APDU [21:28:53]CAPDU: 80 13 01 00 [21:28:53]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:53]Read from MH i2c: E2 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 0E 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B8 [21:28:53]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:28:53]wFMCommunicate OK [21:28:53]SAM_PROTO_GetShiftState done [21:28:53]FM_GetShiftState done [21:28:53]req_shift_opened done [21:28:53]requested_item shift.open_date is exist - process it [21:28:53]req_shift_open_date [21:28:53]req_shift_open_date done [21:28:53]produce_requested_data done [21:28:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49873,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:28:53]process_action_free close_receipt [21:28:53]json_value_free [21:28:53]json_value_free done [21:28:53]process_json_proto returns [21:28:53]Send response to host [21:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49873,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:28:53]free response buf [21:28:53]execute_script done [21:28:53]execute_script returns [21:28:53]free content buf [21:28:53]Sock 9.Close socket [21:28:53]Sock 9.Thread stoped [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [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:45]accept exits with 7 [21:31:45]New connection [21:31:45]New thread 3067198820 created [21:31:45]Thread 3067055460 joined [21:31:45]Waiting for new connection... [21:31:45] Sock 7.Parse request [21:31:45]Sock 7.Check first char [21:31:45]Sock 7.First char is OK [21:31:45]request: POST /json_proto HTTP/1.0 [21:31:45]Method: POST [21:31:45]URL: /json_proto [21:31:45]Method is POST - this is cgi request [21:31:45]url: /json_proto [21:31:45]query_string will be loaded in cgi processing [21:31:45]execute_cgi json_proto POST (null) [21:31:45]execute_cgi path=json_proto method=POST [21:31:45]POST find Content-Length [21:31:45]Host: 172.17.46.196:8080 [21:31:45]Content-Length: 884 [21:31:45]Content-Type: application/json [21:31:45] [21:31:45]POST finish read [21:31:45]Found Content-Length = 884 [21:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190049", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:45]execute_script... [21:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190049", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:45]POST & json_proto [21:31:45]process_json_proto [21:31:45]json parsed OK: [21:31:45]protocol is kg_v1.0 [21:31:45]action value=close_receipt [21:31:45]process_action close_receipt [21:31:45]cmd_close_receipt [21:31:45]MH_GetDate [21:31:45]Write to MH i2c: F0 00 00 10 0F 0E [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: F0 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: F0 09 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: F0 09 00 10 0F 00 43 68 C2 66 27 15 C2 66 4E [21:31:45]GetLastDocTimeStamp 1724016531 [21:31:45]current date 1724016707 [21:31:45]FM_GetShiftState [21:31:45]SAM_PROTO_GetShiftState [21:31:45]wFMCommunicate request_size=4 [21:31:45]MH_SAM_APDU [21:31:45]CAPDU: 80 13 01 00 [21:31:45]Write to MH i2c: E2 08 00 11 0F 80 13 01 00 00 00 00 00 9D [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:45]Read from MH i2c: E2 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 0E 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: E2 0E 00 11 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 BA [21:31:45]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:31:45]wFMCommunicate OK [21:31:45]SAM_PROTO_GetShiftState done [21:31:45]FM_GetShiftState done [21:31:45]opened in 1723939759 [21:31:45]opened+sec_in_day 1724026159 [21:31:45]quantity*price = 15000 [21:31:45]sum+1 = 15001 [21:31:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 410.00 НСП 1% : 3.63 НДС 12% : 43.54 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 140 18.08.2024 21:31 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49874 ФПД: 142026306401098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49874&fm=142026306401098&tin=02508201610067®Number=0000000000092546&sum=41000 0 [21:31:46]StoreToDocumentArchive [21:31:46]shift 466 fd 49874 [21:31:46]save to /storage/0466/doc_00049874 [21:31:46]save last doc name /storage/0466/doc_00049874 to /storage/kkm_last_doc_name [21:31:46]save OK [21:31:46]Clear old archive folders... [21:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=386 [21:31:46]tlvbuf is B6EFD940 [21:31:46]SAM_PROTO_ClearQueue [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 09 00 00 [21:31:46]Write to MH i2c: E2 08 00 1E 0F 80 09 00 00 00 00 00 00 9F [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [21:31:46]RAPDU: 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_ClearQueue done [21:31:46]KKMCreateOFDPacket [21:31:46]OFDProtocolAddRootSTLVToBuf [21:31:46]FM_MakeSignedData [21:31:46]FM_MakeSignedData [21:31:46]SAM_PROTO_SignData [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 0D 01 02 [21:31:46]Write to MH i2c: E2 08 00 1F 0F 80 0D 01 02 00 00 00 00 A7 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [21:31:46]RAPDU: 90 00 [21:31:46]wFMCommunicate OK [21:31:46]wFMCommunicate request_size=255 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [21:31:46]Write to MH i2c: E2 02 01 20 0F 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 E5 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [21:31:46]RAPDU: 90 00 [21:31:46]wFMCommunicate OK [21:31:46]wFMCommunicate request_size=145 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 0D 02 02 8C 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 43 68 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C2 00 00 35 04 06 00 81 2C 13 8A B3 4A [21:31:46]Write to MH i2c: E2 94 00 21 0F 80 0D 02 02 8C 00 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 43 68 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C2 00 00 35 04 06 00 81 2C 13 8A B3 4A 00 00 42 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [21:31:46]RAPDU: 90 00 [21:31:46]wFMCommunicate OK [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 0D 03 02 [21:31:46]Write to MH i2c: E2 08 00 22 0F 80 0D 03 02 00 00 00 00 AC [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0B 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0B 00 22 0F 00 58 9D 5C CF B0 27 77 A1 90 00 BC [21:31:46]RAPDU: 58 9D 5C CF B0 27 77 A1 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_SignData done [21:31:46]FM_MakeSignedData done [21:31:46]CreateOFDProtocolMessage [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 11 00 00 [21:31:46]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F7 [21:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:47]wFMCommunicate OK [21:31:47]CreateOFDProtocolMessage done [21:31:47]OFDSenderStorePacket 49874 [21:31:47]StoreOFDPacket docnum=49874 [21:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 96 01 00 00 66 9C 8E 01 8F 28 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 43 68 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C2 00 00 35 04 06 00 81 2C 13 8A B3 4A 58 9D 5C CF B0 27 77 A1 [21:31:47]CheckFolder [21:31:47]dirname=/storage/ofd_packets [21:31:47]CheckFolder done [21:31:47]ProducePacketName [21:31:47]name=ofd_packets/00049874 [21:31:47]NVStorageSaveData ofd_packets/00049874 [21:31:47]File name is /storage/ofd_packets/00049874 [21:31:47]Write 436 bytes [21:31:47]NVStorageSaveData done [21:31:47]OFDSenderStorePacket done [21:31:47]KKMCreateOFDPacket done [21:31:47]NVStorageSaveData kkm_last_timestamp [21:31:47]File name is /storage/kkm_last_timestamp [21:31:47]Write 4 bytes [21:31:47]NVStorageSaveData done [21:31:47]ExternCall_PrintAddStr [21:31:47]wPrintStart [21:31:47]Write to MH i2c: 01 00 00 24 0F 33 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 24 0F 00 00 00 00 00 FF 0F 48 [21:31:47]RasterBufferAndPrint [21:31:47]line Счет N : (3)190049 [21:31:47]line ИНН: 02508201610067 [21:31:47]line Контрольно-Кассовый Чек [21:31:47]line ПРОДАЖА [21:31:47]line Товар: 46230614 [21:31:47]line Сигареты Richmond Red Edition [21:31:47]line 1.000 * 150.00 [21:31:47]line = 150.00 [21:31:47]line НДС 12% НСП 1% [21:31:47]line > о реализуемом товаре [21:31:47]line Товар: 2000036220012 [21:31:47]line Кофе Капучино XL(GABB TRADE) [21:31:47]line 2.000 * 130.00 [21:31:47]line = 260.00 [21:31:47]line НДС 12% НСП 1% [21:31:47]line > о реализуемом товаре [21:31:47]line ИТОГО: 410.00 [21:31:47]line НСП 1% : 3.63 [21:31:47]line НДС 12% : 43.54 [21:31:47]line Наличными: 410.00 [21:31:47]line Безнал.: 0.00 [21:31:47]line Место: АЗС № 95 "Партнер Нефть" [21:31:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:31:47]line СНО: Общий режим [21:31:47]line Чек 140 18.08.2024 21:31 [21:31:47]line Смена: 466 ФФД: 1.0 [21:31:47]line ЗНМ: 0300000078 [21:31:47]line РНМ: 0000000000092546 [21:31:47]line Версия ККМ: 001 [21:31:47]line ФМ: 0000000000871800 [21:31:47]line ФД: 49874 [21:31:47]line ФПД: 142026306401098 [21:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49874&fm=142026306401098&tin=02508201610067®Number=0000000000092546&sum=41000 [21:31:47]OFD Sender: Processing packet 49874 [packets to send 21, broken 20] [21:31:47]ProducePacketName [21:31:47]name=ofd_packets/00049874 [21:31:47]OFD Sender: To server: pG, [21:31:47]CommunicateWithHost lk.salyk.kg:30040 [21:31:47]ConnectInit lk.salyk.kg [21:31:47]line 0 [21:31:47]written 0, free lines is 4095 [21:31:47]Connected sock=10 [21:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 96 01 00 00 66 9C 8E 01 8F 28 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 43 68 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C2 00 00 35 04 06 00 81 2C 13 8A B3 4A 58 9D 5C CF B0 27 77 A1 [21:31:47]Write to MH i2c: 01 00 00 54 0F 63 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 56 0C CC [21:31:47]RasterBufferAndPrint [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]line [21:31:47]written 0, free lines is 3164 [21:31:47]MH_Cut [21:31:47]Write to MH i2c: D1 01 00 5B 0F 01 3C [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: D1 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: D1 01 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: D1 01 00 5B 0F 00 3B [21:31:47]Write to MH i2c: 01 00 00 5C 0F 6B [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1A 5D 47 00 24 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D2 C2 00 00 F4 03 04 00 B7 12 C2 66 B6 04 01 00 00 AA B7 8F 3D D8 DF 23 DA [21:31:48]CommunicateWithHost err = 0 [21:31:48]CheckOFDResponse [21:31:48]1017 (14) - 77093643461234 [21:31:48]1041 (16) - 0000000000871800 [21:31:48]1040 (4) - 49874 [21:31:48]1012 (4) - 18.08.2024 15:26 [21:31:48]1206 (1) - 0 [21:31:48]OFD Sender: Remove packet 49874 [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00049874 [21:31:48]NVStorageDeleteData [21:31:48]OFD Sender: No OFD packet to send [21:31:48]*** Cut start [21:31:48]*** Purtial cut [21:31:48]*** CUTSNS_PIN = 0 [21:31:48]*** Stage 1: CUTSNS_PIN = 1 [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]*** Stop cut motor [21:31:50]*** Cut end [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 FF 0F 80 [21:31:50]process_action close_receipt done [21:31:50]requested_data is exist [21:31:50]produce_requested_data [21:31:50]requested_item fm.sn is exist - process it [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 11 00 00 [21:31:50]Write to MH i2c: E2 08 00 5D 0F 80 11 00 00 00 00 00 00 E6 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 5D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [21:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:31:50]wFMCommunicate OK [21:31:50]requested_item fd.num is exist - process it [21:31:50]SAM_PROTO_GetFieldsCounters [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 00 00 [21:31:50]Write to MH i2c: E2 08 00 5E 0F 80 13 00 00 00 00 00 00 E9 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 5E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [21:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetFieldsCounters done [21:31:51]requested_item shift.num is exist - process it [21:31:51]requested_item shift.opened is exist - process it [21:31:51]req_shift_opened [21:31:51]FM_GetShiftState [21:31:51]SAM_PROTO_GetShiftState [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 01 00 [21:31:51]Write to MH i2c: E2 08 00 5F 0F 80 13 01 00 00 00 00 00 EB [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 0E 00 5F 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 08 [21:31:51]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetShiftState done [21:31:51]FM_GetShiftState done [21:31:51]req_shift_opened done [21:31:51]requested_item shift.open_date is exist - process it [21:31:51]req_shift_open_date [21:31:51]req_shift_open_date done [21:31:51]produce_requested_data done [21:31:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49874,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:31:51]process_action_free close_receipt [21:31:51]json_value_free [21:31:51]json_value_free done [21:31:51]process_json_proto returns [21:31:51]Send response to host [21:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49874,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:31:51]free response buf [21:31:51]execute_script done [21:31:51]execute_script returns [21:31:51]free content buf [21:31:51]Sock 7.Close socket [21:31:51]Sock 7.Thread stoped [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:39]int [21:32:39]Write to MH i2c: 01 00 00 60 0F 6F [21:32:39]*** FLAG_PRN_KEY set [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 60 0F 00 08 00 00 00 FF 0F 8C [21:32:39]state=0 [21:32:39]Key pressed [21:32:39]Feed [21:32:39]Write to MH i2c: D8 00 00 61 0F 47 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D8 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D8 01 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D8 01 00 61 0F 00 48 [21:32:39]int [21:32:39]Write to MH i2c: 01 00 00 62 0F 71 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 62 0F 00 48 00 00 00 3C 00 FC [21:32:39]state=2 [21:32:39]Key pressed [21:32:39]int [21:32:39]Write to MH i2c: 01 00 00 63 0F 72 [21:32:39]*** FLAG_PRN_KEY reset [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 F5 0F 7D [21:32:39]state=2 [21:32:39]Stop feed [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:46]accept exits with 9 [21:37:46]New connection [21:37:46]New thread 3067055460 created [21:37:46]Thread 3067198820 joined [21:37:46]Waiting for new connection... [21:37:46] Sock 9.Parse request [21:37:46]Sock 9.Check first char [21:37:46]Sock 9.First char is OK [21:37:46]request: POST /json_proto HTTP/1.0 [21:37:46]Method: POST [21:37:46]URL: /json_proto [21:37:46]Method is POST - this is cgi request [21:37:46]url: /json_proto [21:37:46]query_string will be loaded in cgi processing [21:37:46]execute_cgi json_proto POST (null) [21:37:46]execute_cgi path=json_proto method=POST [21:37:46]POST find Content-Length [21:37:46]Host: 172.17.46.196:8080 [21:37:46]Content-Length: 820 [21:37:46]Content-Type: application/json [21:37:46] [21:37:46]POST finish read [21:37:46]Found Content-Length = 820 [21:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190050", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:46]execute_script... [21:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190050", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:46]POST & json_proto [21:37:46]process_json_proto [21:37:46]json parsed OK: [21:37:46]protocol is kg_v1.0 [21:37:46]action value=close_receipt [21:37:46]process_action close_receipt [21:37:46]cmd_close_receipt [21:37:46]MH_GetDate [21:37:46]Write to MH i2c: F0 00 00 64 0F 62 [21:37:46]Write i2c OK [21:37:46]MH_I2C_Read... [21:37:46]Read from MH i2c: F0 [21:37:46]MH_I2C_Read... [21:37:46]Read from MH i2c: F0 09 00 [21:37:46]MH_I2C_Read... [21:37:46]Read from MH i2c: F0 09 00 64 0F 00 AC 69 C2 66 27 15 C2 66 0C [21:37:46]GetLastDocTimeStamp 1724016707 [21:37:46]current date 1724017068 [21:37:46]FM_GetShiftState [21:37:46]SAM_PROTO_GetShiftState [21:37:46]wFMCommunicate request_size=4 [21:37:46]MH_SAM_APDU [21:37:46]CAPDU: 80 13 01 00 [21:37:46]Write to MH i2c: E2 08 00 65 0F 80 13 01 00 00 00 00 00 F1 [21:37:46]Write i2c OK [21:37:46]MH_I2C_Read... [21:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:46]Read from MH i2c: E2 [21:37:46]MH_I2C_Read... [21:37:46]Read from MH i2c: E2 0E 00 [21:37:46]MH_I2C_Read... [21:37:46]Read from MH i2c: E2 0E 00 65 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 0E [21:37:46]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:37:46]wFMCommunicate OK [21:37:46]SAM_PROTO_GetShiftState done [21:37:46]FM_GetShiftState done [21:37:46]opened in 1723939759 [21:37:46]opened+sec_in_day 1724026159 [21:37:46]quantity*price = 7500 [21:37:46]sum+1 = 7501 [21:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 141 18.08.2024 21:37 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49875 ФПД: 178041272130047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213748&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49875&fm=178041272130047&tin=02508201610067®Number=0000000000092546&sum=7500 0 [21:37:47]StoreToDocumentArchive [21:37:47]shift 466 fd 49875 [21:37:47]save to /storage/0466/doc_00049875 [21:37:47]save last doc name /storage/0466/doc_00049875 to /storage/kkm_last_doc_name [21:37:47]save OK [21:37:47]Clear old archive folders... [21:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=290 [21:37:47]tlvbuf is 00FE2770 [21:37:47]SAM_PROTO_ClearQueue [21:37:47]wFMCommunicate request_size=4 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 09 00 00 [21:37:47]Write to MH i2c: E2 08 00 72 0F 80 09 00 00 00 00 00 00 F3 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [21:37:47]RAPDU: 90 00 [21:37:47]wFMCommunicate OK [21:37:47]SAM_PROTO_ClearQueue done [21:37:47]KKMCreateOFDPacket [21:37:47]OFDProtocolAddRootSTLVToBuf [21:37:47]FM_MakeSignedData [21:37:47]FM_MakeSignedData [21:37:47]SAM_PROTO_SignData [21:37:47]wFMCommunicate request_size=4 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 0D 01 02 [21:37:47]Write to MH i2c: E2 08 00 73 0F 80 0D 01 02 00 00 00 00 FB [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [21:37:47]RAPDU: 90 00 [21:37:47]wFMCommunicate OK [21:37:47]wFMCommunicate request_size=255 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC 69 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [21:37:47]Write to MH i2c: E2 02 01 74 0F 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC 69 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 25 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [21:37:47]RAPDU: 90 00 [21:37:47]wFMCommunicate OK [21:37:47]wFMCommunicate request_size=49 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 0D 02 02 2C 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C2 00 00 35 04 06 00 A1 ED 76 C7 D9 FF [21:37:47]Write to MH i2c: E2 34 00 75 0F 80 0D 02 02 2C 00 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C2 00 00 35 04 06 00 A1 ED 76 C7 D9 FF 00 00 5C [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [21:37:47]RAPDU: 90 00 [21:37:47]wFMCommunicate OK [21:37:47]wFMCommunicate request_size=4 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 0D 03 02 [21:37:47]Write to MH i2c: E2 08 00 76 0F 80 0D 03 02 00 00 00 00 00 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 0B 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 0B 00 76 0F 00 BD 9C 42 79 1E 2D 04 FE 90 00 62 [21:37:47]RAPDU: BD 9C 42 79 1E 2D 04 FE 90 00 [21:37:47]wFMCommunicate OK [21:37:47]SAM_PROTO_SignData done [21:37:47]FM_MakeSignedData done [21:37:47]CreateOFDProtocolMessage [21:37:47]wFMCommunicate request_size=4 [21:37:47]MH_SAM_APDU [21:37:47]CAPDU: 80 11 00 00 [21:37:47]Write to MH i2c: E2 08 00 77 0F 80 11 00 00 00 00 00 00 00 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:47]Read from MH i2c: E2 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 17 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: E2 17 00 77 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [21:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:37:47]wFMCommunicate OK [21:37:47]CreateOFDProtocolMessage done [21:37:47]OFDSenderStorePacket 49875 [21:37:47]StoreOFDPacket docnum=49875 [21:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 36 01 00 00 AB CD 2E 01 ED 93 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC 69 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C2 00 00 35 04 06 00 A1 ED 76 C7 D9 FF BD 9C 42 79 1E 2D 04 FE [21:37:47]CheckFolder [21:37:47]dirname=/storage/ofd_packets [21:37:47]CheckFolder done [21:37:47]ProducePacketName [21:37:47]name=ofd_packets/00049875 [21:37:47]NVStorageSaveData ofd_packets/00049875 [21:37:47]File name is /storage/ofd_packets/00049875 [21:37:47]Write 340 bytes [21:37:47]NVStorageSaveData done [21:37:47]OFDSenderStorePacket done [21:37:47]KKMCreateOFDPacket done [21:37:47]NVStorageSaveData kkm_last_timestamp [21:37:47]File name is /storage/kkm_last_timestamp [21:37:47]Write 4 bytes [21:37:47]NVStorageSaveData done [21:37:47]ExternCall_PrintAddStr [21:37:47]wPrintStart [21:37:47]Write to MH i2c: 01 00 00 78 0F 87 [21:37:47]Write i2c OK [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: 01 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: 01 07 00 [21:37:47]MH_I2C_Read... [21:37:47]Read from MH i2c: 01 07 00 78 0F 00 00 00 00 00 FF 0F 9C [21:37:47]RasterBufferAndPrint [21:37:47]line Счет N : (3)190050 [21:37:47]line ИНН: 02508201610067 [21:37:47]line Контрольно-Кассовый Чек [21:37:47]line ПРОДАЖА [21:37:47]line Товар: 4870001154059 [21:37:47]line Напиток Lipton IceTea 0,5л зел чай [21:37:47]line 1.000 * 75.00 [21:37:47]line = 75.00 [21:37:47]line НДС 12% НСП 1% [21:37:47]line > о реализуемом товаре [21:37:47]line ИТОГО: 75.00 [21:37:47]line НСП 1% : 0.66 [21:37:47]line НДС 12% : 7.96 [21:37:47]line Наличными: 0.00 [21:37:47]line Безнал.: 75.00 [21:37:47]line Место: АЗС № 95 "Партнер Нефть" [21:37:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:37:47]line СНО: Общий режим [21:37:47]line Чек 141 18.08.2024 21:37 [21:37:47]line Смена: 466 ФФД: 1.0 [21:37:47]line ЗНМ: 0300000078 [21:37:47]line РНМ: 0000000000092546 [21:37:47]line Версия ККМ: 001 [21:37:47]line Платежная система: O! деньги [21:37:47]line ФМ: 0000000000871800 [21:37:47]line ФД: 49875 [21:37:47]line ФПД: 178041272130047 [21:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213748&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49875&fm=178041272130047&tin=02508201610067®Number=0000000000092546&sum=7500 [21:37:48]OFD Sender: Processing packet 49875 [packets to send 21, broken 20] [21:37:48]ProducePacketName [21:37:48]name=ofd_packets/00049875 [21:37:48]OFD Sender: To server: pG, [21:37:48]CommunicateWithHost lk.salyk.kg:30040 [21:37:48]ConnectInit lk.salyk.kg [21:37:48]line 0 [21:37:48]written 0, free lines is 4095 [21:37:48]Connected sock=10 [21:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 36 01 00 00 AB CD 2E 01 ED 93 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC 69 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D3 C2 00 00 35 04 06 00 A1 ED 76 C7 D9 FF BD 9C 42 79 1E 2D 04 FE [21:37:48]Write to MH i2c: 01 00 00 A3 0F B2 [21:37:48]Write i2c OK [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: 01 [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: 01 07 00 [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 B5 0C 7A [21:37:48]RasterBufferAndPrint [21:37:48]line [21:37:48]line [21:37:48]line [21:37:48]line [21:37:48]line [21:37:48]written 0, free lines is 3259 [21:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1D 06 47 00 38 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 38 30 30 10 04 04 00 D3 C2 00 00 F4 03 04 00 20 14 C2 66 B6 04 01 00 00 95 2F 28 13 08 24 EB D7 [21:37:48]CommunicateWithHost err = 0 [21:37:48]CheckOFDResponse [21:37:48]1017 (14) - 77093643461234 [21:37:48]1041 (16) - 0000000000871800 [21:37:48]1040 (4) - 49875 [21:37:48]1012 (4) - 18.08.2024 15:32 [21:37:48]1206 (1) - 0 [21:37:48]OFD Sender: Remove packet 49875 [21:37:48]ProducePacketName [21:37:48]name=ofd_packets/00049875 [21:37:48]NVStorageDeleteData [21:37:48]MH_Cut [21:37:48]Write to MH i2c: D1 01 00 AA 0F 01 8B [21:37:48]Write i2c OK [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: D1 [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: D1 01 00 [21:37:48]MH_I2C_Read... [21:37:48]Read from MH i2c: D1 01 00 AA 0F 00 8A [21:37:48]Write to MH i2c: 01 00 00 AB 0F BA [21:37:48]Write i2c OK [21:37:48]MH_I2C_Read... [21:37:49]OFD Sender: No OFD packet to send [21:37:49]*** Cut start [21:37:49]*** Purtial cut [21:37:49]*** Stage 1: CUTSNS_PIN = 1 [21:37:49]Read from MH i2c: 01 [21:37:49]MH_I2C_Read... [21:37:49]*** Stop cut motor [21:37:49]*** Cut end [21:37:49]Read from MH i2c: 01 07 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [21:37:49]process_action close_receipt done [21:37:49]requested_data is exist [21:37:49]produce_requested_data [21:37:49]requested_item fm.sn is exist - process it [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 11 00 00 [21:37:49]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 17 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 80 [21:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:37:49]wFMCommunicate OK [21:37:49]requested_item fd.num is exist - process it [21:37:49]SAM_PROTO_GetFieldsCounters [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 13 00 00 [21:37:49]Write to MH i2c: E2 08 00 AD 0F 80 13 00 00 00 00 00 00 38 [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 62 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 62 00 AD 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [21:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:49]wFMCommunicate OK [21:37:49]SAM_PROTO_GetFieldsCounters done [21:37:49]requested_item shift.num is exist - process it [21:37:49]requested_item shift.opened is exist - process it [21:37:49]req_shift_opened [21:37:49]FM_GetShiftState [21:37:49]SAM_PROTO_GetShiftState [21:37:49]wFMCommunicate request_size=4 [21:37:49]MH_SAM_APDU [21:37:49]CAPDU: 80 13 01 00 [21:37:49]Write to MH i2c: E2 08 00 AE 0F 80 13 01 00 00 00 00 00 3A [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:49]Read from MH i2c: E2 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 0E 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: E2 0E 00 AE 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 57 [21:37:49]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:37:49]wFMCommunicate OK [21:37:49]SAM_PROTO_GetShiftState done [21:37:49]FM_GetShiftState done [21:37:49]req_shift_opened done [21:37:49]requested_item shift.open_date is exist - process it [21:37:49]req_shift_open_date [21:37:49]req_shift_open_date done [21:37:49]produce_requested_data done [21:37:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49875,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:37:49]process_action_free close_receipt [21:37:49]json_value_free [21:37:49]json_value_free done [21:37:49]process_json_proto returns [21:37:49]Send response to host [21:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49875,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:37:49]free response buf [21:37:49]execute_script done [21:37:49]execute_script returns [21:37:49]free content buf [21:37:49]Sock 9.Close socket [21:37:49]Sock 9.Thread stoped [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:21]accept exits with 7 [21:40:21]New connection [21:40:21]New thread 3067198820 created [21:40:21]Thread 3067055460 joined [21:40:21]Waiting for new connection... [21:40:21] Sock 7.Parse request [21:40:21]Sock 7.Check first char [21:40:21]Sock 7.First char is OK [21:40:21]request: POST /json_proto HTTP/1.0 [21:40:21]Method: POST [21:40:21]URL: /json_proto [21:40:21]Method is POST - this is cgi request [21:40:21]url: /json_proto [21:40:21]query_string will be loaded in cgi processing [21:40:21]execute_cgi json_proto POST (null) [21:40:21]execute_cgi path=json_proto method=POST [21:40:21]POST find Content-Length [21:40:21]Host: 172.17.46.196:8080 [21:40:21]Content-Length: 626 [21:40:21]Content-Type: application/json [21:40:21] [21:40:21]POST finish read [21:40:21]Found Content-Length = 626 [21:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190051", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:21]execute_script... [21:40:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190051", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:21]POST & json_proto [21:40:21]process_json_proto [21:40:21]json parsed OK: [21:40:21]protocol is kg_v1.0 [21:40:21]action value=close_receipt [21:40:21]process_action close_receipt [21:40:21]cmd_close_receipt [21:40:21]MH_GetDate [21:40:21]Write to MH i2c: F0 00 00 AF 0F AD [21:40:21]Write i2c OK [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 09 00 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 09 00 AF 0F 00 47 6A C2 66 27 15 C2 66 F3 [21:40:21]GetLastDocTimeStamp 1724017068 [21:40:21]current date 1724017223 [21:40:21]FM_GetShiftState [21:40:21]SAM_PROTO_GetShiftState [21:40:21]wFMCommunicate request_size=4 [21:40:21]MH_SAM_APDU [21:40:21]CAPDU: 80 13 01 00 [21:40:21]Write to MH i2c: E2 08 00 B0 0F 80 13 01 00 00 00 00 00 3C [21:40:21]Write i2c OK [21:40:21]MH_I2C_Read... [21:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:21]Read from MH i2c: E2 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: E2 0E 00 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: E2 0E 00 B0 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 59 [21:40:21]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:40:21]wFMCommunicate OK [21:40:21]SAM_PROTO_GetShiftState done [21:40:21]FM_GetShiftState done [21:40:21]opened in 1723939759 [21:40:21]opened+sec_in_day 1724026159 [21:40:21]quantity*price = 13500 [21:40:21]sum+1 = 13501 [21:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 142 18.08.2024 21:40 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49876 ФПД: 148056976821576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214023&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49876&fm=148056976821576&tin=02508201610067®Number=0000000000092546&sum=13500 0 [21:40:22]StoreToDocumentArchive [21:40:22]shift 466 fd 49876 [21:40:22]save to /storage/0466/doc_00049876 [21:40:22]save last doc name /storage/0466/doc_00049876 to /storage/kkm_last_doc_name [21:40:22]save OK [21:40:22]Clear old archive folders... [21:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:40:22]tlvbuf is B6EFDB10 [21:40:22]SAM_PROTO_ClearQueue [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 09 00 00 [21:40:22]Write to MH i2c: E2 08 00 BD 0F 80 09 00 00 00 00 00 00 3E [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 BD 0F 00 90 00 40 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]SAM_PROTO_ClearQueue done [21:40:22]KKMCreateOFDPacket [21:40:22]OFDProtocolAddRootSTLVToBuf [21:40:22]FM_MakeSignedData [21:40:22]FM_MakeSignedData [21:40:22]SAM_PROTO_SignData [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 01 02 [21:40:22]Write to MH i2c: E2 08 00 BE 0F 80 0D 01 02 00 00 00 00 46 [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=255 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 47 6A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [21:40:22]Write to MH i2c: E2 02 01 BF 0F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 47 6A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 4B [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=37 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C2 00 00 35 04 06 00 86 A8 33 82 8D 48 [21:40:22]Write to MH i2c: E2 28 00 C0 0F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C2 00 00 35 04 06 00 86 A8 33 82 8D 48 00 00 E6 [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 03 02 [21:40:22]Write to MH i2c: E2 08 00 C1 0F 80 0D 03 02 00 00 00 00 4B [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 0B 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 0B 00 C1 0F 00 A6 5A 31 E2 78 8C 3E 97 90 00 38 [21:40:22]RAPDU: A6 5A 31 E2 78 8C 3E 97 90 00 [21:40:22]wFMCommunicate OK [21:40:22]SAM_PROTO_SignData done [21:40:22]FM_MakeSignedData done [21:40:22]CreateOFDProtocolMessage [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 11 00 00 [21:40:22]Write to MH i2c: E2 08 00 C2 0F 80 11 00 00 00 00 00 00 4B [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 17 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 17 00 C2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [21:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:40:22]wFMCommunicate OK [21:40:22]CreateOFDProtocolMessage done [21:40:22]OFDSenderStorePacket 49876 [21:40:22]StoreOFDPacket docnum=49876 [21:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 42 B6 22 01 F0 5F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 47 6A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C2 00 00 35 04 06 00 86 A8 33 82 8D 48 A6 5A 31 E2 78 8C 3E 97 [21:40:22]CheckFolder [21:40:22]dirname=/storage/ofd_packets [21:40:22]CheckFolder done [21:40:22]ProducePacketName [21:40:22]name=ofd_packets/00049876 [21:40:22]NVStorageSaveData ofd_packets/00049876 [21:40:22]File name is /storage/ofd_packets/00049876 [21:40:22]Write 328 bytes [21:40:22]NVStorageSaveData done [21:40:22]OFDSenderStorePacket done [21:40:22]KKMCreateOFDPacket done [21:40:22]NVStorageSaveData kkm_last_timestamp [21:40:22]File name is /storage/kkm_last_timestamp [21:40:22]Write 4 bytes [21:40:22]NVStorageSaveData done [21:40:22]ExternCall_PrintAddStr [21:40:22]wPrintStart [21:40:22]Write to MH i2c: 01 00 00 C3 0F D2 [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 07 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [21:40:22]RasterBufferAndPrint [21:40:22]line Счет N : (3)190051 [21:40:22]line ИНН: 02508201610067 [21:40:22]line Контрольно-Кассовый Чек [21:40:22]line ПРОДАЖА [21:40:22]line Товар: 48741224 [21:40:22]line Сигареты Winston Super Slims Blue [21:40:22]line 1.000 * 135.00 [21:40:22]line = 135.00 [21:40:22]line НДС 12% НСП 1% [21:40:22]line > о реализуемом товаре [21:40:22]line ИТОГО: 135.00 [21:40:22]line НСП 1% : 1.19 [21:40:22]line НДС 12% : 14.34 [21:40:22]line Наличными: 135.00 [21:40:22]line Безнал.: 0.00 [21:40:22]line Место: АЗС № 95 "Партнер Нефть" [21:40:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:40:22]line СНО: Общий режим [21:40:22]line Чек 142 18.08.2024 21:40 [21:40:22]line Смена: 466 ФФД: 1.0 [21:40:22]line ЗНМ: 0300000078 [21:40:22]line РНМ: 0000000000092546 [21:40:22]line Версия ККМ: 001 [21:40:22]line ФМ: 0000000000871800 [21:40:22]line ФД: 49876 [21:40:22]line ФПД: 148056976821576 [21:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214023&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49876&fm=148056976821576&tin=02508201610067®Number=0000000000092546&sum=13500 [21:40:23]line 0 [21:40:23]OFD Sender: Processing packet 49876 [packets to send 21, broken 20] [21:40:23]ProducePacketName [21:40:23]name=ofd_packets/00049876 [21:40:23]OFD Sender: To server: pG, [21:40:23]CommunicateWithHost lk.salyk.kg:30040 [21:40:23]ConnectInit lk.salyk.kg [21:40:23]written 0, free lines is 4095 [21:40:23]Connected sock=10 [21:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 42 B6 22 01 F0 5F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 47 6A C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C2 00 00 35 04 06 00 86 A8 33 82 8D 48 A6 5A 31 E2 78 8C 3E 97 [21:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B5 7A 47 00 41 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D4 C2 00 00 F4 03 04 00 BB 14 C2 66 B6 04 01 00 00 2E D7 91 31 32 31 63 4B [21:40:23]CommunicateWithHost err = 0 [21:40:23]CheckOFDResponse [21:40:23]1017 (14) - 77093643461234 [21:40:23]1041 (16) - 0000000000871800 [21:40:23]1040 (4) - 49876 [21:40:23]1012 (4) - 18.08.2024 15:35 [21:40:23]1206 (1) - 0 [21:40:23]OFD Sender: Remove packet 49876 [21:40:23]ProducePacketName [21:40:23]name=ofd_packets/00049876 [21:40:23]NVStorageDeleteData [21:40:23]Write to MH i2c: 01 00 00 EC 0F FB [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 07 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 07 00 EC 0F 00 00 00 00 00 CA 0C D8 [21:40:23]RasterBufferAndPrint [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]written 0, free lines is 3280 [21:40:23]MH_Cut [21:40:23]Write to MH i2c: D1 01 00 F3 0F 01 D4 [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 01 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 01 00 F3 0F 00 D3 [21:40:23]Write to MH i2c: 01 00 00 F4 0F 03 [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:24]OFD Sender: No OFD packet to send [21:40:24]*** Cut start [21:40:24]*** Purtial cut [21:40:24]*** CUTSNS_PIN = 0 [21:40:24]*** Stage 1: CUTSNS_PIN = 1 [21:40:26]Read from MH i2c: 01 [21:40:26]MH_I2C_Read... [21:40:26]*** Stop cut motor [21:40:26]*** Cut end [21:40:26]Read from MH i2c: 01 07 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 FF 0F 18 [21:40:26]process_action close_receipt done [21:40:26]requested_data is exist [21:40:26]produce_requested_data [21:40:26]requested_item fm.sn is exist - process it [21:40:26]wFMCommunicate request_size=4 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 11 00 00 [21:40:26]Write to MH i2c: E2 08 00 F5 0F 80 11 00 00 00 00 00 00 7E [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 17 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 17 00 F5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C9 [21:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:40:26]wFMCommunicate OK [21:40:26]requested_item fd.num is exist - process it [21:40:26]SAM_PROTO_GetFieldsCounters [21:40:26]wFMCommunicate request_size=4 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 13 00 00 [21:40:26]Write to MH i2c: E2 08 00 F6 0F 80 13 00 00 00 00 00 00 81 [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 62 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 62 00 F6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [21: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:26]wFMCommunicate OK [21:40:26]SAM_PROTO_GetFieldsCounters done [21:40:26]requested_item shift.num is exist - process it [21:40:26]requested_item shift.opened is exist - process it [21:40:26]req_shift_opened [21:40:26]FM_GetShiftState [21:40:26]SAM_PROTO_GetShiftState [21:40:26]wFMCommunicate request_size=4 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 13 01 00 [21:40:26]Write to MH i2c: E2 08 00 F7 0F 80 13 01 00 00 00 00 00 83 [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 0E 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 0E 00 F7 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A0 [21:40:26]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:40:26]wFMCommunicate OK [21:40:26]SAM_PROTO_GetShiftState done [21:40:26]FM_GetShiftState done [21:40:26]req_shift_opened done [21:40:26]requested_item shift.open_date is exist - process it [21:40:26]req_shift_open_date [21:40:26]req_shift_open_date done [21:40:26]produce_requested_data done [21:40:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49876,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:40:26]process_action_free close_receipt [21:40:26]json_value_free [21:40:26]json_value_free done [21:40:26]process_json_proto returns [21:40:26]Send response to host [21:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49876,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:40:26]free response buf [21:40:26]execute_script done [21:40:26]execute_script returns [21:40:26]free content buf [21:40:26]Sock 7.Close socket [21:40:26]Sock 7.Thread stoped [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:20]accept exits with 9 [21:44:20]New connection [21:44:20]New thread 3067055460 created [21:44:20]Thread 3067198820 joined [21:44:20]Waiting for new connection... [21:44:20] Sock 9.Parse request [21:44:20]Sock 9.Check first char [21:44:20]Sock 9.First char is OK [21:44:20]request: POST /json_proto HTTP/1.0 [21:44:20]Method: POST [21:44:20]URL: /json_proto [21:44:20]Method is POST - this is cgi request [21:44:20]url: /json_proto [21:44:20]query_string will be loaded in cgi processing [21:44:20]execute_cgi json_proto POST (null) [21:44:20]execute_cgi path=json_proto method=POST [21:44:20]POST find Content-Length [21:44:20]Host: 172.17.46.196:8080 [21:44:20]Content-Length: 649 [21:44:20]Content-Type: application/json [21:44:20] [21:44:20]POST finish read [21:44:20]Found Content-Length = 649 [21:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190052", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:20]execute_script... [21:44:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190052", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:20]POST & json_proto [21:44:20]process_json_proto [21:44:20]json parsed OK: [21:44:20]protocol is kg_v1.0 [21:44:20]action value=close_receipt [21:44:20]process_action close_receipt [21:44:20]cmd_close_receipt [21:44:20]MH_GetDate [21:44:20]Write to MH i2c: F0 00 00 F8 0F F6 [21:44:20]Write i2c OK [21:44:20]MH_I2C_Read... [21:44:20]Read from MH i2c: F0 [21:44:20]MH_I2C_Read... [21:44:20]Read from MH i2c: F0 09 00 [21:44:20]MH_I2C_Read... [21:44:20]Read from MH i2c: F0 09 00 F8 0F 00 37 6B C2 66 27 15 C2 66 2D [21:44:20]GetLastDocTimeStamp 1724017223 [21:44:20]current date 1724017463 [21:44:20]FM_GetShiftState [21:44:20]SAM_PROTO_GetShiftState [21:44:20]wFMCommunicate request_size=4 [21:44:20]MH_SAM_APDU [21:44:20]CAPDU: 80 13 01 00 [21:44:20]Write to MH i2c: E2 08 00 F9 0F 80 13 01 00 00 00 00 00 85 [21:44:20]Write i2c OK [21:44:20]MH_I2C_Read... [21:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:20]Read from MH i2c: E2 [21:44:20]MH_I2C_Read... [21:44:20]Read from MH i2c: E2 0E 00 [21:44:20]MH_I2C_Read... [21:44:20]Read from MH i2c: E2 0E 00 F9 0F 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A2 [21:44:20]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:44:20]wFMCommunicate OK [21:44:20]SAM_PROTO_GetShiftState done [21:44:20]FM_GetShiftState done [21:44:20]opened in 1723939759 [21:44:20]opened+sec_in_day 1724026159 [21:44:20]quantity*price = 8500 [21:44:20]sum+1 = 8501 [21:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 143 18.08.2024 21:44 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49877 ФПД: 174609710455586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214423&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49877&fm=174609710455586&tin=02508201610067®Number=0000000000092546&sum=8500 0 [21:44:22]StoreToDocumentArchive [21:44:22]shift 466 fd 49877 [21:44:22]save to /storage/0466/doc_00049877 [21:44:22]save last doc name /storage/0466/doc_00049877 to /storage/kkm_last_doc_name [21:44:22]save OK [21:44:22]Clear old archive folders... [21:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:44:22]tlvbuf is B6EE4350 [21:44:22]SAM_PROTO_ClearQueue [21:44:22]wFMCommunicate request_size=4 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 09 00 00 [21:44:22]Write to MH i2c: E2 08 00 06 10 80 09 00 00 00 00 00 00 88 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 06 10 00 90 00 8A [21:44:22]RAPDU: 90 00 [21:44:22]wFMCommunicate OK [21:44:22]SAM_PROTO_ClearQueue done [21:44:22]KKMCreateOFDPacket [21:44:22]OFDProtocolAddRootSTLVToBuf [21:44:22]FM_MakeSignedData [21:44:22]FM_MakeSignedData [21:44:22]SAM_PROTO_SignData [21:44:22]wFMCommunicate request_size=4 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 0D 01 02 [21:44:22]Write to MH i2c: E2 08 00 07 10 80 0D 01 02 00 00 00 00 90 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [21:44:22]RAPDU: 90 00 [21:44:22]wFMCommunicate OK [21:44:22]wFMCommunicate request_size=255 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 37 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [21:44:22]Write to MH i2c: E2 02 01 08 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 37 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 99 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [21:44:22]RAPDU: 90 00 [21:44:22]wFMCommunicate OK [21:44:22]wFMCommunicate request_size=39 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C2 00 00 35 04 06 00 9E CE 7D C4 1B 22 [21:44:22]Write to MH i2c: E2 2A 00 09 10 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C2 00 00 35 04 06 00 9E CE 7D C4 1B 22 00 00 C7 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [21:44:22]RAPDU: 90 00 [21:44:22]wFMCommunicate OK [21:44:22]wFMCommunicate request_size=4 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 0D 03 02 [21:44:22]Write to MH i2c: E2 08 00 0A 10 80 0D 03 02 00 00 00 00 95 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 0B 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 0B 00 0A 10 00 9C 5A C0 2A FB 39 CB A6 90 00 1B [21:44:22]RAPDU: 9C 5A C0 2A FB 39 CB A6 90 00 [21:44:22]wFMCommunicate OK [21:44:22]SAM_PROTO_SignData done [21:44:22]FM_MakeSignedData done [21:44:22]CreateOFDProtocolMessage [21:44:22]wFMCommunicate request_size=4 [21:44:22]MH_SAM_APDU [21:44:22]CAPDU: 80 11 00 00 [21:44:22]Write to MH i2c: E2 08 00 0B 10 80 11 00 00 00 00 00 00 95 [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:22]Read from MH i2c: E2 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 17 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: E2 17 00 0B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E0 [21:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:44:22]wFMCommunicate OK [21:44:22]CreateOFDProtocolMessage done [21:44:22]OFDSenderStorePacket 49877 [21:44:22]StoreOFDPacket docnum=49877 [21:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 14 D5 24 01 6A FB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 37 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C2 00 00 35 04 06 00 9E CE 7D C4 1B 22 9C 5A C0 2A FB 39 CB A6 [21:44:22]CheckFolder [21:44:22]dirname=/storage/ofd_packets [21:44:22]CheckFolder done [21:44:22]ProducePacketName [21:44:22]name=ofd_packets/00049877 [21:44:22]NVStorageSaveData ofd_packets/00049877 [21:44:22]File name is /storage/ofd_packets/00049877 [21:44:22]Write 330 bytes [21:44:22]NVStorageSaveData done [21:44:22]OFDSenderStorePacket done [21:44:22]KKMCreateOFDPacket done [21:44:22]NVStorageSaveData kkm_last_timestamp [21:44:22]File name is /storage/kkm_last_timestamp [21:44:22]Write 4 bytes [21:44:22]NVStorageSaveData done [21:44:22]ExternCall_PrintAddStr [21:44:22]wPrintStart [21:44:22]Write to MH i2c: 01 00 00 0C 10 1C [21:44:22]Write i2c OK [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: 01 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: 01 07 00 [21:44:22]MH_I2C_Read... [21:44:22]Read from MH i2c: 01 07 00 0C 10 00 00 00 00 00 FF 0F 31 [21:44:22]RasterBufferAndPrint [21:44:22]line Счет N : (3)190052 [21:44:22]line ИНН: 02508201610067 [21:44:22]line Контрольно-Кассовый Чек [21:44:22]line ПРОДАЖА [21:44:22]line Товар: 4870227272957 [21:44:22]line Лимонад Sunbel Тархун 1л [21:44:22]line 1.000 * 85.00 [21:44:22]line = 85.00 [21:44:22]line НДС 12% НСП 1% [21:44:22]line > о реализуемом товаре [21:44:22]line ИТОГО: 85.00 [21:44:22]line НСП 1% : 0.75 [21:44:22]line НДС 12% : 9.03 [21:44:22]line Наличными: 85.00 [21:44:22]line Безнал.: 0.00 [21:44:22]line Место: АЗС № 95 "Партнер Нефть" [21:44:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:44:22]line СНО: Общий режим [21:44:22]line Чек 143 18.08.2024 21:44 [21:44:22]line Смена: 466 ФФД: 1.0 [21:44:22]line ЗНМ: 0300000078 [21:44:22]line РНМ: 0000000000092546 [21:44:22]line Версия ККМ: 001 [21:44:22]line ФМ: 0000000000871800 [21:44:22]line ФД: 49877 [21:44:22]line ФПД: 174609710455586 [21:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214423&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49877&fm=174609710455586&tin=02508201610067®Number=0000000000092546&sum=8500 [21:44:22]line 0 [21:44:22]OFD Sender: Processing packet 49877 [packets to send 21, broken 20] [21:44:22]ProducePacketName [21:44:22]name=ofd_packets/00049877 [21:44:22]OFD Sender: To server: pG, [21:44:22]CommunicateWithHost lk.salyk.kg:30040 [21:44:22]ConnectInit lk.salyk.kg [21:44:22]written 0, free lines is 4095 [21:44:23]Write to MH i2c: 01 00 00 34 10 44 [21:44:23]Write i2c OK [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: 01 [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: 01 07 00 [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 E6 0C 3D [21:44:23]RasterBufferAndPrint [21:44:23]line [21:44:23]line [21:44:23]line [21:44:23]line [21:44:23]line [21:44:23]written 0, free lines is 3308 [21:44:23]MH_Cut [21:44:23]Write to MH i2c: D1 01 00 3B 10 01 1D [21:44:23]Write i2c OK [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: D1 [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: D1 01 00 [21:44:23]MH_I2C_Read... [21:44:23]Read from MH i2c: D1 01 00 3B 10 00 1C [21:44:23]Write to MH i2c: 01 00 00 3C 10 4C [21:44:23]Write i2c OK [21:44:23]MH_I2C_Read... [21:44:24]*** Cut start [21:44:24]*** Purtial cut [21:44:24]*** Stage 1: CUTSNS_PIN = 1 [21:44:24]Read from MH i2c: 01 [21:44:24]MH_I2C_Read... [21:44:24]*** Stop cut motor [21:44:24]*** Cut end [21:44:24]Read from MH i2c: 01 07 00 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: 01 07 00 3C 10 00 00 00 00 00 FF 0F 61 [21:44:24]process_action close_receipt done [21:44:24]requested_data is exist [21:44:24]produce_requested_data [21:44:24]requested_item fm.sn is exist - process it [21:44:24]wFMCommunicate request_size=4 [21:44:24]MH_SAM_APDU [21:44:24]CAPDU: 80 11 00 00 [21:44:24]Write to MH i2c: E2 08 00 3D 10 80 11 00 00 00 00 00 00 C7 [21:44:24]Write i2c OK [21:44:24]MH_I2C_Read... [21:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:24]Read from MH i2c: E2 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 17 00 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 17 00 3D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [21:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:44:24]wFMCommunicate OK [21:44:24]requested_item fd.num is exist - process it [21:44:24]SAM_PROTO_GetFieldsCounters [21:44:24]wFMCommunicate request_size=4 [21:44:24]MH_SAM_APDU [21:44:24]CAPDU: 80 13 00 00 [21:44:24]Write to MH i2c: E2 08 00 3E 10 80 13 00 00 00 00 00 00 CA [21:44:24]Write i2c OK [21:44:24]MH_I2C_Read... [21:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:24]Read from MH i2c: E2 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 62 00 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 62 00 3E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D5 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:24]wFMCommunicate OK [21:44:24]SAM_PROTO_GetFieldsCounters done [21:44:24]requested_item shift.num is exist - process it [21:44:24]requested_item shift.opened is exist - process it [21:44:24]req_shift_opened [21:44:24]FM_GetShiftState [21:44:24]SAM_PROTO_GetShiftState [21:44:24]wFMCommunicate request_size=4 [21:44:24]MH_SAM_APDU [21:44:24]CAPDU: 80 13 01 00 [21:44:24]Write to MH i2c: E2 08 00 3F 10 80 13 01 00 00 00 00 00 CC [21:44:24]Write i2c OK [21:44:24]MH_I2C_Read... [21:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:24]Read from MH i2c: E2 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 0E 00 [21:44:24]MH_I2C_Read... [21:44:24]Read from MH i2c: E2 0E 00 3F 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 E9 [21:44:24]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:44:24]wFMCommunicate OK [21:44:24]SAM_PROTO_GetShiftState done [21:44:24]FM_GetShiftState done [21:44:24]req_shift_opened done [21:44:24]requested_item shift.open_date is exist - process it [21:44:24]req_shift_open_date [21:44:24]req_shift_open_date done [21:44:24]produce_requested_data done [21:44:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49877,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:44:24]process_action_free close_receipt [21:44:24]json_value_free [21:44:24]json_value_free done [21:44:24]process_json_proto returns [21:44:24]Send response to host [21:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49877,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:44:24]free response buf [21:44:24]execute_script done [21:44:24]execute_script returns [21:44:24]free content buf [21:44:24]Sock 9.Close socket [21:44:24]Sock 9.Thread stoped [21:46:20]accept exits with 7 [21:46:20]New connection [21:46:20]New thread 3067198820 created [21:46:20]Thread 3067055460 joined [21:46:20]Waiting for new connection... [21:46:20] Sock 7.Parse request [21:46:20]Sock 7.Check first char [21:46:20]Sock 7.First char is OK [21:46:20]request: POST /json_proto HTTP/1.0 [21:46:20]Method: POST [21:46:20]URL: /json_proto [21:46:20]Method is POST - this is cgi request [21:46:20]url: /json_proto [21:46:20]query_string will be loaded in cgi processing [21:46:20]execute_cgi json_proto POST (null) [21:46:20]execute_cgi path=json_proto method=POST [21:46:20]POST find Content-Length [21:46:20]Host: 172.17.46.196:8080 [21:46:20]Content-Length: 1536 [21:46:20]Content-Type: application/json [21:46:20] [21:46:20]POST finish read [21:46:20]Found Content-Length = 1536 [21:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190053", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:20]execute_script... [21:46:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190053", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:20]POST & json_proto [21:46:20]process_json_proto [21:46:20]json parsed OK: [21:46:20]protocol is kg_v1.0 [21:46:20]action value=close_receipt [21:46:20]process_action close_receipt [21:46:20]cmd_close_receipt [21:46:20]MH_GetDate [21:46:20]Write to MH i2c: F0 00 00 40 10 3F [21:46:20]Write i2c OK [21:46:20]MH_I2C_Read... [21:46:20]Read from MH i2c: F0 [21:46:20]MH_I2C_Read... [21:46:20]Read from MH i2c: F0 09 00 [21:46:20]MH_I2C_Read... [21:46:20]Read from MH i2c: F0 09 00 40 10 00 AE 6B C2 66 27 15 C2 66 ED [21:46:20]GetLastDocTimeStamp 1724017463 [21:46:20]current date 1724017582 [21:46:20]FM_GetShiftState [21:46:20]SAM_PROTO_GetShiftState [21:46:20]wFMCommunicate request_size=4 [21:46:20]MH_SAM_APDU [21:46:20]CAPDU: 80 13 01 00 [21:46:20]Write to MH i2c: E2 08 00 41 10 80 13 01 00 00 00 00 00 CE [21:46:20]Write i2c OK [21:46:20]MH_I2C_Read... [21:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:20]Read from MH i2c: E2 [21:46:20]MH_I2C_Read... [21:46:20]Read from MH i2c: E2 0E 00 [21:46:20]MH_I2C_Read... [21:46:20]Read from MH i2c: E2 0E 00 41 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EB [21:46:20]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:46:20]wFMCommunicate OK [21:46:20]SAM_PROTO_GetShiftState done [21:46:20]FM_GetShiftState done [21:46:20]opened in 1723939759 [21:46:20]opened+sec_in_day 1724026159 [21:46:20]quantity*price = 5000 [21:46:20]sum+1 = 5001 [21:46:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001060077 Коньяк КВ Кыргызстан 0,2л 1.000 * 400.00 = 400.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 625.00 НСП 1% : 5.53 НДС 12% : 66.38 Наличными: 625.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 144 18.08.2024 21:46 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49878 ФПД: 126911308047138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214623&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49878&fm=126911308047138&tin=02508201610067®Number=0000000000092546&sum=62500 0 [21:46:22]StoreToDocumentArchive [21:46:22]shift 466 fd 49878 [21:46:22]save to /storage/0466/doc_00049878 [21:46:22]save last doc name /storage/0466/doc_00049878 to /storage/kkm_last_doc_name [21:46:22]save OK [21:46:22]Clear old archive folders... [21:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=640 [21:46:22]tlvbuf is B6EFD7E0 [21:46:22]SAM_PROTO_ClearQueue [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 09 00 00 [21:46:22]Write to MH i2c: E2 08 00 4E 10 80 09 00 00 00 00 00 00 D0 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [21:46:22]RAPDU: 90 00 [21:46:22]wFMCommunicate OK [21:46:22]SAM_PROTO_ClearQueue done [21:46:22]KKMCreateOFDPacket [21:46:22]OFDProtocolAddRootSTLVToBuf [21:46:22]FM_MakeSignedData [21:46:22]FM_MakeSignedData [21:46:22]SAM_PROTO_SignData [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 0D 01 02 [21:46:22]Write to MH i2c: E2 08 00 4F 10 80 0D 01 02 00 00 00 00 D8 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [21:46:22]RAPDU: 90 00 [21:46:22]wFMCommunicate OK [21:46:22]wFMCommunicate request_size=255 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 0D 02 02 FA 03 00 80 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 [21:46:22]Write to MH i2c: E2 02 01 50 10 80 0D 02 02 FA 00 03 00 80 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 00 00 A3 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [21:46:22]RAPDU: 90 00 [21:46:22]wFMCommunicate OK [21:46:22]wFMCommunicate request_size=255 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 0D 02 02 FA 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [21:46:22]Write to MH i2c: E2 02 01 51 10 80 0D 02 02 FA 00 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 63 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [21:46:22]RAPDU: 90 00 [21:46:22]wFMCommunicate OK [21:46:22]wFMCommunicate request_size=149 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C2 00 00 35 04 06 00 73 6C D7 6F 23 22 [21:46:22]Write to MH i2c: E2 98 00 52 10 80 0D 02 02 90 00 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C2 00 00 35 04 06 00 73 6C D7 6F 23 22 00 00 14 [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 03 00 52 10 00 90 00 D6 [21:46:22]RAPDU: 90 00 [21:46:22]wFMCommunicate OK [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 0D 03 02 [21:46:22]Write to MH i2c: E2 08 00 53 10 80 0D 03 02 00 00 00 00 DE [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:22]Read from MH i2c: E2 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0B 00 [21:46:22]MH_I2C_Read... [21:46:22]Read from MH i2c: E2 0B 00 53 10 00 78 78 49 EC E7 7D 26 40 90 00 CE [21:46:22]RAPDU: 78 78 49 EC E7 7D 26 40 90 00 [21:46:22]wFMCommunicate OK [21:46:22]SAM_PROTO_SignData done [21:46:22]FM_MakeSignedData done [21:46:22]CreateOFDProtocolMessage [21:46:22]wFMCommunicate request_size=4 [21:46:22]MH_SAM_APDU [21:46:22]CAPDU: 80 11 00 00 [21:46:22]Write to MH i2c: E2 08 00 54 10 80 11 00 00 00 00 00 00 DE [21:46:22]Write i2c OK [21:46:22]MH_I2C_Read... [21:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:23]Read from MH i2c: E2 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 17 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: E2 17 00 54 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [21:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:46:23]wFMCommunicate OK [21:46:23]CreateOFDProtocolMessage done [21:46:23]OFDSenderStorePacket 49878 [21:46:23]StoreOFDPacket docnum=49878 [21:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 02 00 00 41 57 8C 02 44 D5 5A 03 01 00 03 00 80 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C2 00 00 35 04 06 00 73 6C D7 6F 23 22 78 78 49 EC E7 7D 26 40 [21:46:23]CheckFolder [21:46:23]dirname=/storage/ofd_packets [21:46:23]CheckFolder done [21:46:23]ProducePacketName [21:46:23]name=ofd_packets/00049878 [21:46:23]NVStorageSaveData ofd_packets/00049878 [21:46:23]File name is /storage/ofd_packets/00049878 [21:46:23]Write 690 bytes [21:46:23]NVStorageSaveData done [21:46:23]OFDSenderStorePacket done [21:46:23]KKMCreateOFDPacket done [21:46:23]NVStorageSaveData kkm_last_timestamp [21:46:23]File name is /storage/kkm_last_timestamp [21:46:23]Write 4 bytes [21:46:23]NVStorageSaveData done [21:46:23]ExternCall_PrintAddStr [21:46:23]wPrintStart [21:46:23]Write to MH i2c: 01 00 00 55 10 65 [21:46:23]Write i2c OK [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: 01 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: 01 07 00 [21:46:23]MH_I2C_Read... [21:46:23]Read from MH i2c: 01 07 00 55 10 00 00 00 00 00 FF 0F 7A [21:46:23]RasterBufferAndPrint [21:46:23]line Счет N : (3)190053 [21:46:23]line ИНН: 02508201610067 [21:46:23]line Контрольно-Кассовый Чек [21:46:23]line ПРОДАЖА [21:46:23]line Товар: 4700000160358 [21:46:23]line Вода Легенда 1л [21:46:23]line 1.000 * 50.00 [21:46:23]line = 50.00 [21:46:23]line НДС 12% НСП 1% [21:46:23]line > о реализуемом товаре [21:46:23]line Товар: 4870001571030 [21:46:23]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [21:46:23]line 1.000 * 85.00 [21:46:23]line = 85.00 [21:46:23]line НДС 12% НСП 1% [21:46:23]line > о реализуемом товаре [21:46:23]line Товар: 4870022003305 [21:46:23]line Напиток Gorilla эн нат ж/б 0,5/0,45л [21:46:23]line 1.000 * 90.00 [21:46:23]line = 90.00 [21:46:23]line НДС 12% НСП 1% [21:46:23]line > о реализуемом товаре [21:46:23]line Товар: 4700001060077 [21:46:23]line Коньяк КВ Кыргызстан 0,2л [21:46:23]line 1.000 * 400.00 [21:46:23]line = 400.00 [21:46:23]line НДС 12% НСП 1% [21:46:23]line > о реализуемом товаре [21:46:23]line ИТОГО: 625.00 [21:46:23]line НСП 1% : 5.53 [21:46:23]line НДС 12% : 66.38 [21:46:23]line Наличными: 625.00 [21:46:23]line Безнал.: 0.00 [21:46:23]line Место: АЗС № 95 "Партнер Нефть" [21:46:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:46:23]line СНО: Общий режим [21:46:23]line Чек 144 18.08.2024 21:46 [21:46:23]line Смена: 466 ФФД: 1.0 [21:46:23]line ЗНМ: 0300000078 [21:46:23]line РНМ: 0000000000092546 [21:46:23]line Версия ККМ: 001 [21:46:23]line ФМ: 0000000000871800 [21:46:23]line ФД: 49878 [21:46:23]line ФПД: 126911308047138 [21:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214623&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49878&fm=126911308047138&tin=02508201610067®Number=0000000000092546&sum=62500 [21:46:23]line 0 [21:46:23]written 0, free lines is 4095 [21:46:24]Write to MH i2c: 01 00 00 91 10 A1 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: 01 07 00 91 10 00 00 00 00 00 C9 0B 7C [21:46:24]RasterBufferAndPrint [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]line [21:46:24]written 0, free lines is 3024 [21:46:24]MH_Cut [21:46:24]Write to MH i2c: D1 01 00 98 10 01 7A [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 01 00 [21:46:24]MH_I2C_Read... [21:46:24]Read from MH i2c: D1 01 00 98 10 00 79 [21:46:24]Write to MH i2c: 01 00 00 99 10 A9 [21:46:24]Write i2c OK [21:46:24]MH_I2C_Read... [21:46:24]*** Cut start [21:46:24]*** Purtial cut [21:46:24]*** CUTSNS_PIN = 0 [21:46:25]*** Stage 1: CUTSNS_PIN = 1 [21:46:27]Read from MH i2c: 01 [21:46:27]MH_I2C_Read... [21:46:27]*** Stop cut motor [21:46:27]*** Cut end [21:46:27]Read from MH i2c: 01 07 00 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: 01 07 00 99 10 00 00 00 00 00 FF 0F BE [21:46:27]process_action close_receipt done [21:46:27]requested_data is exist [21:46:27]produce_requested_data [21:46:27]requested_item fm.sn is exist - process it [21:46:27]wFMCommunicate request_size=4 [21:46:27]MH_SAM_APDU [21:46:27]CAPDU: 80 11 00 00 [21:46:27]Write to MH i2c: E2 08 00 9A 10 80 11 00 00 00 00 00 00 24 [21:46:27]Write i2c OK [21:46:27]MH_I2C_Read... [21:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:27]Read from MH i2c: E2 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 17 00 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 17 00 9A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [21:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:46:27]wFMCommunicate OK [21:46:27]requested_item fd.num is exist - process it [21:46:27]SAM_PROTO_GetFieldsCounters [21:46:27]wFMCommunicate request_size=4 [21:46:27]MH_SAM_APDU [21:46:27]CAPDU: 80 13 00 00 [21:46:27]Write to MH i2c: E2 08 00 9B 10 80 13 00 00 00 00 00 00 27 [21:46:27]Write i2c OK [21:46:27]MH_I2C_Read... [21:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:27]Read from MH i2c: E2 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 62 00 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 62 00 9B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D6 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:27]wFMCommunicate OK [21:46:27]SAM_PROTO_GetFieldsCounters done [21:46:27]requested_item shift.num is exist - process it [21:46:27]requested_item shift.opened is exist - process it [21:46:27]req_shift_opened [21:46:27]FM_GetShiftState [21:46:27]SAM_PROTO_GetShiftState [21:46:27]wFMCommunicate request_size=4 [21:46:27]MH_SAM_APDU [21:46:27]CAPDU: 80 13 01 00 [21:46:27]Write to MH i2c: E2 08 00 9C 10 80 13 01 00 00 00 00 00 29 [21:46:27]Write i2c OK [21:46:27]MH_I2C_Read... [21:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:27]Read from MH i2c: E2 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 0E 00 [21:46:27]MH_I2C_Read... [21:46:27]Read from MH i2c: E2 0E 00 9C 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 46 [21:46:27]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:46:27]wFMCommunicate OK [21:46:27]SAM_PROTO_GetShiftState done [21:46:27]FM_GetShiftState done [21:46:27]req_shift_opened done [21:46:27]requested_item shift.open_date is exist - process it [21:46:27]req_shift_open_date [21:46:27]req_shift_open_date done [21:46:27]produce_requested_data done [21:46:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49878,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:46:27]process_action_free close_receipt [21:46:27]json_value_free [21:46:27]json_value_free done [21:46:27]process_json_proto returns [21:46:27]Send response to host [21:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49878,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:46:27]free response buf [21:46:27]execute_script done [21:46:27]execute_script returns [21:46:27]free content buf [21:46:27]Sock 7.Close socket [21:46:27]Sock 7.Thread stoped [21:46:31]int [21:46:31]Write to MH i2c: 01 00 00 9D 10 AD [21:46:31]*** FLAG_PRN_KEY set [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 9D 10 00 08 00 00 00 FF 0F CA [21:46:31]state=0 [21:46:31]Key pressed [21:46:31]Feed [21:46:31]Write to MH i2c: D8 00 00 9E 10 85 [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D8 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D8 01 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: D8 01 00 9E 10 00 86 [21:46:31]int [21:46:31]Write to MH i2c: 01 00 00 9F 10 AF [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 9F 10 00 48 00 00 00 3C 00 3A [21:46:31]state=2 [21:46:31]Key pressed [21:46:31]int [21:46:31]Write to MH i2c: 01 00 00 A0 10 B0 [21:46:31]*** FLAG_PRN_KEY reset [21:46:31]Write i2c OK [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 [21:46:31]MH_I2C_Read... [21:46:31]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 FC 0F C2 [21:46:31]state=2 [21:46:31]Stop feed [21:46:36]ConnectInit Can't connect to host [21:46:36]CommunicateWithHost connect error [21:46:36]CommunicateWithHost err = -1 [21:46:36]OFD Sender: Server communicate error [21:46:36]OFD Sender: Processing packet 49877 [packets to send 22, broken 20] [21:46:36]ProducePacketName [21:46:36]name=ofd_packets/00049877 [21:46:36]OFD Sender: To server: pG, [21:46:36]CommunicateWithHost lk.salyk.kg:30040 [21:46:36]ConnectInit lk.salyk.kg [21:46:36]Connected sock=7 [21:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 14 D5 24 01 6A FB 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 37 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C2 00 00 35 04 06 00 9E CE 7D C4 1B 22 9C 5A C0 2A FB 39 CB A6 [21:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7E 0C 47 00 D2 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D5 C2 00 00 F4 03 04 00 30 16 C2 66 B6 04 01 00 00 E9 AE 58 3E F9 3E 39 2C [21:46:37]CommunicateWithHost err = 0 [21:46:37]CheckOFDResponse [21:46:37]1017 (14) - 77093643461234 [21:46:37]1041 (16) - 0000000000871800 [21:46:37]1040 (4) - 49877 [21:46:37]1012 (4) - 18.08.2024 15:41 [21:46:37]1206 (1) - 0 [21:46:37]OFD Sender: Remove packet 49877 [21:46:37]ProducePacketName [21:46:37]name=ofd_packets/00049877 [21:46:37]NVStorageDeleteData [21:46:37]OFD Sender: Processing packet 49878 [packets to send 21, broken 20] [21:46:37]ProducePacketName [21:46:37]name=ofd_packets/00049878 [21:46:37]OFD Sender: To server: pG, [21:46:37]CommunicateWithHost lk.salyk.kg:30040 [21:46:37]ConnectInit lk.salyk.kg [21:46:37]Connected sock=7 [21:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 02 00 00 41 57 8C 02 44 D5 5A 03 01 00 03 00 80 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF 6B C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C2 00 00 35 04 06 00 73 6C D7 6F 23 22 78 78 49 EC E7 7D 26 40 [21:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5F 35 47 00 73 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D6 C2 00 00 F4 03 04 00 32 16 C2 66 B6 04 01 00 00 9A 73 23 56 D4 A0 B5 88 [21:46:38]CommunicateWithHost err = 0 [21:46:38]CheckOFDResponse [21:46:38]1017 (14) - 77093643461234 [21:46:38]1041 (16) - 0000000000871800 [21:46:38]1040 (4) - 49878 [21:46:38]1012 (4) - 18.08.2024 15:41 [21:46:38]1206 (1) - 0 [21:46:38]OFD Sender: Remove packet 49878 [21:46:38]ProducePacketName [21:46:38]name=ofd_packets/00049878 [21:46:38]NVStorageDeleteData [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:50]accept exits with 9 [21:52:50]New connection [21:52:50]New thread 3067055460 created [21:52:50]Thread 3067198820 joined [21:52:50]Waiting for new connection... [21:52:50] Sock 9.Parse request [21:52:50]Sock 9.Check first char [21:52:50]Sock 9.First char is OK [21:52:50]request: POST /json_proto HTTP/1.0 [21:52:50]Method: POST [21:52:50]URL: /json_proto [21:52:50]Method is POST - this is cgi request [21:52:50]url: /json_proto [21:52:50]query_string will be loaded in cgi processing [21:52:50]execute_cgi json_proto POST (null) [21:52:50]execute_cgi path=json_proto method=POST [21:52:50]POST find Content-Length [21:52:50]Host: 172.17.46.196:8080 [21:52:50]Content-Length: 800 [21:52:50]Content-Type: application/json [21:52:50] [21:52:50]POST finish read [21:52:50]Found Content-Length = 800 [21:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190054", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:50]execute_script... [21:52:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190054", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:50]POST & json_proto [21:52:50]process_json_proto [21:52:50]json parsed OK: [21:52:50]protocol is kg_v1.0 [21:52:50]action value=close_receipt [21:52:50]process_action close_receipt [21:52:50]cmd_close_receipt [21:52:50]MH_GetDate [21:52:50]Write to MH i2c: F0 00 00 A1 10 A0 [21:52:50]Write i2c OK [21:52:50]MH_I2C_Read... [21:52:50]Read from MH i2c: F0 [21:52:50]MH_I2C_Read... [21:52:50]Read from MH i2c: F0 09 00 [21:52:50]MH_I2C_Read... [21:52:50]Read from MH i2c: F0 09 00 A1 10 00 35 6D C2 66 27 15 C2 66 D7 [21:52:50]GetLastDocTimeStamp 1724017583 [21:52:50]current date 1724017973 [21:52:50]FM_GetShiftState [21:52:50]SAM_PROTO_GetShiftState [21:52:50]wFMCommunicate request_size=4 [21:52:50]MH_SAM_APDU [21:52:50]CAPDU: 80 13 01 00 [21:52:50]Write to MH i2c: E2 08 00 A2 10 80 13 01 00 00 00 00 00 2F [21:52:50]Write i2c OK [21:52:50]MH_I2C_Read... [21:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:50]Read from MH i2c: E2 [21:52:50]MH_I2C_Read... [21:52:50]Read from MH i2c: E2 0E 00 [21:52:50]MH_I2C_Read... [21:52:50]Read from MH i2c: E2 0E 00 A2 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 4C [21:52:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:52:50]wFMCommunicate OK [21:52:50]SAM_PROTO_GetShiftState done [21:52:50]FM_GetShiftState done [21:52:50]opened in 1723939759 [21:52:50]opened+sec_in_day 1724026159 [21:52:50]quantity*price = 14000 [21:52:50]sum+1 = 14001 [21:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 145 18.08.2024 21:52 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49879 ФПД: 85183354477382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215253&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49879&fm=85183354477382&tin=02508201610067®Number=0000000000092546&sum=14000 0 [21:52:52]StoreToDocumentArchive [21:52:52]shift 466 fd 49879 [21:52:52]save to /storage/0466/doc_00049879 [21:52:52]save last doc name /storage/0466/doc_00049879 to /storage/kkm_last_doc_name [21:52:52]save OK [21:52:52]Clear old archive folders... [21:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:52:52]tlvbuf is 00FE4D90 [21:52:52]SAM_PROTO_ClearQueue [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 09 00 00 [21:52:52]Write to MH i2c: E2 08 00 AF 10 80 09 00 00 00 00 00 00 31 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]SAM_PROTO_ClearQueue done [21:52:52]KKMCreateOFDPacket [21:52:52]OFDProtocolAddRootSTLVToBuf [21:52:52]FM_MakeSignedData [21:52:52]FM_MakeSignedData [21:52:52]SAM_PROTO_SignData [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 01 02 [21:52:52]Write to MH i2c: E2 08 00 B0 10 80 0D 01 02 00 00 00 00 39 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=255 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 35 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [21:52:52]Write to MH i2c: E2 02 01 B1 10 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 35 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 F8 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=34 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C2 00 00 35 04 06 00 4D 79 4B 95 9B 46 [21:52:52]Write to MH i2c: E2 25 00 B2 10 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C2 00 00 35 04 06 00 4D 79 4B 95 9B 46 00 00 15 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [21:52:52]RAPDU: 90 00 [21:52:52]wFMCommunicate OK [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 0D 03 02 [21:52:52]Write to MH i2c: E2 08 00 B3 10 80 0D 03 02 00 00 00 00 3E [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 0B 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 0B 00 B3 10 00 A8 26 E9 2E 9D BA 32 8D 90 00 3A [21:52:52]RAPDU: A8 26 E9 2E 9D BA 32 8D 90 00 [21:52:52]wFMCommunicate OK [21:52:52]SAM_PROTO_SignData done [21:52:52]FM_MakeSignedData done [21:52:52]CreateOFDProtocolMessage [21:52:52]wFMCommunicate request_size=4 [21:52:52]MH_SAM_APDU [21:52:52]CAPDU: 80 11 00 00 [21:52:52]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:52]Read from MH i2c: E2 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 17 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [21:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:52:52]wFMCommunicate OK [21:52:52]CreateOFDProtocolMessage done [21:52:52]OFDSenderStorePacket 49879 [21:52:52]StoreOFDPacket docnum=49879 [21:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 A7 9D 1F 01 20 55 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 35 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C2 00 00 35 04 06 00 4D 79 4B 95 9B 46 A8 26 E9 2E 9D BA 32 8D [21:52:52]CheckFolder [21:52:52]dirname=/storage/ofd_packets [21:52:52]CheckFolder done [21:52:52]ProducePacketName [21:52:52]name=ofd_packets/00049879 [21:52:52]NVStorageSaveData ofd_packets/00049879 [21:52:52]File name is /storage/ofd_packets/00049879 [21:52:52]Write 325 bytes [21:52:52]NVStorageSaveData done [21:52:52]OFDSenderStorePacket done [21:52:52]KKMCreateOFDPacket done [21:52:52]NVStorageSaveData kkm_last_timestamp [21:52:52]File name is /storage/kkm_last_timestamp [21:52:52]Write 4 bytes [21:52:52]NVStorageSaveData done [21:52:52]ExternCall_PrintAddStr [21:52:52]wPrintStart [21:52:52]Write to MH i2c: 01 00 00 B5 10 C5 [21:52:52]Write i2c OK [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: 01 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: 01 07 00 [21:52:52]MH_I2C_Read... [21:52:52]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 FF 0F DA [21:52:52]RasterBufferAndPrint [21:52:52]line Счет N : (3)190054 [21:52:52]line ИНН: 02508201610067 [21:52:52]line Контрольно-Кассовый Чек [21:52:52]line ПРОДАЖА [21:52:52]line Товар: 48743587 [21:52:52]line Сигареты Winston XStyle Silver [21:52:52]line 1.000 * 140.00 [21:52:52]line = 140.00 [21:52:52]line НДС 12% НСП 1% [21:52:52]line > о реализуемом товаре [21:52:52]line ИТОГО: 140.00 [21:52:52]line НСП 1% : 1.24 [21:52:52]line НДС 12% : 14.87 [21:52:52]line Наличными: 0.00 [21:52:52]line Безнал.: 140.00 [21:52:52]line Место: АЗС № 95 "Партнер Нефть" [21:52:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:52:52]line СНО: Общий режим [21:52:52]line Чек 145 18.08.2024 21:52 [21:52:52]line Смена: 466 ФФД: 1.0 [21:52:52]line ЗНМ: 0300000078 [21:52:52]line РНМ: 0000000000092546 [21:52:52]line Версия ККМ: 001 [21:52:52]line Платежная система: Бакай Банк [21:52:52]line ФМ: 0000000000871800 [21:52:52]line ФД: 49879 [21:52:52]line ФПД: 85183354477382 [21:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215253&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49879&fm=85183354477382&tin=02508201610067®Number=0000000000092546&sum=14000 [21:52:52]line 0 [21:52:52]written 0, free lines is 4095 [21:52:52]OFD Sender: Processing packet 49879 [packets to send 21, broken 20] [21:52:52]ProducePacketName [21:52:52]name=ofd_packets/00049879 [21:52:52]OFD Sender: To server: pG, [21:52:52]CommunicateWithHost lk.salyk.kg:30040 [21:52:52]ConnectInit lk.salyk.kg [21:52:53]Connected sock=11 [21:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 A7 9D 1F 01 20 55 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 35 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C2 00 00 35 04 06 00 4D 79 4B 95 9B 46 A8 26 E9 2E 9D BA 32 8D [21:52:53]Write to MH i2c: 01 00 00 E0 10 F0 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: 01 07 00 E0 10 00 00 00 00 00 C2 0C C5 [21:52:53]RasterBufferAndPrint [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]line [21:52:53]written 0, free lines is 3272 [21:52:53]MH_Cut [21:52:53]Write to MH i2c: D1 01 00 E7 10 01 C9 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 01 00 [21:52:53]MH_I2C_Read... [21:52:53]Read from MH i2c: D1 01 00 E7 10 00 C8 [21:52:53]Write to MH i2c: 01 00 00 E8 10 F8 [21:52:53]Write i2c OK [21:52:53]MH_I2C_Read... [21:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 19 3D 47 00 3D F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D7 C2 00 00 F4 03 04 00 A8 17 C2 66 B6 04 01 00 00 07 39 1D C6 81 6D 53 3A [21:52:53]CommunicateWithHost err = 0 [21:52:53]CheckOFDResponse [21:52:53]1017 (14) - 77093643461234 [21:52:53]1041 (16) - 0000000000871800 [21:52:53]1040 (4) - 49879 [21:52:53]1012 (4) - 18.08.2024 15:47 [21:52:53]1206 (1) - 0 [21:52:53]OFD Sender: Remove packet 49879 [21:52:53]ProducePacketName [21:52:53]name=ofd_packets/00049879 [21:52:53]NVStorageDeleteData [21:52:53]OFD Sender: No OFD packet to send [21:52:53]*** Cut start [21:52:53]*** Purtial cut [21:52:53]*** Stage 1: CUTSNS_PIN = 1 [21:52:54]Read from MH i2c: 01 [21:52:54]MH_I2C_Read... [21:52:54]*** Stop cut motor [21:52:54]*** Cut end [21:52:54]Read from MH i2c: 01 07 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: 01 07 00 E8 10 00 00 00 00 00 FF 0F 0D [21:52:54]process_action close_receipt done [21:52:54]requested_data is exist [21:52:54]produce_requested_data [21:52:54]requested_item fm.sn is exist - process it [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 11 00 00 [21:52:54]Write to MH i2c: E2 08 00 E9 10 80 11 00 00 00 00 00 00 73 [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 17 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 17 00 E9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [21:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:52:54]wFMCommunicate OK [21:52:54]requested_item fd.num is exist - process it [21:52:54]SAM_PROTO_GetFieldsCounters [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 13 00 00 [21:52:54]Write to MH i2c: E2 08 00 EA 10 80 13 00 00 00 00 00 00 76 [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 62 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 62 00 EA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [21:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D7 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:54]wFMCommunicate OK [21:52:54]SAM_PROTO_GetFieldsCounters done [21:52:54]requested_item shift.num is exist - process it [21:52:54]requested_item shift.opened is exist - process it [21:52:54]req_shift_opened [21:52:54]FM_GetShiftState [21:52:54]SAM_PROTO_GetShiftState [21:52:54]wFMCommunicate request_size=4 [21:52:54]MH_SAM_APDU [21:52:54]CAPDU: 80 13 01 00 [21:52:54]Write to MH i2c: E2 08 00 EB 10 80 13 01 00 00 00 00 00 78 [21:52:54]Write i2c OK [21:52:54]MH_I2C_Read... [21:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:54]Read from MH i2c: E2 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 0E 00 [21:52:54]MH_I2C_Read... [21:52:54]Read from MH i2c: E2 0E 00 EB 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 95 [21:52:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:52:54]wFMCommunicate OK [21:52:54]SAM_PROTO_GetShiftState done [21:52:54]FM_GetShiftState done [21:52:54]req_shift_opened done [21:52:54]requested_item shift.open_date is exist - process it [21:52:54]req_shift_open_date [21:52:54]req_shift_open_date done [21:52:54]produce_requested_data done [21:52:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49879,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:52:54]process_action_free close_receipt [21:52:54]json_value_free [21:52:54]json_value_free done [21:52:54]process_json_proto returns [21:52:54]Send response to host [21:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49879,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:52:54]free response buf [21:52:54]execute_script done [21:52:54]execute_script returns [21:52:54]free content buf [21:52:54]Sock 9.Close socket [21:52:54]Sock 9.Thread stoped [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:00]accept exits with 7 [21:56:00]New connection [21:56:00]New thread 3067198820 created [21:56:00]Thread 3067055460 joined [21:56:00]Waiting for new connection... [21:56:00] Sock 7.Parse request [21:56:00]Sock 7.Check first char [21:56:00]Sock 7.First char is OK [21:56:00]request: POST /json_proto HTTP/1.0 [21:56:00]Method: POST [21:56:00]URL: /json_proto [21:56:00]Method is POST - this is cgi request [21:56:00]url: /json_proto [21:56:00]query_string will be loaded in cgi processing [21:56:00]execute_cgi json_proto POST (null) [21:56:00]execute_cgi path=json_proto method=POST [21:56:00]POST find Content-Length [21:56:00]Host: 172.17.46.196:8080 [21:56:00]Content-Length: 782 [21:56:00]Content-Type: application/json [21:56:00] [21:56:00]POST finish read [21:56:00]Found Content-Length = 782 [21:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190055", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:00]execute_script... [21:56: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 : (3)190055", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:00]POST & json_proto [21:56:00]process_json_proto [21:56:00]json parsed OK: [21:56:00]protocol is kg_v1.0 [21:56:00]action value=close_receipt [21:56:00]process_action close_receipt [21:56:00]cmd_close_receipt [21:56:00]MH_GetDate [21:56:00]Write to MH i2c: F0 00 00 EC 10 EB [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 09 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: F0 09 00 EC 10 00 F3 6D C2 66 27 15 C2 66 E0 [21:56:00]GetLastDocTimeStamp 1724017973 [21:56:00]current date 1724018163 [21:56:00]FM_GetShiftState [21:56:00]SAM_PROTO_GetShiftState [21:56:00]wFMCommunicate request_size=4 [21:56:00]MH_SAM_APDU [21:56:00]CAPDU: 80 13 01 00 [21:56:00]Write to MH i2c: E2 08 00 ED 10 80 13 01 00 00 00 00 00 7A [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 ED 10 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 97 [21:56:01]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetShiftState done [21:56:01]FM_GetShiftState done [21:56:01]opened in 1723939759 [21:56:01]opened+sec_in_day 1724026159 [21:56:01]quantity*price = 14000 [21:56:01]sum+1 = 14001 [21:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 146 18.08.2024 21:56 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49880 ФПД: 105772142421902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215603&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49880&fm=105772142421902&tin=02508201610067®Number=0000000000092546&sum=14000 0 [21:56:02]StoreToDocumentArchive [21:56:02]shift 466 fd 49880 [21:56:02]save to /storage/0466/doc_00049880 [21:56:02]save last doc name /storage/0466/doc_00049880 to /storage/kkm_last_doc_name [21:56:02]save OK [21:56:02]Clear old archive folders... [21:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:56:02]tlvbuf is 0100EC70 [21:56:02]SAM_PROTO_ClearQueue [21:56:02]wFMCommunicate request_size=4 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 09 00 00 [21:56:02]Write to MH i2c: E2 08 00 FA 10 80 09 00 00 00 00 00 00 7C [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [21:56:02]RAPDU: 90 00 [21:56:02]wFMCommunicate OK [21:56:02]SAM_PROTO_ClearQueue done [21:56:02]KKMCreateOFDPacket [21:56:02]OFDProtocolAddRootSTLVToBuf [21:56:02]FM_MakeSignedData [21:56:02]FM_MakeSignedData [21:56:02]SAM_PROTO_SignData [21:56:02]wFMCommunicate request_size=4 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 0D 01 02 [21:56:02]Write to MH i2c: E2 08 00 FB 10 80 0D 01 02 00 00 00 00 84 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [21:56:02]RAPDU: 90 00 [21:56:02]wFMCommunicate OK [21:56:02]wFMCommunicate request_size=255 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F3 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [21:56:02]Write to MH i2c: E2 02 01 FC 10 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F3 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 67 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 FC 10 00 90 00 80 [21:56:02]RAPDU: 90 00 [21:56:02]wFMCommunicate OK [21:56:02]wFMCommunicate request_size=32 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C2 00 00 35 04 06 00 60 32 FE F9 E7 8E [21:56:02]Write to MH i2c: E2 23 00 FD 10 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C2 00 00 35 04 06 00 60 32 FE F9 E7 8E 00 00 74 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 03 00 FD 10 00 90 00 81 [21:56:02]RAPDU: 90 00 [21:56:02]wFMCommunicate OK [21:56:02]wFMCommunicate request_size=4 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 0D 03 02 [21:56:02]Write to MH i2c: E2 08 00 FE 10 80 0D 03 02 00 00 00 00 89 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 0B 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 0B 00 FE 10 00 98 C0 1A 38 EE D6 7E E1 90 00 57 [21:56:02]RAPDU: 98 C0 1A 38 EE D6 7E E1 90 00 [21:56:02]wFMCommunicate OK [21:56:02]SAM_PROTO_SignData done [21:56:02]FM_MakeSignedData done [21:56:02]CreateOFDProtocolMessage [21:56:02]wFMCommunicate request_size=4 [21:56:02]MH_SAM_APDU [21:56:02]CAPDU: 80 11 00 00 [21:56:02]Write to MH i2c: E2 08 00 FF 10 80 11 00 00 00 00 00 00 89 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:02]Read from MH i2c: E2 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 17 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: E2 17 00 FF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D4 [21:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:56:02]wFMCommunicate OK [21:56:02]CreateOFDProtocolMessage done [21:56:02]OFDSenderStorePacket 49880 [21:56:02]StoreOFDPacket docnum=49880 [21:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 1D 7F 1D 01 06 0C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F3 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C2 00 00 35 04 06 00 60 32 FE F9 E7 8E 98 C0 1A 38 EE D6 7E E1 [21:56:02]CheckFolder [21:56:02]dirname=/storage/ofd_packets [21:56:02]CheckFolder done [21:56:02]ProducePacketName [21:56:02]name=ofd_packets/00049880 [21:56:02]NVStorageSaveData ofd_packets/00049880 [21:56:02]File name is /storage/ofd_packets/00049880 [21:56:02]Write 323 bytes [21:56:02]NVStorageSaveData done [21:56:02]OFDSenderStorePacket done [21:56:02]KKMCreateOFDPacket done [21:56:02]NVStorageSaveData kkm_last_timestamp [21:56:02]File name is /storage/kkm_last_timestamp [21:56:02]Write 4 bytes [21:56:02]NVStorageSaveData done [21:56:02]ExternCall_PrintAddStr [21:56:02]wPrintStart [21:56:02]Write to MH i2c: 01 00 00 00 11 11 [21:56:02]Write i2c OK [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 07 00 [21:56:02]MH_I2C_Read... [21:56:02]Read from MH i2c: 01 07 00 00 11 00 00 00 00 00 FF 0F 26 [21:56:02]RasterBufferAndPrint [21:56:02]line Счет N : (3)190055 [21:56:02]line ИНН: 02508201610067 [21:56:02]line Контрольно-Кассовый Чек [21:56:02]line ПРОДАЖА [21:56:02]line Товар: 48743570 [21:56:02]line Сигареты Winston XStyle Blue [21:56:02]line 1.000 * 140.00 [21:56:02]line = 140.00 [21:56:02]line НДС 12% НСП 1% [21:56:02]line > о реализуемом товаре [21:56:02]line ИТОГО: 140.00 [21:56:02]line НСП 1% : 1.24 [21:56:02]line НДС 12% : 14.87 [21:56:02]line Наличными: 0.00 [21:56:02]line Безнал.: 140.00 [21:56:02]line Место: АЗС № 95 "Партнер Нефть" [21:56:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:56:02]line СНО: Общий режим [21:56:02]line Чек 146 18.08.2024 21:56 [21:56:02]line Смена: 466 ФФД: 1.0 [21:56:02]line ЗНМ: 0300000078 [21:56:02]line РНМ: 0000000000092546 [21:56:02]line Версия ККМ: 001 [21:56:02]line Платежная система: O! деньги [21:56:02]line ФМ: 0000000000871800 [21:56:02]line ФД: 49880 [21:56:02]line ФПД: 105772142421902 [21:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215603&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49880&fm=105772142421902&tin=02508201610067®Number=0000000000092546&sum=14000 [21:56:03]OFD Sender: Processing packet 49880 [packets to send 21, broken 20] [21:56:03]ProducePacketName [21:56:03]name=ofd_packets/00049880 [21:56:03]OFD Sender: To server: pG, [21:56:03]CommunicateWithHost lk.salyk.kg:30040 [21:56:03]ConnectInit lk.salyk.kg [21:56:03]line 0 [21:56:03]written 0, free lines is 4095 [21:56:03]Connected sock=10 [21: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 38 30 30 25 01 00 00 1D 7F 1D 01 06 0C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F3 6D C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C2 00 00 35 04 06 00 60 32 FE F9 E7 8E 98 C0 1A 38 EE D6 7E E1 [21: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 38 30 30 4F 00 00 00 2C EC 47 00 2D 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C2 00 00 F4 03 04 00 67 18 C2 66 B6 04 01 00 00 A4 A7 E7 84 93 FF EB 78 [21:56:03]CommunicateWithHost err = 0 [21:56:03]CheckOFDResponse [21:56:03]1017 (14) - 77093643461234 [21:56:03]1041 (16) - 0000000000871800 [21:56:03]1040 (4) - 49880 [21:56:03]1012 (4) - 18.08.2024 15:51 [21:56:03]1206 (1) - 0 [21:56:03]OFD Sender: Remove packet 49880 [21:56:03]ProducePacketName [21:56:03]name=ofd_packets/00049880 [21:56:03]NVStorageDeleteData [21:56:03]Write to MH i2c: 01 00 00 2A 11 3B [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 07 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 DD 0C 2B [21:56:03]RasterBufferAndPrint [21:56:03]line [21:56:03]line [21:56:03]line [21:56:03]line [21:56:03]line [21:56:03]written 0, free lines is 3299 [21:56:03]MH_Cut [21:56:03]Write to MH i2c: D1 01 00 31 11 01 14 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: D1 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: D1 01 00 [21:56:03]MH_I2C_Read... [21:56:03]Read from MH i2c: D1 01 00 31 11 00 13 [21:56:03]Write to MH i2c: 01 00 00 32 11 43 [21:56:03]Write i2c OK [21:56:03]MH_I2C_Read... [21:56:04]OFD Sender: No OFD packet to send [21:56:04]*** Cut start [21:56:04]*** Purtial cut [21:56:04]*** CUTSNS_PIN = 0 [21:56:04]*** Stage 1: CUTSNS_PIN = 1 [21:56:06]Read from MH i2c: 01 [21:56:06]MH_I2C_Read... [21:56:06]*** Stop cut motor [21:56:06]*** Cut end [21:56:06]Read from MH i2c: 01 07 00 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: 01 07 00 32 11 00 00 00 00 00 FF 0F 58 [21:56:06]process_action close_receipt done [21:56:06]requested_data is exist [21:56:06]produce_requested_data [21:56:06]requested_item fm.sn is exist - process it [21:56:06]wFMCommunicate request_size=4 [21:56:06]MH_SAM_APDU [21:56:06]CAPDU: 80 11 00 00 [21:56:06]Write to MH i2c: E2 08 00 33 11 80 11 00 00 00 00 00 00 BE [21:56:06]Write i2c OK [21:56:06]MH_I2C_Read... [21:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:06]Read from MH i2c: E2 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 17 00 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 17 00 33 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [21:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:56:06]wFMCommunicate OK [21:56:06]requested_item fd.num is exist - process it [21:56:06]SAM_PROTO_GetFieldsCounters [21:56:06]wFMCommunicate request_size=4 [21:56:06]MH_SAM_APDU [21:56:06]CAPDU: 80 13 00 00 [21:56:06]Write to MH i2c: E2 08 00 34 11 80 13 00 00 00 00 00 00 C1 [21:56:06]Write i2c OK [21:56:06]MH_I2C_Read... [21:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:06]Read from MH i2c: E2 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 62 00 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 62 00 34 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [21:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:06]wFMCommunicate OK [21:56:06]SAM_PROTO_GetFieldsCounters done [21:56:06]requested_item shift.num is exist - process it [21:56:06]requested_item shift.opened is exist - process it [21:56:06]req_shift_opened [21:56:06]FM_GetShiftState [21:56:06]SAM_PROTO_GetShiftState [21:56:06]wFMCommunicate request_size=4 [21:56:06]MH_SAM_APDU [21:56:06]CAPDU: 80 13 01 00 [21:56:06]Write to MH i2c: E2 08 00 35 11 80 13 01 00 00 00 00 00 C3 [21:56:06]Write i2c OK [21:56:06]MH_I2C_Read... [21:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:06]Read from MH i2c: E2 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 0E 00 [21:56:06]MH_I2C_Read... [21:56:06]Read from MH i2c: E2 0E 00 35 11 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 E0 [21:56:06]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [21:56:06]wFMCommunicate OK [21:56:06]SAM_PROTO_GetShiftState done [21:56:06]FM_GetShiftState done [21:56:06]req_shift_opened done [21:56:06]requested_item shift.open_date is exist - process it [21:56:06]req_shift_open_date [21:56:06]req_shift_open_date done [21:56:06]produce_requested_data done [21:56:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49880,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [21:56:06]process_action_free close_receipt [21:56:06]json_value_free [21:56:06]json_value_free done [21:56:06]process_json_proto returns [21:56:06]Send response to host [21:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49880,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [21:56:06]free response buf [21:56:06]execute_script done [21:56:06]execute_script returns [21:56:06]free content buf [21:56:06]Sock 7.Close socket [21:56:06]Sock 7.Thread stoped [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:30]accept exits with 9 [22:01:30]New connection [22:01:30]New thread 3067055460 created [22:01:30]Thread 3067198820 joined [22:01:30]Waiting for new connection... [22:01:30] Sock 9.Parse request [22:01:30]Sock 9.Check first char [22:01:30]Sock 9.First char is OK [22:01:30]request: POST /json_proto HTTP/1.0 [22:01:30]Method: POST [22:01:30]URL: /json_proto [22:01:30]Method is POST - this is cgi request [22:01:30]url: /json_proto [22:01:30]query_string will be loaded in cgi processing [22:01:30]execute_cgi json_proto POST (null) [22:01:30]execute_cgi path=json_proto method=POST [22:01:30]POST find Content-Length [22:01:30]Host: 172.17.46.196:8080 [22:01:30]Content-Length: 1083 [22:01:30]Content-Type: application/json [22:01:30] [22:01:30]POST finish read [22:01:30]Found Content-Length = 1083 [22:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190056", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:30]execute_script... [22: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 : (3)190056", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:30]POST & json_proto [22:01:30]process_json_proto [22:01:30]json parsed OK: [22:01:30]protocol is kg_v1.0 [22:01:30]action value=close_receipt [22:01:30]process_action close_receipt [22:01:30]cmd_close_receipt [22:01:30]MH_GetDate [22:01:30]Write to MH i2c: F0 00 00 36 11 36 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 09 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 09 00 36 11 00 3C 6F C2 66 27 15 C2 66 76 [22:01:30]GetLastDocTimeStamp 1724018163 [22:01:30]current date 1724018492 [22:01:30]FM_GetShiftState [22:01:30]SAM_PROTO_GetShiftState [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 13 01 00 [22:01:30]Write to MH i2c: E2 08 00 37 11 80 13 01 00 00 00 00 00 C5 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 37 11 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 E2 [22:01:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_GetShiftState done [22:01:30]FM_GetShiftState done [22:01:30]opened in 1723939759 [22:01:30]opened+sec_in_day 1724026159 [22:01:30]quantity*price = 23000 [22:01:30]sum+1 = 23001 [22:01:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.22 Наличными: 0.00 Безнал.: 360.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 147 18.08.2024 22:01 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49881 ФПД: 244217332812538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220132&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49881&fm=244217332812538&tin=02508201610067®Number=0000000000092546&sum=36000 0 [22:01:31]StoreToDocumentArchive [22:01:31]shift 466 fd 49881 [22:01:31]save to /storage/0466/doc_00049881 [22:01:31]save last doc name /storage/0466/doc_00049881 to /storage/kkm_last_doc_name [22:01:31]save OK [22:01:31]Clear old archive folders... [22:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=392 [22:01:31]tlvbuf is B6F16400 [22:01:31]SAM_PROTO_ClearQueue [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 09 00 00 [22:01:31]Write to MH i2c: E2 08 00 44 11 80 09 00 00 00 00 00 00 C7 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]SAM_PROTO_ClearQueue done [22:01:31]KKMCreateOFDPacket [22:01:31]OFDProtocolAddRootSTLVToBuf [22:01:31]FM_MakeSignedData [22:01:31]FM_MakeSignedData [22:01:31]SAM_PROTO_SignData [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 01 02 [22:01:31]Write to MH i2c: E2 08 00 45 11 80 0D 01 02 00 00 00 00 CF [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]wFMCommunicate request_size=255 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [22:01:31]Write to MH i2c: E2 02 01 46 11 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 E1 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]wFMCommunicate request_size=151 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3C 6F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C2 00 00 35 04 06 00 DE 1D 47 5E CA FA [22:01:31]Write to MH i2c: E2 9A 00 47 11 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3C 6F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C2 00 00 35 04 06 00 DE 1D 47 5E CA FA 00 00 C0 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 03 02 [22:01:31]Write to MH i2c: E2 08 00 48 11 80 0D 03 02 00 00 00 00 D4 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 0B 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 0B 00 48 11 00 50 4C 60 CA B4 25 AB B4 90 00 D3 [22:01:31]RAPDU: 50 4C 60 CA B4 25 AB B4 90 00 [22:01:31]wFMCommunicate OK [22:01:31]SAM_PROTO_SignData done [22:01:31]FM_MakeSignedData done [22:01:31]CreateOFDProtocolMessage [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 11 00 00 [22:01:31]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 17 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [22:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:01:31]wFMCommunicate OK [22:01:31]CreateOFDProtocolMessage done [22:01:31]OFDSenderStorePacket 49881 [22:01:31]StoreOFDPacket docnum=49881 [22:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 0B D3 94 01 32 4D 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3C 6F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C2 00 00 35 04 06 00 DE 1D 47 5E CA FA 50 4C 60 CA B4 25 AB B4 [22:01:31]CheckFolder [22:01:31]dirname=/storage/ofd_packets [22:01:31]CheckFolder done [22:01:31]ProducePacketName [22:01:31]name=ofd_packets/00049881 [22:01:31]NVStorageSaveData ofd_packets/00049881 [22:01:31]File name is /storage/ofd_packets/00049881 [22:01:31]Write 442 bytes [22:01:31]NVStorageSaveData done [22:01:31]OFDSenderStorePacket done [22:01:31]KKMCreateOFDPacket done [22:01:31]NVStorageSaveData kkm_last_timestamp [22:01:31]File name is /storage/kkm_last_timestamp [22:01:31]Write 4 bytes [22:01:32]NVStorageSaveData done [22:01:32]ExternCall_PrintAddStr [22:01:32]wPrintStart [22:01:32]Write to MH i2c: 01 00 00 4A 11 5B [22:01:32]OFD Sender: Processing packet 49881 [packets to send 21, broken 20] [22:01:32]ProducePacketName [22:01:32]name=ofd_packets/00049881 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 [22:01:32]MH_I2C_Read... [22:01:32]OFD Sender: To server: pG, [22:01:32]CommunicateWithHost lk.salyk.kg:30040 [22:01:32]ConnectInit lk.salyk.kg [22:01:32]Read from MH i2c: 01 07 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [22:01:32]RasterBufferAndPrint [22:01:32]line Счет N : (3)190056 [22:01:32]line ИНН: 02508201610067 [22:01:32]line Контрольно-Кассовый Чек [22:01:32]line ПРОДАЖА [22:01:32]line Товар: 2000036210013 [22:01:32]line Кофе Капучино (GABB TRADE) [22:01:32]line 2.000 * 115.00 [22:01:32]line = 230.00 [22:01:32]line НДС 12% НСП 1% [22:01:32]line > о реализуемом товаре [22:01:32]line Товар: 2000036220012 [22:01:32]line Кофе Капучино XL(GABB TRADE) [22:01:32]line 1.000 * 130.00 [22:01:32]line = 130.00 [22:01:32]line НДС 12% НСП 1% [22:01:32]line > о реализуемом товаре [22:01:32]line ИТОГО: 360.00 [22:01:32]line НСП 1% : 3.18 [22:01:32]line НДС 12% : 38.22 [22:01:32]line Наличными: 0.00 [22:01:32]line Безнал.: 360.00 [22:01:32]line Место: АЗС № 95 "Партнер Нефть" [22:01:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:01:32]line СНО: Общий режим [22:01:32]line Чек 147 18.08.2024 22:01 [22:01:32]line Смена: 466 ФФД: 1.0 [22:01:32]line ЗНМ: 0300000078 [22:01:32]line РНМ: 0000000000092546 [22:01:32]line Версия ККМ: 001 [22:01:32]line Платежная система: Бакай Банк [22:01:32]line ФМ: 0000000000871800 [22:01:32]line ФД: 49881 [22:01:32]line ФПД: 244217332812538 [22:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220132&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49881&fm=244217332812538&tin=02508201610067®Number=0000000000092546&sum=36000 [22:01:32]line 0 [22:01:32]written 0, free lines is 4095 [22:01:32]Connected sock=10 [22: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 38 30 30 9C 01 00 00 0B D3 94 01 32 4D 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3C 6F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C2 00 00 35 04 06 00 DE 1D 47 5E CA FA 50 4C 60 CA B4 25 AB B4 [22: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 38 30 30 4F 00 00 00 5B A8 47 00 B0 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C2 00 00 F4 03 04 00 B0 19 C2 66 B6 04 01 00 00 2D 5D 71 A0 F3 EF 2C A0 [22:01:32]CommunicateWithHost err = 0 [22:01:32]CheckOFDResponse [22:01:32]1017 (14) - 77093643461234 [22:01:32]1041 (16) - 0000000000871800 [22:01:32]1040 (4) - 49881 [22:01:32]1012 (4) - 18.08.2024 15:56 [22:01:32]1206 (1) - 0 [22:01:32]OFD Sender: Remove packet 49881 [22:01:32]ProducePacketName [22:01:32]name=ofd_packets/00049881 [22:01:32]NVStorageDeleteData [22:01:32]Write to MH i2c: 01 00 00 7B 11 8C [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 07 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 07 00 7B 11 00 00 00 00 00 77 0C 16 [22:01:32]RasterBufferAndPrint [22:01:32]line [22:01:32]line [22:01:32]line [22:01:32]line [22:01:32]line [22:01:32]written 0, free lines is 3196 [22:01:32]MH_Cut [22:01:32]Write to MH i2c: D1 01 00 82 11 01 65 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: D1 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: D1 01 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: D1 01 00 82 11 00 64 [22:01:32]Write to MH i2c: 01 00 00 83 11 94 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:33]OFD Sender: No OFD packet to send [22:01:33]*** Cut start [22:01:33]*** Purtial cut [22:01:33]*** Stage 1: CUTSNS_PIN = 1 [22:01:34]Read from MH i2c: 01 [22:01:34]MH_I2C_Read... [22:01:34]*** Stop cut motor [22:01:34]*** Cut end [22:01:34]Read from MH i2c: 01 07 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 FF 0F A9 [22:01:34]process_action close_receipt done [22:01:34]requested_data is exist [22:01:34]produce_requested_data [22:01:34]requested_item fm.sn is exist - process it [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 11 00 00 [22:01:34]Write to MH i2c: E2 08 00 84 11 80 11 00 00 00 00 00 00 0F [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 17 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 17 00 84 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5A [22:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:01:34]wFMCommunicate OK [22:01:34]requested_item fd.num is exist - process it [22:01:34]SAM_PROTO_GetFieldsCounters [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 13 00 00 [22:01:34]Write to MH i2c: E2 08 00 85 11 80 13 00 00 00 00 00 00 12 [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 62 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 62 00 85 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [22: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:34]wFMCommunicate OK [22:01:34]SAM_PROTO_GetFieldsCounters done [22:01:34]requested_item shift.num is exist - process it [22:01:34]requested_item shift.opened is exist - process it [22:01:34]req_shift_opened [22:01:34]FM_GetShiftState [22:01:34]SAM_PROTO_GetShiftState [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 13 01 00 [22:01:34]Write to MH i2c: E2 08 00 86 11 80 13 01 00 00 00 00 00 14 [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 0E 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 0E 00 86 11 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 31 [22:01:34]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:01:34]wFMCommunicate OK [22:01:34]SAM_PROTO_GetShiftState done [22:01:34]FM_GetShiftState done [22:01:34]req_shift_opened done [22:01:34]requested_item shift.open_date is exist - process it [22:01:34]req_shift_open_date [22:01:34]req_shift_open_date done [22:01:34]produce_requested_data done [22:01:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49881,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:01:34]process_action_free close_receipt [22:01:34]json_value_free [22:01:34]json_value_free done [22:01:34]process_json_proto returns [22:01:34]Send response to host [22:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49881,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:01:34]free response buf [22:01:34]execute_script done [22:01:34]execute_script returns [22:01:34]free content buf [22:01:34]Sock 9.Close socket [22:01:34]Sock 9.Thread stoped [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:50]int [22:01:50]Write to MH i2c: 01 00 00 87 11 98 [22:01:50]*** FLAG_PRN_KEY set [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 87 11 00 08 00 00 00 FF 0F B5 [22:01:50]state=0 [22:01:50]Key pressed [22:01:50]Feed [22:01:50]Write to MH i2c: D8 00 00 88 11 70 [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D8 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D8 01 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: D8 01 00 88 11 00 71 [22:01:50]int [22:01:50]Write to MH i2c: 01 00 00 89 11 9A [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 89 11 00 48 00 00 00 3C 00 25 [22:01:50]state=2 [22:01:50]Key pressed [22:01:50]int [22:01:50]Write to MH i2c: 01 00 00 8A 11 9B [22:01:50]*** FLAG_PRN_KEY reset [22:01:50]Write i2c OK [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 [22:01:50]MH_I2C_Read... [22:01:50]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 F9 0F AA [22:01:50]state=2 [22:01:50]Stop feed [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:54]accept exits with 7 [22:04:54]New connection [22:04:54]New thread 3067198820 created [22:04:54]Thread 3067055460 joined [22:04:54]Waiting for new connection... [22:04:54] Sock 7.Parse request [22:04:54]Sock 7.Check first char [22:04:54]Sock 7.First char is OK [22:04:54]request: POST /json_proto HTTP/1.0 [22:04:54]Method: POST [22:04:54]URL: /json_proto [22:04:54]Method is POST - this is cgi request [22:04:54]url: /json_proto [22:04:54]query_string will be loaded in cgi processing [22:04:54]execute_cgi json_proto POST (null) [22:04:54]execute_cgi path=json_proto method=POST [22:04:54]POST find Content-Length [22:04:54]Host: 172.17.46.196:8080 [22:04:54]Content-Length: 2666 [22:04:54]Content-Type: application/json [22:04:54] [22:04:54]POST finish read [22:04:54]Found Content-Length = 2666 [22:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190057", "tax_sys" : 0, "items" : [ { "code": "4823077633348", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 15", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 733.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:54]execute_script... [22:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190057", "tax_sys" : 0, "items" : [ { "code": "4823077633348", "name": "\u041F\u0435\u0447 LOVITA CLASSIC COOKIES \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 15", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 733.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:54]POST & json_proto [22:04:54]process_json_proto [22:04:54]json parsed OK: [22:04:54]protocol is kg_v1.0 [22:04:54]action value=close_receipt [22:04:54]process_action close_receipt [22:04:54]cmd_close_receipt [22:04:54]MH_GetDate [22:04:54]Write to MH i2c: F0 00 00 8B 11 8B [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: F0 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: F0 09 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: F0 09 00 8B 11 00 09 70 C2 66 27 15 C2 66 99 [22:04:54]GetLastDocTimeStamp 1724018492 [22:04:54]current date 1724018697 [22:04:54]FM_GetShiftState [22:04:54]SAM_PROTO_GetShiftState [22:04:54]wFMCommunicate request_size=4 [22:04:54]MH_SAM_APDU [22:04:54]CAPDU: 80 13 01 00 [22:04:54]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:54]Read from MH i2c: E2 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: E2 0E 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 37 [22:04:54]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:04:54]wFMCommunicate OK [22:04:54]SAM_PROTO_GetShiftState done [22:04:54]FM_GetShiftState done [22:04:54]opened in 1723939759 [22:04:54]opened+sec_in_day 1724026159 [22:04:54]quantity*price = 13000 [22:04:54]sum+1 = 13001 [22:04:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000027340020 Пакет бумажный витая ручка 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 733.00 НСП 1% : 6.47 НДС 12% : 77.81 Наличными: 733.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 148 18.08.2024 22:04 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49882 ФПД: 30655225625586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220457&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49882&fm=30655225625586&tin=02508201610067®Number=0000000000092546&sum=73300 0 [22:04:56]StoreToDocumentArchive [22:04:56]shift 466 fd 49882 [22:04:56]save to /storage/0466/doc_00049882 [22:04:56]save last doc name /storage/0466/doc_00049882 to /storage/kkm_last_doc_name [22:04:56]save OK [22:04:56]Clear old archive folders... [22:04:56]ProcessDocumentItem done err = 0, tmpTLVsize=1115 [22:04:56]tlvbuf is 0103CA00 [22:04:56]SAM_PROTO_ClearQueue [22:04:56]wFMCommunicate request_size=4 [22:04:56]MH_SAM_APDU [22:04:56]CAPDU: 80 09 00 00 [22:04:56]Write to MH i2c: E2 08 00 99 11 80 09 00 00 00 00 00 00 1C [22:04:56]Write i2c OK [22:04:56]MH_I2C_Read... [22:04:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:56]Read from MH i2c: E2 [22:04:56]MH_I2C_Read... [22:04:56]Read from MH i2c: E2 03 00 [22:04:56]MH_I2C_Read... [22:04:56]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [22:04:56]RAPDU: 90 00 [22:04:56]wFMCommunicate OK [22:04:56]SAM_PROTO_ClearQueue done [22:04:56]KKMCreateOFDPacket [22:04:56]OFDProtocolAddRootSTLVToBuf [22:04:56]FM_MakeSignedData [22:04:56]FM_MakeSignedData [22:04:56]SAM_PROTO_SignData [22:04:56]wFMCommunicate request_size=4 [22:04:56]MH_SAM_APDU [22:04:56]CAPDU: 80 0D 01 02 [22:04:56]Write to MH i2c: E2 08 00 9A 11 80 0D 01 02 00 00 00 00 24 [22:04:56]Write i2c OK [22:04:56]MH_I2C_Read... [22:04:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:56]Read from MH i2c: E2 [22:04:56]MH_I2C_Read... [22:04:56]Read from MH i2c: E2 03 00 [22:04:56]MH_I2C_Read... [22:04:56]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [22:04:56]RAPDU: 90 00 [22:04:56]wFMCommunicate OK [22:04:56]wFMCommunicate request_size=255 [22:04:56]MH_SAM_APDU [22:04:56]CAPDU: 80 0D 02 02 FA 03 00 5B 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 [22:04:56]Write to MH i2c: E2 02 01 9B 11 80 0D 02 02 FA 00 03 00 5B 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 00 00 0F [22:04:56]Write i2c OK [22:04:56]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [22:04:57]RAPDU: 90 00 [22:04:57]wFMCommunicate OK [22:04:57]wFMCommunicate request_size=255 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 [22:04:57]Write to MH i2c: E2 02 01 9C 11 80 0D 02 02 FA 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 00 00 4D [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [22:04:57]RAPDU: 90 00 [22:04:57]wFMCommunicate OK [22:04:57]wFMCommunicate request_size=255 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 0D 02 02 FA 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 [22:04:57]Write to MH i2c: E2 02 01 9D 11 80 0D 02 02 FA 00 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 00 00 5E [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [22:04:57]RAPDU: 90 00 [22:04:57]wFMCommunicate OK [22:04:57]wFMCommunicate request_size=255 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 0D 02 02 FA D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [22:04:57]Write to MH i2c: E2 02 01 9E 11 80 0D 02 02 FA 00 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 B5 [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [22:04:57]RAPDU: 90 00 [22:04:57]wFMCommunicate OK [22:04:57]wFMCommunicate request_size=124 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 0D 02 02 77 65 1E 00 00 00 00 07 04 06 00 54 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 09 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C2 00 00 35 04 06 00 1B E1 79 D5 7B F2 [22:04:57]Write to MH i2c: E2 7F 00 9F 11 80 0D 02 02 77 00 65 1E 00 00 00 00 07 04 06 00 54 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 09 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C2 00 00 35 04 06 00 1B E1 79 D5 7B F2 00 00 9C [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:58]Read from MH i2c: E2 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 03 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [22:04:58]RAPDU: 90 00 [22:04:58]wFMCommunicate OK [22:04:58]wFMCommunicate request_size=4 [22:04:58]MH_SAM_APDU [22:04:58]CAPDU: 80 0D 03 02 [22:04:58]Write to MH i2c: E2 08 00 A0 11 80 0D 03 02 00 00 00 00 2C [22:04:58]Write i2c OK [22:04:58]MH_I2C_Read... [22:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:58]Read from MH i2c: E2 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 0B 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 0B 00 A0 11 00 28 6E FC 16 84 DD CD 16 90 00 19 [22:04:58]RAPDU: 28 6E FC 16 84 DD CD 16 90 00 [22:04:58]wFMCommunicate OK [22:04:58]SAM_PROTO_SignData done [22:04:58]FM_MakeSignedData done [22:04:58]CreateOFDProtocolMessage [22:04:58]wFMCommunicate request_size=4 [22:04:58]MH_SAM_APDU [22:04:58]CAPDU: 80 11 00 00 [22:04:58]Write to MH i2c: E2 08 00 A1 11 80 11 00 00 00 00 00 00 2C [22:04:58]Write i2c OK [22:04:58]MH_I2C_Read... [22:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:58]Read from MH i2c: E2 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 17 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 17 00 A1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 77 [22:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:04:58]wFMCommunicate OK [22:04:58]CreateOFDProtocolMessage done [22:04:58]OFDSenderStorePacket 49882 [22:04:58]StoreOFDPacket docnum=49882 [22:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 6F 04 00 00 65 9C 67 04 45 4E 5A 03 01 00 03 00 5B 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1E 00 00 00 00 07 04 06 00 54 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 09 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C2 00 00 35 04 06 00 1B E1 79 D5 7B F2 28 6E FC 16 84 DD CD 16 [22:04:58]CheckFolder [22:04:58]dirname=/storage/ofd_packets [22:04:58]CheckFolder done [22:04:58]ProducePacketName [22:04:58]name=ofd_packets/00049882 [22:04:58]NVStorageSaveData ofd_packets/00049882 [22:04:58]File name is /storage/ofd_packets/00049882 [22:04:58]Write 1165 bytes [22:04:58]NVStorageSaveData done [22:04:58]OFDSenderStorePacket done [22:04:58]KKMCreateOFDPacket done [22:04:58]NVStorageSaveData kkm_last_timestamp [22:04:58]File name is /storage/kkm_last_timestamp [22:04:58]Write 4 bytes [22:04:58]NVStorageSaveData done [22:04:58]ExternCall_PrintAddStr [22:04:58]wPrintStart [22:04:58]Write to MH i2c: 01 00 00 A2 11 B3 [22:04:58]OFD Sender: Processing packet 49882 [packets to send 21, broken 20] [22:04:58]ProducePacketName [22:04:58]name=ofd_packets/00049882 [22:04:58]OFD Sender: To server: pG, [22:04:58]CommunicateWithHost lk.salyk.kg:30040 [22:04:58]ConnectInit lk.salyk.kg [22:04:58]Write i2c OK [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: 01 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: 01 07 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 FF 0F C8 [22:04:58]RasterBufferAndPrint [22:04:58]line Счет N : (3)190057 [22:04:58]line ИНН: 02508201610067 [22:04:58]line Контрольно-Кассовый Чек [22:04:58]line ПРОДАЖА [22:04:58]line Товар: 4823077633348 [22:04:58]line Печ LOVITA CLASSIC COOKIES с арахисом 15 [22:04:58]line 1.000 * 130.00 [22:04:58]line = 130.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 4011100977624 [22:04:58]line Шок Батончик Баунти 55г [22:04:58]line 1.000 * 59.00 [22:04:58]line = 59.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 4607065001445 [22:04:58]line Шок батончик Snickers 50,5г [22:04:58]line 1.000 * 59.00 [22:04:58]line = 59.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 4607065000790 [22:04:58]line Шок M&M`s с арахисом 45г [22:04:58]line 1.000 * 70.00 [22:04:58]line = 70.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 2000027340020 [22:04:58]line Пакет бумажный витая ручка [22:04:58]line 1.000 * 25.00 [22:04:58]line = 25.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 5449000189349 [22:04:58]line Холодный чай Fuse манго ананас 0,5л [22:04:58]line 1.000 * 65.00 [22:04:58]line = 65.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 5449000027450 [22:04:58]line Напиток FuzeTea чай манго,ром 0,5л [22:04:58]line 1.000 * 65.00 [22:04:58]line = 65.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line Товар: 2000036220012 [22:04:58]line Кофе Капучино XL(GABB TRADE) [22:04:58]line 2.000 * 130.00 [22:04:58]line = 260.00 [22:04:58]line НДС 12% НСП 1% [22:04:58]line > о реализуемом товаре [22:04:58]line ИТОГО: 733.00 [22:04:58]line НСП 1% : 6.47 [22:04:58]line НДС 12% : 77.81 [22:04:58]line Наличными: 733.00 [22:04:58]line Безнал.: 0.00 [22:04:58]line Место: АЗС № 95 "Партнер Нефть" [22:04:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:04:58]line СНО: Общий режим [22:04:58]line Чек 148 18.08.2024 22:04 [22:04:58]line Смена: 466 ФФД: 1.0 [22:04:58]line ЗНМ: 0300000078 [22:04:58]line РНМ: 0000000000092546 [22:04:58]line Версия ККМ: 001 [22:04:58]line ФМ: 0000000000871800 [22:04:58]line ФД: 49882 [22:04:58]line ФПД: 30655225625586 [22:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220457&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49882&fm=30655225625586&tin=02508201610067®Number=0000000000092546&sum=73300 [22:04:58]line 0 [22:04:58]written 0, free lines is 4095 [22:04:58]Connected sock=10 [22:04:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 6F 04 00 00 65 9C 67 04 45 4E 5A 03 01 00 03 00 5B 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 33 33 34 38 06 04 34 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 43 4C 41 53 53 49 43 20 43 4F 4F 4B 49 45 53 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 31 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1E 00 00 00 00 07 04 06 00 54 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 09 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C2 00 00 35 04 06 00 1B E1 79 D5 7B F2 28 6E FC 16 84 DD CD 16 [22:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 EB 47 00 77 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 38 30 30 10 04 04 00 DA C2 00 00 F4 03 04 00 7E 1A C2 66 B6 04 01 00 00 5A E1 38 DC A0 6A E3 78 [22:04:59]CommunicateWithHost err = 0 [22:04:59]CheckOFDResponse [22:04:59]1017 (14) - 77093643461234 [22:04:59]1041 (16) - 0000000000871800 [22:04:59]1040 (4) - 49882 [22:04:59]1012 (4) - 18.08.2024 15:59 [22:04:59]1206 (1) - 0 [22:04:59]OFD Sender: Remove packet 49882 [22:04:59]ProducePacketName [22:04:59]name=ofd_packets/00049882 [22:04:59]NVStorageDeleteData [22:04:59]Write to MH i2c: 01 00 00 F8 11 09 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 07 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 4C 0A 66 [22:04:59]RasterBufferAndPrint [22:04:59]line [22:04:59]line [22:04:59]line [22:04:59]line [22:04:59]line [22:04:59]written 0, free lines is 2649 [22:04:59]MH_Cut [22:04:59]Write to MH i2c: D1 01 00 FF 11 01 E2 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: D1 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: D1 01 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: D1 01 00 FF 11 00 E1 [22:04:59]Write to MH i2c: 01 00 00 00 12 12 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]OFD Sender: No OFD packet to send [22:05:00]*** Cut start [22:05:00]*** Purtial cut [22:05:00]*** CUTSNS_PIN = 0 [22:05:00]*** Stage 1: CUTSNS_PIN = 1 [22:05:02]Read from MH i2c: 01 [22:05:02]MH_I2C_Read... [22:05:02]*** Stop cut motor [22:05:02]*** Cut end [22:05:02]Read from MH i2c: 01 07 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [22:05:02]process_action close_receipt done [22:05:02]requested_data is exist [22:05:02]produce_requested_data [22:05:02]requested_item fm.sn is exist - process it [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 11 00 00 [22:05:02]Write to MH i2c: E2 08 00 01 12 80 11 00 00 00 00 00 00 8D [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 01 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D8 [22:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:05:02]wFMCommunicate OK [22:05:02]requested_item fd.num is exist - process it [22:05:02]SAM_PROTO_GetFieldsCounters [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 13 00 00 [22:05:02]Write to MH i2c: E2 08 00 02 12 80 13 00 00 00 00 00 00 90 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 62 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 62 00 02 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [22:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:02]wFMCommunicate OK [22:05:02]SAM_PROTO_GetFieldsCounters done [22:05:02]requested_item shift.num is exist - process it [22:05:02]requested_item shift.opened is exist - process it [22:05:02]req_shift_opened [22:05:02]FM_GetShiftState [22:05:02]SAM_PROTO_GetShiftState [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 13 01 00 [22:05:02]Write to MH i2c: E2 08 00 03 12 80 13 01 00 00 00 00 00 92 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:03]Read from MH i2c: E2 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 AF [22:05:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:05:03]wFMCommunicate OK [22:05:03]SAM_PROTO_GetShiftState done [22:05:03]FM_GetShiftState done [22:05:03]req_shift_opened done [22:05:03]requested_item shift.open_date is exist - process it [22:05:03]req_shift_open_date [22:05:03]req_shift_open_date done [22:05:03]produce_requested_data done [22:05:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49882,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:05:03]process_action_free close_receipt [22:05:03]json_value_free [22:05:03]json_value_free done [22:05:03]process_json_proto returns [22:05:03]Send response to host [22:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49882,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:05:03]free response buf [22:05:03]execute_script done [22:05:03]execute_script returns [22:05:03]free content buf [22:05:03]Sock 7.Close socket [22:05:03]Sock 7.Thread stoped [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:21]accept exits with 9 [22:05:21]New connection [22:05:21]New thread 3067055460 created [22:05:21]Thread 3067198820 joined [22:05:21]Waiting for new connection... [22:05:21] Sock 9.Parse request [22:05:21]Sock 9.Check first char [22:05:21]Sock 9.First char is OK [22:05:21]request: POST /json_proto HTTP/1.0 [22:05:21]Method: POST [22:05:21]URL: /json_proto [22:05:21]Method is POST - this is cgi request [22:05:21]url: /json_proto [22:05:21]query_string will be loaded in cgi processing [22:05:21]execute_cgi json_proto POST (null) [22:05:21]execute_cgi path=json_proto method=POST [22:05:21]POST find Content-Length [22:05:21]Host: 172.17.46.196:8080 [22:05:21]Content-Length: 782 [22:05:21]Content-Type: application/json [22:05:21] [22:05:21]POST finish read [22:05:21]Found Content-Length = 782 [22:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190058", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:21]execute_script... [22:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190058", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:21]POST & json_proto [22:05:21]process_json_proto [22:05:21]json parsed OK: [22:05:21]protocol is kg_v1.0 [22:05:21]action value=close_receipt [22:05:21]process_action close_receipt [22:05:21]cmd_close_receipt [22:05:21]MH_GetDate [22:05:21]Write to MH i2c: F0 00 00 04 12 05 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 09 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 09 00 04 12 00 24 70 C2 66 27 15 C2 66 2E [22:05:21]GetLastDocTimeStamp 1724018697 [22:05:21]current date 1724018724 [22:05:21]FM_GetShiftState [22:05:21]SAM_PROTO_GetShiftState [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 13 01 00 [22:05:21]Write to MH i2c: E2 08 00 05 12 80 13 01 00 00 00 00 00 94 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:22]Read from MH i2c: E2 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 0E 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: E2 0E 00 05 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 B1 [22:05:22]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:05:22]wFMCommunicate OK [22:05:22]SAM_PROTO_GetShiftState done [22:05:22]FM_GetShiftState done [22:05:22]opened in 1723939759 [22:05:22]opened+sec_in_day 1724026159 [22:05:22]quantity*price = 28000 [22:05:22]sum+1 = 28001 [22:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 149 18.08.2024 22:05 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49883 ФПД: 88113351859004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220524&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49883&fm=88113351859004&tin=02508201610067®Number=0000000000092546&sum=28000 0 [22:05:23]StoreToDocumentArchive [22:05:23]shift 466 fd 49883 [22:05:23]save to /storage/0466/doc_00049883 [22:05:23]save last doc name /storage/0466/doc_00049883 to /storage/kkm_last_doc_name [22:05:23]save OK [22:05:23]Clear old archive folders... [22:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:05:23]tlvbuf is 00FDA1A0 [22:05:23]SAM_PROTO_ClearQueue [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 09 00 00 [22:05:23]Write to MH i2c: E2 08 00 12 12 80 09 00 00 00 00 00 00 96 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]SAM_PROTO_ClearQueue done [22:05:23]KKMCreateOFDPacket [22:05:23]OFDProtocolAddRootSTLVToBuf [22:05:23]FM_MakeSignedData [22:05:23]FM_MakeSignedData [22:05:23]SAM_PROTO_SignData [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 01 02 [22:05:23]Write to MH i2c: E2 08 00 13 12 80 0D 01 02 00 00 00 00 9E [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=255 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 24 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [22:05:23]Write to MH i2c: E2 02 01 14 12 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 24 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A9 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=32 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C2 00 00 35 04 06 00 50 23 7D 09 9B 3C [22:05:23]Write to MH i2c: E2 23 00 15 12 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C2 00 00 35 04 06 00 50 23 7D 09 9B 3C 00 00 63 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 03 02 [22:05:23]Write to MH i2c: E2 08 00 16 12 80 0D 03 02 00 00 00 00 A3 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0B 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0B 00 16 12 00 1A 1C 47 2A 98 B5 90 DD 90 00 05 [22:05:23]RAPDU: 1A 1C 47 2A 98 B5 90 DD 90 00 [22:05:23]wFMCommunicate OK [22:05:23]SAM_PROTO_SignData done [22:05:23]FM_MakeSignedData done [22:05:23]CreateOFDProtocolMessage [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 11 00 00 [22:05:23]Write to MH i2c: E2 08 00 17 12 80 11 00 00 00 00 00 00 A3 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 17 00 [22:05:23]MH_I2C_Read... [22:05:23]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 38 30 30 90 00 EE [22:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:05:23]wFMCommunicate OK [22:05:23]CreateOFDProtocolMessage done [22:05:23]OFDSenderStorePacket 49883 [22:05:23]StoreOFDPacket docnum=49883 [22:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 06 BF 1D 01 19 0D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 24 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C2 00 00 35 04 06 00 50 23 7D 09 9B 3C 1A 1C 47 2A 98 B5 90 DD [22:05:23]CheckFolder [22:05:23]dirname=/storage/ofd_packets [22:05:23]CheckFolder done [22:05:23]ProducePacketName [22:05:23]name=ofd_packets/00049883 [22:05:23]NVStorageSaveData ofd_packets/00049883 [22:05:23]File name is /storage/ofd_packets/00049883 [22:05:23]Write 323 bytes [22:05:23]NVStorageSaveData done [22:05:23]OFDSenderStorePacket done [22:05:23]KKMCreateOFDPacket done [22:05:23]NVStorageSaveData kkm_last_timestamp [22:05:23]File name is /storage/kkm_last_timestamp [22:05:23]Write 4 bytes [22:05:23]NVStorageSaveData done [22:05:23]ExternCall_PrintAddStr [22:05:23]wPrintStart [22:05:23]Write to MH i2c: 01 00 00 18 12 2A [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 07 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 FF 0F 3F [22:05:23]RasterBufferAndPrint [22:05:23]line Счет N : (3)190058 [22:05:23]line ИНН: 02508201610067 [22:05:23]line Контрольно-Кассовый Чек [22:05:23]line ПРОДАЖА [22:05:23]line Товар: 48743570 [22:05:23]line Сигареты Winston XStyle Blue [22:05:23]line 2.000 * 140.00 [22:05:23]line = 280.00 [22:05:23]line НДС 12% НСП 1% [22:05:23]line > о реализуемом товаре [22:05:23]line ИТОГО: 280.00 [22:05:23]line НСП 1% : 2.48 [22:05:23]line НДС 12% : 29.73 [22:05:23]line Наличными: 0.00 [22:05:23]line Безнал.: 280.00 [22:05:23]line Место: АЗС № 95 "Партнер Нефть" [22:05:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:05:23]line СНО: Общий режим [22:05:23]line Чек 149 18.08.2024 22:05 [22:05:23]line Смена: 466 ФФД: 1.0 [22:05:23]line ЗНМ: 0300000078 [22:05:23]line РНМ: 0000000000092546 [22:05:23]line Версия ККМ: 001 [22:05:23]line Платежная система: O! деньги [22:05:23]line ФМ: 0000000000871800 [22:05:23]line ФД: 49883 [22:05:23]line ФПД: 88113351859004 [22:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220524&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49883&fm=88113351859004&tin=02508201610067®Number=0000000000092546&sum=28000 [22:05:23]line 0 [22:05:23]written 0, free lines is 4095 [22:05:23]OFD Sender: Processing packet 49883 [packets to send 21, broken 20] [22:05:23]ProducePacketName [22:05:23]name=ofd_packets/00049883 [22:05:23]OFD Sender: To server: pG, [22:05:23]CommunicateWithHost lk.salyk.kg:30040 [22:05:23]ConnectInit lk.salyk.kg [22:05:23]Connected sock=10 [22:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 06 BF 1D 01 19 0D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 24 70 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C2 00 00 35 04 06 00 50 23 7D 09 9B 3C 1A 1C 47 2A 98 B5 90 DD [22:05:24]Write to MH i2c: 01 00 00 42 12 54 [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 07 00 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 D8 0C 3F [22:05:24]RasterBufferAndPrint [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]written 0, free lines is 3300 [22:05:24]MH_Cut [22:05:24]Write to MH i2c: D1 01 00 49 12 01 2D [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 01 00 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 01 00 49 12 00 2C [22:05:24]Write to MH i2c: 01 00 00 4A 12 5C [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 30 06 47 00 40 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C2 00 00 F4 03 04 00 97 1A C2 66 B6 04 01 00 00 20 1A BE 2B 32 97 37 12 [22:05:24]CommunicateWithHost err = 0 [22:05:24]CheckOFDResponse [22:05:24]1017 (14) - 77093643461234 [22:05:24]1041 (16) - 0000000000871800 [22:05:24]1040 (4) - 49883 [22:05:24]1012 (4) - 18.08.2024 16:00 [22:05:24]1206 (1) - 0 [22:05:24]OFD Sender: Remove packet 49883 [22:05:24]ProducePacketName [22:05:24]name=ofd_packets/00049883 [22:05:24]NVStorageDeleteData [22:05:24]OFD Sender: No OFD packet to send [22:05:24]*** Cut start [22:05:24]*** Purtial cut [22:05:24]*** Stage 1: CUTSNS_PIN = 1 [22:05:25]Read from MH i2c: 01 [22:05:25]MH_I2C_Read... [22:05:25]*** Stop cut motor [22:05:25]*** Cut end [22:05:25]Read from MH i2c: 01 07 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 FF 0F 71 [22:05:25]process_action close_receipt done [22:05:25]requested_data is exist [22:05:25]produce_requested_data [22:05:25]requested_item fm.sn is exist - process it [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 11 00 00 [22:05:25]Write to MH i2c: E2 08 00 4B 12 80 11 00 00 00 00 00 00 D7 [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 17 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 17 00 4B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 22 [22:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:05:25]wFMCommunicate OK [22:05:25]requested_item fd.num is exist - process it [22:05:25]SAM_PROTO_GetFieldsCounters [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 13 00 00 [22:05:25]Write to MH i2c: E2 08 00 4C 12 80 13 00 00 00 00 00 00 DA [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 62 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 62 00 4C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:25]wFMCommunicate OK [22:05:25]SAM_PROTO_GetFieldsCounters done [22:05:25]requested_item shift.num is exist - process it [22:05:25]requested_item shift.opened is exist - process it [22:05:25]req_shift_opened [22:05:25]FM_GetShiftState [22:05:25]SAM_PROTO_GetShiftState [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 13 01 00 [22:05:25]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F9 [22:05:25]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:05:25]wFMCommunicate OK [22:05:25]SAM_PROTO_GetShiftState done [22:05:25]FM_GetShiftState done [22:05:25]req_shift_opened done [22:05:25]requested_item shift.open_date is exist - process it [22:05:25]req_shift_open_date [22:05:25]req_shift_open_date done [22:05:25]produce_requested_data done [22:05:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49883,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:05:25]process_action_free close_receipt [22:05:25]json_value_free [22:05:25]json_value_free done [22:05:25]process_json_proto returns [22:05:25]Send response to host [22:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49883,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:05:25]free response buf [22:05:25]execute_script done [22:05:25]execute_script returns [22:05:25]free content buf [22:05:25]Sock 9.Close socket [22:05:25]Sock 9.Thread stoped [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:31]accept exits with 7 [22:09:31]New connection [22:09:31]New thread 3067198820 created [22:09:31]Thread 3067055460 joined [22:09:31]Waiting for new connection... [22:09:31] Sock 7.Parse request [22:09:31]Sock 7.Check first char [22:09:31]Sock 7.First char is OK [22:09:31]request: POST /json_proto HTTP/1.0 [22:09:31]Method: POST [22:09:31]URL: /json_proto [22:09:31]Method is POST - this is cgi request [22:09:31]url: /json_proto [22:09:31]query_string will be loaded in cgi processing [22:09:31]execute_cgi json_proto POST (null) [22:09:31]execute_cgi path=json_proto method=POST [22:09:31]POST find Content-Length [22:09:31]Host: 172.17.46.196:8080 [22:09:31]Content-Length: 1706 [22:09:31]Content-Type: application/json [22:09:31] [22:09:31]POST finish read [22:09:31]Found Content-Length = 1706 [22:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190059", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 470.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:31]execute_script... [22:09: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 : (3)190059", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 470.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:31]POST & json_proto [22:09:31]process_json_proto [22:09:31]json parsed OK: [22:09:31]protocol is kg_v1.0 [22:09:31]action value=close_receipt [22:09:31]process_action close_receipt [22:09:31]cmd_close_receipt [22:09:31]MH_GetDate [22:09:31]Write to MH i2c: F0 00 00 4E 12 4F [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 4E 12 00 1E 71 C2 66 27 15 C2 66 73 [22:09:31]GetLastDocTimeStamp 1724018724 [22:09:31]current date 1724018974 [22:09:31]FM_GetShiftState [22:09:31]SAM_PROTO_GetShiftState [22:09:31]wFMCommunicate request_size=4 [22:09:31]MH_SAM_APDU [22:09:31]CAPDU: 80 13 01 00 [22:09:31]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:31]Read from MH i2c: E2 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 FB [22:09:31]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:09:31]wFMCommunicate OK [22:09:31]SAM_PROTO_GetShiftState done [22:09:31]FM_GetShiftState done [22:09:31]opened in 1723939759 [22:09:31]opened+sec_in_day 1724026159 [22:09:31]quantity*price = 13000 [22:09:31]sum+1 = 13001 [22:09:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 470.00 НСП 1% : 4.15 НДС 12% : 49.91 Наличными: 0.00 Безнал.: 470.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 150 18.08.2024 22:09 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49884 ФПД: 195053956161704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220934&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49884&fm=195053956161704&tin=02508201610067®Number=0000000000092546&sum=47000 0 [22:09:33]StoreToDocumentArchive [22:09:33]shift 466 fd 49884 [22:09:33]save to /storage/0466/doc_00049884 [22:09:33]save last doc name /storage/0466/doc_00049884 to /storage/kkm_last_doc_name [22:09:33]save OK [22:09:33]Clear old archive folders... [22:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=644 [22:09:33]tlvbuf is 00FD35E0 [22:09:33]SAM_PROTO_ClearQueue [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 09 00 00 [22:09:33]Write to MH i2c: E2 08 00 5C 12 80 09 00 00 00 00 00 00 E0 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_ClearQueue done [22:09:33]KKMCreateOFDPacket [22:09:33]OFDProtocolAddRootSTLVToBuf [22:09:33]FM_MakeSignedData [22:09:33]FM_MakeSignedData [22:09:33]SAM_PROTO_SignData [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 01 02 [22:09:33]Write to MH i2c: E2 08 00 5D 12 80 0D 01 02 00 00 00 00 E8 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=255 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 02 02 FA 03 00 84 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 [22:09:33]Write to MH i2c: E2 02 01 5E 12 80 0D 02 02 FA 00 03 00 84 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 51 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=255 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F [22:09:33]Write to MH i2c: E2 02 01 5F 12 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 48 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=153 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 1E 71 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C2 00 00 35 04 06 00 B1 66 89 C4 E0 A8 [22:09:33]Write to MH i2c: E2 9C 00 60 12 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 1E 71 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C2 00 00 35 04 06 00 B1 66 89 C4 E0 A8 00 00 60 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 03 02 [22:09:33]Write to MH i2c: E2 08 00 61 12 80 0D 03 02 00 00 00 00 EE [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 61 12 00 90 E4 5D 20 8A DC 59 9F 90 00 3E [22:09:33]RAPDU: 90 E4 5D 20 8A DC 59 9F 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_SignData done [22:09:33]FM_MakeSignedData done [22:09:33]CreateOFDProtocolMessage [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 11 00 00 [22:09:33]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 17 00 [22:09:33]MH_I2C_Read... [22:09:33]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 38 30 30 90 00 39 [22:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:09:33]wFMCommunicate OK [22:09:33]CreateOFDProtocolMessage done [22:09:33]OFDSenderStorePacket 49884 [22:09:33]StoreOFDPacket docnum=49884 [22:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 02 00 00 F9 67 90 02 2F E7 5A 03 01 00 03 00 84 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 1E 71 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C2 00 00 35 04 06 00 B1 66 89 C4 E0 A8 90 E4 5D 20 8A DC 59 9F [22:09:33]CheckFolder [22:09:33]dirname=/storage/ofd_packets [22:09:33]CheckFolder done [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00049884 [22:09:33]NVStorageSaveData ofd_packets/00049884 [22:09:33]File name is /storage/ofd_packets/00049884 [22:09:33]Write 694 bytes [22:09:33]NVStorageSaveData done [22:09:33]OFDSenderStorePacket done [22:09:33]KKMCreateOFDPacket done [22:09:33]NVStorageSaveData kkm_last_timestamp [22:09:33]File name is /storage/kkm_last_timestamp [22:09:33]Write 4 bytes [22:09:33]NVStorageSaveData done [22:09:33]ExternCall_PrintAddStr [22:09:33]wPrintStart [22:09:33]Write to MH i2c: 01 00 00 63 12 75 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [22:09:33]RasterBufferAndPrint [22:09:34]line Счет N : (3)190059 [22:09:34]line ИНН: 02508201610067 [22:09:34]line Контрольно-Кассовый Чек [22:09:34]line ПРОДАЖА [22:09:34]line Товар: 5449000027450 [22:09:34]line Напиток FuzeTea чай манго,ром 0,5л [22:09:34]line 2.000 * 65.00 [22:09:34]line = 130.00 [22:09:34]line НДС 12% НСП 1% [22:09:34]line > о реализуемом товаре [22:09:34]line Товар: 4870002326172 [22:09:34]line Вода ASU пит н.газ лимон ПЭТ 1л [22:09:34]line 1.000 * 100.00 [22:09:34]line = 100.00 [22:09:34]line НДС 12% НСП 1% [22:09:34]line > о реализуемом товаре [22:09:34]line Товар: 4870002328398 [22:09:34]line Вода ASU пит н.газ мята ПЭТ 1л [22:09:34]line 1.000 * 100.00 [22:09:34]line = 100.00 [22:09:34]line НДС 12% НСП 1% [22:09:34]line > о реализуемом товаре [22:09:34]line Товар: 48743587 [22:09:34]line Сигареты Winston XStyle Silver [22:09:34]line 1.000 * 140.00 [22:09:34]line = 140.00 [22:09:34]line НДС 12% НСП 1% [22:09:34]line > о реализуемом товаре [22:09:34]line ИТОГО: 470.00 [22:09:34]line НСП 1% : 4.15 [22:09:34]line НДС 12% : 49.91 [22:09:34]line Наличными: 0.00 [22:09:34]line Безнал.: 470.00 [22:09:34]line Место: АЗС № 95 "Партнер Нефть" [22:09:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:09:34]line СНО: Общий режим [22:09:34]line Чек 150 18.08.2024 22:09 [22:09:34]line Смена: 466 ФФД: 1.0 [22:09:34]line ЗНМ: 0300000078 [22:09:34]line РНМ: 0000000000092546 [22:09:34]line Версия ККМ: 001 [22:09:34]line Платежная система: Бакай Банк [22:09:34]line ФМ: 0000000000871800 [22:09:34]line ФД: 49884 [22:09:34]line ФПД: 195053956161704 [22:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220934&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49884&fm=195053956161704&tin=02508201610067®Number=0000000000092546&sum=47000 [22:09:34]line 0 [22:09:34]OFD Sender: Processing packet 49884 [packets to send 21, broken 20] [22:09:34]ProducePacketName [22:09:34]name=ofd_packets/00049884 [22:09:34]OFD Sender: To server: pG, [22:09:34]CommunicateWithHost lk.salyk.kg:30040 [22:09:34]ConnectInit lk.salyk.kg [22:09:34]written 0, free lines is 4095 [22:09:34]Connected sock=9 [22:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 02 00 00 F9 67 90 02 2F E7 5A 03 01 00 03 00 84 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 1E 71 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C2 00 00 35 04 06 00 B1 66 89 C4 E0 A8 90 E4 5D 20 8A DC 59 9F [22:09:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7F B0 47 00 83 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C2 00 00 F4 03 04 00 92 1B C2 66 B6 04 01 00 00 AD E4 FD 2C 9D E3 5C CE [22:09:34]CommunicateWithHost err = 0 [22:09:34]CheckOFDResponse [22:09:34]1017 (14) - 77093643461234 [22:09:34]1041 (16) - 0000000000871800 [22:09:34]1040 (4) - 49884 [22:09:34]1012 (4) - 18.08.2024 16:04 [22:09:34]1206 (1) - 0 [22:09:34]OFD Sender: Remove packet 49884 [22:09:34]ProducePacketName [22:09:34]name=ofd_packets/00049884 [22:09:34]NVStorageDeleteData [22:09:34]Write to MH i2c: 01 00 00 A3 12 B5 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 07 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 7C 0B 43 [22:09:34]RasterBufferAndPrint [22:09:34]line [22:09:34]line [22:09:34]line [22:09:34]line [22:09:34]line [22:09:35]written 0, free lines is 2949 [22:09:35]MH_Cut [22:09:35]Write to MH i2c: D1 01 00 AA 12 01 8E [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: D1 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: D1 01 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: D1 01 00 AA 12 00 8D [22:09:35]Write to MH i2c: 01 00 00 AB 12 BD [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]OFD Sender: No OFD packet to send [22:09:36]*** Cut start [22:09:36]*** Purtial cut [22:09:36]*** CUTSNS_PIN = 0 [22:09:36]*** Stage 1: CUTSNS_PIN = 1 [22:09:38]Read from MH i2c: 01 [22:09:38]MH_I2C_Read... [22:09:38]*** Stop cut motor [22:09:38]*** Cut end [22:09:38]Read from MH i2c: 01 07 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: 01 07 00 AB 12 00 00 00 00 00 FF 0F D2 [22:09:38]process_action close_receipt done [22:09:38]requested_data is exist [22:09:38]produce_requested_data [22:09:38]requested_item fm.sn is exist - process it [22:09:38]wFMCommunicate request_size=4 [22:09:38]MH_SAM_APDU [22:09:38]CAPDU: 80 11 00 00 [22:09:38]Write to MH i2c: E2 08 00 AC 12 80 11 00 00 00 00 00 00 38 [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 [22:09:38]MH_I2C_Read... [22:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:38]Read from MH i2c: E2 17 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 17 00 AC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 83 [22:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:09:38]wFMCommunicate OK [22:09:38]requested_item fd.num is exist - process it [22:09:38]SAM_PROTO_GetFieldsCounters [22:09:38]wFMCommunicate request_size=4 [22:09:38]MH_SAM_APDU [22:09:38]CAPDU: 80 13 00 00 [22:09:38]Write to MH i2c: E2 08 00 AD 12 80 13 00 00 00 00 00 00 3B [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:38]Read from MH i2c: E2 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 62 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 62 00 AD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:38]wFMCommunicate OK [22:09:38]SAM_PROTO_GetFieldsCounters done [22:09:38]requested_item shift.num is exist - process it [22:09:38]requested_item shift.opened is exist - process it [22:09:38]req_shift_opened [22:09:38]FM_GetShiftState [22:09:38]SAM_PROTO_GetShiftState [22:09:38]wFMCommunicate request_size=4 [22:09:38]MH_SAM_APDU [22:09:38]CAPDU: 80 13 01 00 [22:09:38]Write to MH i2c: E2 08 00 AE 12 80 13 01 00 00 00 00 00 3D [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:38]Read from MH i2c: E2 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 AE 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 5A [22:09:38]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:09:38]wFMCommunicate OK [22:09:38]SAM_PROTO_GetShiftState done [22:09:38]FM_GetShiftState done [22:09:38]req_shift_opened done [22:09:38]requested_item shift.open_date is exist - process it [22:09:38]req_shift_open_date [22:09:38]req_shift_open_date done [22:09:38]produce_requested_data done [22:09:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49884,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:09:38]process_action_free close_receipt [22:09:38]json_value_free [22:09:38]json_value_free done [22:09:38]process_json_proto returns [22:09:38]Send response to host [22:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49884,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:09:38]free response buf [22:09:38]execute_script done [22:09:38]execute_script returns [22:09:38]free content buf [22:09:38]Sock 7.Close socket [22:09:38]Sock 7.Thread stoped [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:47]int [22:09:47]Write to MH i2c: 01 00 00 AF 12 C1 [22:09:47]*** FLAG_PRN_KEY set [22:09:47]Write i2c OK [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: 01 [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: 01 07 00 [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: 01 07 00 AF 12 00 08 00 00 00 FF 0F DE [22:09:47]state=0 [22:09:47]Key pressed [22:09:47]Feed [22:09:47]Write to MH i2c: D8 00 00 B0 12 99 [22:09:47]Write i2c OK [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: D8 [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: D8 01 00 [22:09:47]MH_I2C_Read... [22:09:47]Read from MH i2c: D8 01 00 B0 12 00 9A [22:09:47]int [22:09:47]Write to MH i2c: 01 00 00 B1 12 C3 [22:09:47]Write i2c OK [22:09:47]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 07 00 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 07 00 B1 12 00 48 00 00 00 3C 00 4E [22:09:48]state=2 [22:09:48]Key pressed [22:09:48]int [22:09:48]Write to MH i2c: 01 00 00 B2 12 C4 [22:09:48]*** FLAG_PRN_KEY reset [22:09:48]Write i2c OK [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 07 00 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 FB 0F D5 [22:09:48]state=2 [22:09:48]Stop feed [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:18]accept exits with 10 [22:17:18]New connection [22:17:18]New thread 3067055460 created [22:17:18]Thread 3067198820 joined [22:17:18]Waiting for new connection... [22:17:18] Sock 10.Parse request [22:17:18]Sock 10.Check first char [22:17:18]Sock 10.First char is OK [22:17:18]request: POST /json_proto HTTP/1.0 [22:17:18]Method: POST [22:17:18]URL: /json_proto [22:17:18]Method is POST - this is cgi request [22:17:18]url: /json_proto [22:17:18]query_string will be loaded in cgi processing [22:17:18]execute_cgi json_proto POST (null) [22:17:18]execute_cgi path=json_proto method=POST [22:17:18]POST find Content-Length [22:17:18]Host: 172.17.46.196:8080 [22:17:18]Content-Length: 644 [22:17:18]Content-Type: application/json [22:17:18] [22:17:18]POST finish read [22:17:18]Found Content-Length = 644 [22:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190060", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:18]execute_script... [22:17:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190060", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:18]POST & json_proto [22:17:18]process_json_proto [22:17:18]json parsed OK: [22:17:18]protocol is kg_v1.0 [22:17:18]action value=close_receipt [22:17:18]process_action close_receipt [22:17:18]cmd_close_receipt [22:17:18]MH_GetDate [22:17:18]Write to MH i2c: F0 00 00 B3 12 B4 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: F0 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: F0 09 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: F0 09 00 B3 12 00 F0 72 C2 66 27 15 C2 66 AB [22:17:18]GetLastDocTimeStamp 1724018974 [22:17:18]current date 1724019440 [22:17:18]FM_GetShiftState [22:17:18]SAM_PROTO_GetShiftState [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 13 01 00 [22:17:18]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0E 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 60 [22:17:18]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:17:18]wFMCommunicate OK [22:17:18]SAM_PROTO_GetShiftState done [22:17:18]FM_GetShiftState done [22:17:18]opened in 1723939759 [22:17:18]opened+sec_in_day 1724026159 [22:17:18]quantity*price = 3500 [22:17:18]sum+1 = 3501 [22:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 151 18.08.2024 22:17 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49885 ФПД: 216253773401250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221720&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49885&fm=216253773401250&tin=02508201610067®Number=0000000000092546&sum=3500 0 [22:17:19]StoreToDocumentArchive [22:17:19]shift 466 fd 49885 [22:17:19]save to /storage/0466/doc_00049885 [22:17:19]save last doc name /storage/0466/doc_00049885 to /storage/kkm_last_doc_name [22:17:19]save OK [22:17:19]Clear old archive folders... [22:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:17:19]tlvbuf is 00FE5050 [22:17:19]SAM_PROTO_ClearQueue [22:17:19]wFMCommunicate request_size=4 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 09 00 00 [22:17:19]Write to MH i2c: E2 08 00 C1 12 80 09 00 00 00 00 00 00 45 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [22:17:19]RAPDU: 90 00 [22:17:19]wFMCommunicate OK [22:17:19]SAM_PROTO_ClearQueue done [22:17:19]KKMCreateOFDPacket [22:17:19]OFDProtocolAddRootSTLVToBuf [22:17:19]FM_MakeSignedData [22:17:19]FM_MakeSignedData [22:17:19]SAM_PROTO_SignData [22:17:19]wFMCommunicate request_size=4 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 0D 01 02 [22:17:19]Write to MH i2c: E2 08 00 C2 12 80 0D 01 02 00 00 00 00 4D [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [22:17:19]RAPDU: 90 00 [22:17:19]wFMCommunicate OK [22:17:19]wFMCommunicate request_size=255 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F0 72 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [22:17:19]Write to MH i2c: E2 02 01 C3 12 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F0 72 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 2A [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [22:17:19]RAPDU: 90 00 [22:17:19]wFMCommunicate OK [22:17:19]wFMCommunicate request_size=34 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C2 00 00 35 04 06 00 C4 AE 81 58 4C A2 [22:17:19]Write to MH i2c: E2 25 00 C4 12 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C2 00 00 35 04 06 00 C4 AE 81 58 4C A2 00 00 E1 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [22:17:19]RAPDU: 90 00 [22:17:19]wFMCommunicate OK [22:17:19]wFMCommunicate request_size=4 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 0D 03 02 [22:17:19]Write to MH i2c: E2 08 00 C5 12 80 0D 03 02 00 00 00 00 52 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 0B 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 0B 00 C5 12 00 35 C8 B5 B2 EE 2B CC B8 90 00 54 [22:17:19]RAPDU: 35 C8 B5 B2 EE 2B CC B8 90 00 [22:17:19]wFMCommunicate OK [22:17:19]SAM_PROTO_SignData done [22:17:19]FM_MakeSignedData done [22:17:19]CreateOFDProtocolMessage [22:17:19]wFMCommunicate request_size=4 [22:17:19]MH_SAM_APDU [22:17:19]CAPDU: 80 11 00 00 [22:17:19]Write to MH i2c: E2 08 00 C6 12 80 11 00 00 00 00 00 00 52 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:19]Read from MH i2c: E2 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 17 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: E2 17 00 C6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [22:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:17:19]wFMCommunicate OK [22:17:19]CreateOFDProtocolMessage done [22:17:19]OFDSenderStorePacket 49885 [22:17:19]StoreOFDPacket docnum=49885 [22:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 06 A9 1F 01 C9 CC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F0 72 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C2 00 00 35 04 06 00 C4 AE 81 58 4C A2 35 C8 B5 B2 EE 2B CC B8 [22:17:19]CheckFolder [22:17:19]dirname=/storage/ofd_packets [22:17:19]CheckFolder done [22:17:19]ProducePacketName [22:17:19]name=ofd_packets/00049885 [22:17:19]NVStorageSaveData ofd_packets/00049885 [22:17:19]File name is /storage/ofd_packets/00049885 [22:17:19]Write 325 bytes [22:17:19]NVStorageSaveData done [22:17:19]OFDSenderStorePacket done [22:17:19]KKMCreateOFDPacket done [22:17:19]NVStorageSaveData kkm_last_timestamp [22:17:19]File name is /storage/kkm_last_timestamp [22:17:19]Write 4 bytes [22:17:19]NVStorageSaveData done [22:17:19]ExternCall_PrintAddStr [22:17:19]wPrintStart [22:17:19]Write to MH i2c: 01 00 00 C7 12 D9 [22:17:19]Write i2c OK [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 07 00 [22:17:19]MH_I2C_Read... [22:17:19]Read from MH i2c: 01 07 00 C7 12 00 00 00 00 00 FF 0F EE [22:17:19]RasterBufferAndPrint [22:17:19]line Счет N : (3)190060 [22:17:19]line ИНН: 02508201610067 [22:17:19]line Контрольно-Кассовый Чек [22:17:19]line ПРОДАЖА [22:17:19]line Товар: 4700000310326 [22:17:19]line Вода Адыгене 1л б/г [22:17:19]line 1.000 * 35.00 [22:17:19]line = 35.00 [22:17:19]line НДС 12% НСП 1% [22:17:19]line > о реализуемом товаре [22:17:19]line ИТОГО: 35.00 [22:17:19]line НСП 1% : 0.31 [22:17:19]line НДС 12% : 3.72 [22:17:19]line Наличными: 35.00 [22:17:19]line Безнал.: 0.00 [22:17:19]line Место: АЗС № 95 "Партнер Нефть" [22:17:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:17:19]line СНО: Общий режим [22:17:19]line Чек 151 18.08.2024 22:17 [22:17:19]line Смена: 466 ФФД: 1.0 [22:17:19]line ЗНМ: 0300000078 [22:17:19]line РНМ: 0000000000092546 [22:17:19]line Версия ККМ: 001 [22:17:19]line ФМ: 0000000000871800 [22:17:19]line ФД: 49885 [22:17:19]line ФПД: 216253773401250 [22:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221720&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49885&fm=216253773401250&tin=02508201610067®Number=0000000000092546&sum=3500 [22:17:20]line 0 [22:17:20]OFD Sender: Processing packet 49885 [packets to send 21, broken 20] [22:17:20]ProducePacketName [22:17:20]name=ofd_packets/00049885 [22:17:20]OFD Sender: To server: pG, [22:17:20]CommunicateWithHost lk.salyk.kg:30040 [22:17:20]ConnectInit lk.salyk.kg [22:17:20]written 0, free lines is 4095 [22:17:20]Write to MH i2c: 01 00 00 EF 12 01 [22:17:20]Write i2c OK [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: 01 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: 01 07 00 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 E0 0C F4 [22:17:20]RasterBufferAndPrint [22:17:20]line [22:17:20]line [22:17:20]line [22:17:20]line [22:17:20]line [22:17:20]written 0, free lines is 3299 [22:17:20]MH_Cut [22:17:20]Write to MH i2c: D1 01 00 F6 12 01 DA [22:17:20]Write i2c OK [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: D1 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: D1 01 00 [22:17:20]MH_I2C_Read... [22:17:20]Read from MH i2c: D1 01 00 F6 12 00 D9 [22:17:20]Write to MH i2c: 01 00 00 F7 12 09 [22:17:20]Write i2c OK [22:17:20]MH_I2C_Read... [22:17:21]*** Cut start [22:17:21]*** Purtial cut [22:17:21]*** Stage 1: CUTSNS_PIN = 1 [22:17:21]Read from MH i2c: 01 [22:17:21]MH_I2C_Read... [22:17:21]*** Stop cut motor [22:17:21]*** Cut end [22:17:21]Read from MH i2c: 01 07 00 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 FF 0F 1E [22:17:21]process_action close_receipt done [22:17:21]requested_data is exist [22:17:21]produce_requested_data [22:17:21]requested_item fm.sn is exist - process it [22:17:21]wFMCommunicate request_size=4 [22:17:21]MH_SAM_APDU [22:17:21]CAPDU: 80 11 00 00 [22:17:21]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [22:17:21]Write i2c OK [22:17:21]MH_I2C_Read... [22:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:21]Read from MH i2c: E2 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 17 00 [22:17:21]MH_I2C_Read... [22:17:21]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 38 30 30 90 00 CF [22:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:17:21]wFMCommunicate OK [22:17:21]requested_item fd.num is exist - process it [22:17:21]SAM_PROTO_GetFieldsCounters [22:17:21]wFMCommunicate request_size=4 [22:17:21]MH_SAM_APDU [22:17:21]CAPDU: 80 13 00 00 [22:17:21]Write to MH i2c: E2 08 00 F9 12 80 13 00 00 00 00 00 00 87 [22:17:21]Write i2c OK [22:17:21]MH_I2C_Read... [22:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:21]Read from MH i2c: E2 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 62 00 [22:17:21]MH_I2C_Read... [22:17:21]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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:21]wFMCommunicate OK [22:17:21]SAM_PROTO_GetFieldsCounters done [22:17:21]requested_item shift.num is exist - process it [22:17:21]requested_item shift.opened is exist - process it [22:17:21]req_shift_opened [22:17:21]FM_GetShiftState [22:17:21]SAM_PROTO_GetShiftState [22:17:21]wFMCommunicate request_size=4 [22:17:21]MH_SAM_APDU [22:17:21]CAPDU: 80 13 01 00 [22:17:21]Write to MH i2c: E2 08 00 FA 12 80 13 01 00 00 00 00 00 89 [22:17:21]Write i2c OK [22:17:21]MH_I2C_Read... [22:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:21]Read from MH i2c: E2 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 0E 00 [22:17:21]MH_I2C_Read... [22:17:21]Read from MH i2c: E2 0E 00 FA 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A6 [22:17:21]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:17:21]wFMCommunicate OK [22:17:21]SAM_PROTO_GetShiftState done [22:17:21]FM_GetShiftState done [22:17:21]req_shift_opened done [22:17:21]requested_item shift.open_date is exist - process it [22:17:21]req_shift_open_date [22:17:21]req_shift_open_date done [22:17:21]produce_requested_data done [22:17:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49885,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:17:21]process_action_free close_receipt [22:17:21]json_value_free [22:17:21]json_value_free done [22:17:21]process_json_proto returns [22:17:21]Send response to host [22:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49885,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:17:21]free response buf [22:17:21]execute_script done [22:17:21]execute_script returns [22:17:21]free content buf [22:17:21]Sock 10.Close socket [22:17:21]Sock 10.Thread stoped [22:19:32]ConnectInit Can't connect to host [22:19:32]CommunicateWithHost connect error [22:19:32]CommunicateWithHost err = -1 [22:19:32]OFD Sender: Server communicate error [22:19:37]OFD Sender: Processing packet 49885 [packets to send 21, broken 20] [22:19:37]ProducePacketName [22:19:37]name=ofd_packets/00049885 [22:19:37]OFD Sender: To server: pG, [22:19:37]CommunicateWithHost lk.salyk.kg:30040 [22:19:37]ConnectInit lk.salyk.kg [22:19:37]Connected sock=9 [22:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 06 A9 1F 01 C9 CC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F0 72 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C2 00 00 35 04 06 00 C4 AE 81 58 4C A2 35 C8 B5 B2 EE 2B CC B8 [22:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A9 AC 47 00 1D 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C2 00 00 F4 03 04 00 ED 1D C2 66 B6 04 01 00 00 B7 A7 DB 2C 6B FA EE 2E [22:19:38]CommunicateWithHost err = 0 [22:19:38]CheckOFDResponse [22:19:38]1017 (14) - 77093643461234 [22:19:38]1041 (16) - 0000000000871800 [22:19:38]1040 (4) - 49885 [22:19:38]1012 (4) - 18.08.2024 16:14 [22:19:38]1206 (1) - 0 [22:19:38]OFD Sender: Remove packet 49885 [22:19:38]ProducePacketName [22:19:38]name=ofd_packets/00049885 [22:19:38]NVStorageDeleteData [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]accept exits with 7 [22:22:33]New connection [22:22:33]New thread 3067198820 created [22:22:33] Sock 7.Parse request [22:22:33]Thread 3067055460 joined [22:22:33]Sock 7.Check first char [22:22:33]Waiting for new connection... [22:22:33]Sock 7.First char is OK [22:22:33]request: POST /json_proto HTTP/1.0 [22:22:33]Method: POST [22:22:33]URL: /json_proto [22:22:33]Method is POST - this is cgi request [22:22:33]url: /json_proto [22:22:33]query_string will be loaded in cgi processing [22:22:33]execute_cgi json_proto POST (null) [22:22:33]execute_cgi path=json_proto method=POST [22:22:33]POST find Content-Length [22:22:33]Host: 172.17.46.196:8080 [22:22:33]Content-Length: 621 [22:22:33]Content-Type: application/json [22:22:33] [22:22:33]POST finish read [22:22:33]Found Content-Length = 621 [22:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190061", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:33]execute_script... [22:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190061", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:33]POST & json_proto [22:22:33]process_json_proto [22:22:33]json parsed OK: [22:22:33]protocol is kg_v1.0 [22:22:33]action value=close_receipt [22:22:33]process_action close_receipt [22:22:33]cmd_close_receipt [22:22:33]MH_GetDate [22:22:33]Write to MH i2c: F0 00 00 FB 12 FC [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 09 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 09 00 FB 12 00 2C 74 C2 66 27 15 C2 66 31 [22:22:33]GetLastDocTimeStamp 1724019440 [22:22:33]current date 1724019756 [22:22:33]FM_GetShiftState [22:22:33]SAM_PROTO_GetShiftState [22:22:33]wFMCommunicate request_size=4 [22:22:33]MH_SAM_APDU [22:22:33]CAPDU: 80 13 01 00 [22:22:33]Write to MH i2c: E2 08 00 FC 12 80 13 01 00 00 00 00 00 8B [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:33]OFD Sender: No OFD packet to send [22:22:33]Read from MH i2c: E2 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 FC 12 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 A8 [22:22:33]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:22:33]wFMCommunicate OK [22:22:33]SAM_PROTO_GetShiftState done [22:22:33]FM_GetShiftState done [22:22:33]opened in 1723939759 [22:22:33]opened+sec_in_day 1724026159 [22:22:33]quantity*price = 14000 [22:22:33]sum+1 = 14001 [22:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 152 18.08.2024 22:22 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49886 ФПД: 96383510230507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222236&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49886&fm=96383510230507&tin=02508201610067®Number=0000000000092546&sum=14000 0 [22:22:35]StoreToDocumentArchive [22:22:35]shift 466 fd 49886 [22:22:35]save to /storage/0466/doc_00049886 [22:22:35]save last doc name /storage/0466/doc_00049886 to /storage/kkm_last_doc_name [22:22:35]save OK [22:22:35]Clear old archive folders... [22:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:22:35]tlvbuf is 00FC5580 [22:22:35]SAM_PROTO_ClearQueue [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 09 00 00 [22:22:35]Write to MH i2c: E2 08 00 09 13 80 09 00 00 00 00 00 00 8E [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]SAM_PROTO_ClearQueue done [22:22:35]KKMCreateOFDPacket [22:22:35]OFDProtocolAddRootSTLVToBuf [22:22:35]FM_MakeSignedData [22:22:35]FM_MakeSignedData [22:22:35]SAM_PROTO_SignData [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 01 02 [22:22:35]Write to MH i2c: E2 08 00 0A 13 80 0D 01 02 00 00 00 00 96 [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]wFMCommunicate request_size=255 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 2C 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [22:22:35]Write to MH i2c: E2 02 01 0B 13 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 2C 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 BF [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]wFMCommunicate request_size=32 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C2 00 00 35 04 06 00 57 A9 08 E3 B5 EB [22:22:35]Write to MH i2c: E2 23 00 0C 13 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C2 00 00 35 04 06 00 57 A9 08 E3 B5 EB 00 00 19 [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 03 02 [22:22:35]Write to MH i2c: E2 08 00 0D 13 80 0D 03 02 00 00 00 00 9B [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 0B 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 0B 00 0D 13 00 E8 A8 B3 5B 6F ED 85 B7 90 00 D2 [22:22:35]RAPDU: E8 A8 B3 5B 6F ED 85 B7 90 00 [22:22:35]wFMCommunicate OK [22:22:35]SAM_PROTO_SignData done [22:22:35]FM_MakeSignedData done [22:22:35]CreateOFDProtocolMessage [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 11 00 00 [22:22:35]Write to MH i2c: E2 08 00 0E 13 80 11 00 00 00 00 00 00 9B [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 17 00 [22:22:35]MH_I2C_Read... [22:22:35]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 38 30 30 90 00 E6 [22:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:22:35]wFMCommunicate OK [22:22:35]CreateOFDProtocolMessage done [22:22:35]OFDSenderStorePacket 49886 [22:22:35]StoreOFDPacket docnum=49886 [22:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E3 06 1D 01 C6 E4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 2C 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C2 00 00 35 04 06 00 57 A9 08 E3 B5 EB E8 A8 B3 5B 6F ED 85 B7 [22:22:35]CheckFolder [22:22:35]dirname=/storage/ofd_packets [22:22:35]CheckFolder done [22:22:35]ProducePacketName [22:22:35]name=ofd_packets/00049886 [22:22:35]NVStorageSaveData ofd_packets/00049886 [22:22:35]File name is /storage/ofd_packets/00049886 [22:22:35]Write 323 bytes [22:22:35]NVStorageSaveData done [22:22:35]OFDSenderStorePacket done [22:22:35]KKMCreateOFDPacket done [22:22:35]NVStorageSaveData kkm_last_timestamp [22:22:35]File name is /storage/kkm_last_timestamp [22:22:35]Write 4 bytes [22:22:35]NVStorageSaveData done [22:22:35]ExternCall_PrintAddStr [22:22:35]wPrintStart [22:22:35]Write to MH i2c: 01 00 00 0F 13 22 [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 07 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [22:22:35]RasterBufferAndPrint [22:22:35]line Счет N : (3)190061 [22:22:35]line ИНН: 02508201610067 [22:22:35]line Контрольно-Кассовый Чек [22:22:35]line ПРОДАЖА [22:22:35]line Товар: 48743570 [22:22:35]line Сигареты Winston XStyle Blue [22:22:35]line 1.000 * 140.00 [22:22:35]line = 140.00 [22:22:35]line НДС 12% НСП 1% [22:22:35]line > о реализуемом товаре [22:22:35]line ИТОГО: 140.00 [22:22:35]line НСП 1% : 1.24 [22:22:35]line НДС 12% : 14.87 [22:22:35]line Наличными: 140.00 [22:22:35]line Безнал.: 0.00 [22:22:35]line Место: АЗС № 95 "Партнер Нефть" [22:22:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:22:35]line СНО: Общий режим [22:22:35]line Чек 152 18.08.2024 22:22 [22:22:35]line Смена: 466 ФФД: 1.0 [22:22:35]line ЗНМ: 0300000078 [22:22:35]line РНМ: 0000000000092546 [22:22:35]line Версия ККМ: 001 [22:22:35]line ФМ: 0000000000871800 [22:22:35]line ФД: 49886 [22:22:35]line ФПД: 96383510230507 [22:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222236&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49886&fm=96383510230507&tin=02508201610067®Number=0000000000092546&sum=14000 [22:22:35]OFD Sender: Processing packet 49886 [packets to send 21, broken 20] [22:22:35]ProducePacketName [22:22:35]name=ofd_packets/00049886 [22:22:35]OFD Sender: To server: pG, [22:22:35]CommunicateWithHost lk.salyk.kg:30040 [22:22:35]ConnectInit lk.salyk.kg [22:22:35]line 0 [22:22:35]written 0, free lines is 4095 [22:22:36]Connected sock=10 [22:22:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E3 06 1D 01 C6 E4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 2C 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C2 00 00 35 04 06 00 57 A9 08 E3 B5 EB E8 A8 B3 5B 6F ED 85 B7 [22:22:36]Write to MH i2c: 01 00 00 37 13 4A [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 07 00 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 E5 0C 42 [22:22:36]RasterBufferAndPrint [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]written 0, free lines is 3306 [22:22:36]MH_Cut [22:22:36]Write to MH i2c: D1 01 00 3E 13 01 23 [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 01 00 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 01 00 3E 13 00 22 [22:22:36]Write to MH i2c: 01 00 00 3F 13 52 [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C4 10 47 00 60 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 38 30 30 10 04 04 00 DE C2 00 00 F4 03 04 00 A0 1E C2 66 B6 04 01 00 00 24 B5 21 0F 4A BE EE 81 [22:22:36]CommunicateWithHost err = 0 [22:22:36]CheckOFDResponse [22:22:36]1017 (14) - 77093643461234 [22:22:36]1041 (16) - 0000000000871800 [22:22:36]1040 (4) - 49886 [22:22:36]1012 (4) - 18.08.2024 16:17 [22:22:36]1206 (1) - 0 [22:22:36]OFD Sender: Remove packet 49886 [22:22:36]ProducePacketName [22:22:36]name=ofd_packets/00049886 [22:22:36]NVStorageDeleteData [22:22:36]OFD Sender: No OFD packet to send [22:22:37]*** Cut start [22:22:37]*** Purtial cut [22:22:37]*** CUTSNS_PIN = 0 [22:22:37]*** Stage 1: CUTSNS_PIN = 1 [22:22:39]Read from MH i2c: 01 [22:22:39]MH_I2C_Read... [22:22:39]*** Stop cut motor [22:22:39]*** Cut end [22:22:39]Read from MH i2c: 01 07 00 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 FF 0F 67 [22:22:39]process_action close_receipt done [22:22:39]requested_data is exist [22:22:39]produce_requested_data [22:22:39]requested_item fm.sn is exist - process it [22:22:39]wFMCommunicate request_size=4 [22:22:39]MH_SAM_APDU [22:22:39]CAPDU: 80 11 00 00 [22:22:39]Write to MH i2c: E2 08 00 40 13 80 11 00 00 00 00 00 00 CD [22:22:39]Write i2c OK [22:22:39]MH_I2C_Read... [22:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:39]Read from MH i2c: E2 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 17 00 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 17 00 40 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [22:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:22:39]wFMCommunicate OK [22:22:39]requested_item fd.num is exist - process it [22:22:39]SAM_PROTO_GetFieldsCounters [22:22:39]wFMCommunicate request_size=4 [22:22:39]MH_SAM_APDU [22:22:39]CAPDU: 80 13 00 00 [22:22:39]Write to MH i2c: E2 08 00 41 13 80 13 00 00 00 00 00 00 D0 [22:22:39]Write i2c OK [22:22:39]MH_I2C_Read... [22:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:39]Read from MH i2c: E2 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 62 00 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 62 00 41 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [22:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:39]wFMCommunicate OK [22:22:39]SAM_PROTO_GetFieldsCounters done [22:22:39]requested_item shift.num is exist - process it [22:22:39]requested_item shift.opened is exist - process it [22:22:39]req_shift_opened [22:22:39]FM_GetShiftState [22:22:39]SAM_PROTO_GetShiftState [22:22:39]wFMCommunicate request_size=4 [22:22:39]MH_SAM_APDU [22:22:39]CAPDU: 80 13 01 00 [22:22:39]Write to MH i2c: E2 08 00 42 13 80 13 01 00 00 00 00 00 D2 [22:22:39]Write i2c OK [22:22:39]MH_I2C_Read... [22:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:39]Read from MH i2c: E2 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 0E 00 [22:22:39]MH_I2C_Read... [22:22:39]Read from MH i2c: E2 0E 00 42 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 EF [22:22:39]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:22:39]wFMCommunicate OK [22:22:39]SAM_PROTO_GetShiftState done [22:22:39]FM_GetShiftState done [22:22:39]req_shift_opened done [22:22:39]requested_item shift.open_date is exist - process it [22:22:39]req_shift_open_date [22:22:39]req_shift_open_date done [22:22:39]produce_requested_data done [22:22:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49886,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:22:39]process_action_free close_receipt [22:22:39]json_value_free [22:22:39]json_value_free done [22:22:39]process_json_proto returns [22:22:39]Send response to host [22:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49886,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:22:39]free response buf [22:22:39]execute_script done [22:22:39]execute_script returns [22:22:39]free content buf [22:22:39]Sock 7.Close socket [22:22:39]Sock 7.Thread stoped [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:24]accept exits with 9 [22:25:24]New connection [22:25:24]New thread 3067055460 created [22:25:24]Thread 3067198820 joined [22:25:24]Waiting for new connection... [22:25:24] Sock 9.Parse request [22:25:24]Sock 9.Check first char [22:25:24]Sock 9.First char is OK [22:25:24]request: POST /json_proto HTTP/1.0 [22:25:24]Method: POST [22:25:24]URL: /json_proto [22:25:24]Method is POST - this is cgi request [22:25:24]url: /json_proto [22:25:24]query_string will be loaded in cgi processing [22:25:24]execute_cgi json_proto POST (null) [22:25:24]execute_cgi path=json_proto method=POST [22:25:24]POST find Content-Length [22:25:24]Host: 172.17.46.196:8080 [22:25:24]Content-Length: 646 [22:25:24]Content-Type: application/json [22:25:24] [22:25:24]POST finish read [22:25:24]Found Content-Length = 646 [22:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190062", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]execute_script... [22: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 : (3)190062", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]POST & json_proto [22:25:24]process_json_proto [22:25:24]json parsed OK: [22:25:24]protocol is kg_v1.0 [22:25:24]action value=close_receipt [22:25:24]process_action close_receipt [22:25:24]cmd_close_receipt [22:25:24]MH_GetDate [22:25:24]Write to MH i2c: F0 00 00 43 13 45 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 43 13 00 D7 74 C2 66 27 15 C2 66 25 [22:25:24]GetLastDocTimeStamp 1724019756 [22:25:24]current date 1724019927 [22:25:24]FM_GetShiftState [22:25:24]SAM_PROTO_GetShiftState [22:25:24]wFMCommunicate request_size=4 [22:25:24]MH_SAM_APDU [22:25:24]CAPDU: 80 13 01 00 [22:25:24]Write to MH i2c: E2 08 00 44 13 80 13 01 00 00 00 00 00 D4 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:24]Read from MH i2c: E2 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 44 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 F1 [22:25:24]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:25:24]wFMCommunicate OK [22:25:24]SAM_PROTO_GetShiftState done [22:25:24]FM_GetShiftState done [22:25:24]opened in 1723939759 [22:25:24]opened+sec_in_day 1724026159 [22:25:24]quantity*price = 13000 [22:25:24]sum+1 = 13001 [22:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 153 18.08.2024 22:25 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49887 ФПД: 119711619093871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222527&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49887&fm=119711619093871&tin=02508201610067®Number=0000000000092546&sum=13000 0 [22:25:25]StoreToDocumentArchive [22:25:25]shift 466 fd 49887 [22:25:25]save to /storage/0466/doc_00049887 [22:25:25]save last doc name /storage/0466/doc_00049887 to /storage/kkm_last_doc_name [22:25:25]save OK [22:25:25]Clear old archive folders... [22:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:25:25]tlvbuf is 00FA4FD0 [22:25:25]SAM_PROTO_ClearQueue [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 09 00 00 [22:25:25]Write to MH i2c: E2 08 00 51 13 80 09 00 00 00 00 00 00 D6 [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]SAM_PROTO_ClearQueue done [22:25:26]KKMCreateOFDPacket [22:25:26]OFDProtocolAddRootSTLVToBuf [22:25:26]FM_MakeSignedData [22:25:26]FM_MakeSignedData [22:25:26]SAM_PROTO_SignData [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 01 02 [22:25:26]Write to MH i2c: E2 08 00 52 13 80 0D 01 02 00 00 00 00 DE [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=255 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D7 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [22:25:26]Write to MH i2c: E2 02 01 53 13 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D7 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 CD [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 53 13 00 90 00 DA [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=41 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C2 00 00 35 04 06 00 6C E0 88 88 15 6F [22:25:26]Write to MH i2c: E2 2C 00 54 13 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C2 00 00 35 04 06 00 6C E0 88 88 15 6F 00 00 29 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 54 13 00 90 00 DB [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 03 02 [22:25:26]Write to MH i2c: E2 08 00 55 13 80 0D 03 02 00 00 00 00 E3 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 55 13 00 4A 5C 09 44 6A 2E 1D 59 90 00 E5 [22:25:26]RAPDU: 4A 5C 09 44 6A 2E 1D 59 90 00 [22:25:26]wFMCommunicate OK [22:25:26]SAM_PROTO_SignData done [22:25:26]FM_MakeSignedData done [22:25:26]CreateOFDProtocolMessage [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 11 00 00 [22:25:26]Write to MH i2c: E2 08 00 56 13 80 11 00 00 00 00 00 00 E3 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 56 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2E [22:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:25:26]wFMCommunicate OK [22:25:26]CreateOFDProtocolMessage done [22:25:26]OFDSenderStorePacket 49887 [22:25:26]StoreOFDPacket docnum=49887 [22:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 4F F4 26 01 F2 C6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D7 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C2 00 00 35 04 06 00 6C E0 88 88 15 6F 4A 5C 09 44 6A 2E 1D 59 [22:25:26]CheckFolder [22:25:26]dirname=/storage/ofd_packets [22:25:26]CheckFolder done [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00049887 [22:25:26]NVStorageSaveData ofd_packets/00049887 [22:25:26]File name is /storage/ofd_packets/00049887 [22:25:26]Write 332 bytes [22:25:26]NVStorageSaveData done [22:25:26]OFDSenderStorePacket done [22:25:26]KKMCreateOFDPacket done [22:25:26]NVStorageSaveData kkm_last_timestamp [22:25:26]File name is /storage/kkm_last_timestamp [22:25:26]Write 4 bytes [22:25:26]NVStorageSaveData done [22:25:26]ExternCall_PrintAddStr [22:25:26]wPrintStart [22:25:26]Write to MH i2c: 01 00 00 57 13 6A [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 57 13 00 00 00 00 00 FF 0F 7F [22:25:26]RasterBufferAndPrint [22:25:26]line Счет N : (3)190062 [22:25:26]line ИНН: 02508201610067 [22:25:26]line Контрольно-Кассовый Чек [22:25:26]line ПРОДАЖА [22:25:26]line Товар: 2000036220012 [22:25:26]line Кофе Капучино XL(GABB TRADE) [22:25:26]line 1.000 * 130.00 [22:25:26]line = 130.00 [22:25:26]line НДС 12% НСП 1% [22:25:26]line > о реализуемом товаре [22:25:26]line ИТОГО: 130.00 [22:25:26]line НСП 1% : 1.15 [22:25:26]line НДС 12% : 13.80 [22:25:26]line Наличными: 130.00 [22:25:26]line Безнал.: 0.00 [22:25:26]line Место: АЗС № 95 "Партнер Нефть" [22:25:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:25:26]line СНО: Общий режим [22:25:26]line Чек 153 18.08.2024 22:25 [22:25:26]line Смена: 466 ФФД: 1.0 [22:25:26]line ЗНМ: 0300000078 [22:25:26]line РНМ: 0000000000092546 [22:25:26]line Версия ККМ: 001 [22:25:26]line ФМ: 0000000000871800 [22:25:26]line ФД: 49887 [22:25:26]line ФПД: 119711619093871 [22:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222527&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49887&fm=119711619093871&tin=02508201610067®Number=0000000000092546&sum=13000 [22:25:26]line 0 [22:25:26]OFD Sender: Processing packet 49887 [packets to send 21, broken 20] [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00049887 [22:25:26]OFD Sender: To server: pG, [22:25:26]CommunicateWithHost lk.salyk.kg:30040 [22:25:26]ConnectInit lk.salyk.kg [22:25:26]written 0, free lines is 4095 [22:25:27]Connected sock=10 [22:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 4F F4 26 01 F2 C6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D7 74 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C2 00 00 35 04 06 00 6C E0 88 88 15 6F 4A 5C 09 44 6A 2E 1D 59 [22:25:27]Write to MH i2c: 01 00 00 80 13 93 [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 80 13 00 00 00 00 00 D1 0C 77 [22:25:27]RasterBufferAndPrint [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]written 0, free lines is 3287 [22:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC 7A 47 00 FC 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C2 00 00 F4 03 04 00 4B 1F C2 66 B6 04 01 00 00 BD 45 8B 91 9A EE DA 0D [22:25:27]CommunicateWithHost err = 0 [22:25:27]CheckOFDResponse [22:25:27]1017 (14) - 77093643461234 [22:25:27]1041 (16) - 0000000000871800 [22:25:27]1040 (4) - 49887 [22:25:27]1012 (4) - 18.08.2024 16:20 [22:25:27]1206 (1) - 0 [22:25:27]OFD Sender: Remove packet 49887 [22:25:27]ProducePacketName [22:25:27]name=ofd_packets/00049887 [22:25:27]NVStorageDeleteData [22:25:27]MH_Cut [22:25:27]Write to MH i2c: D1 01 00 87 13 01 6C [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 87 13 00 6B [22:25:27]Write to MH i2c: 01 00 00 88 13 9B [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]OFD Sender: No OFD packet to send [22:25:28]*** Cut start [22:25:28]*** Purtial cut [22:25:28]*** Stage 1: CUTSNS_PIN = 1 [22:25:28]Read from MH i2c: 01 [22:25:28]MH_I2C_Read... [22:25:28]*** Stop cut motor [22:25:28]*** Cut end [22:25:28]Read from MH i2c: 01 07 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: 01 07 00 88 13 00 00 00 00 00 FF 0F B0 [22:25:28]process_action close_receipt done [22:25:28]requested_data is exist [22:25:28]produce_requested_data [22:25:28]requested_item fm.sn is exist - process it [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 11 00 00 [22:25:28]Write to MH i2c: E2 08 00 89 13 80 11 00 00 00 00 00 00 16 [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 89 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [22:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:25:28]wFMCommunicate OK [22:25:28]requested_item fd.num is exist - process it [22:25:28]SAM_PROTO_GetFieldsCounters [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 00 00 [22:25:28]Write to MH i2c: E2 08 00 8A 13 80 13 00 00 00 00 00 00 19 [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 8A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [22: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DF C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:28]wFMCommunicate OK [22:25:28]SAM_PROTO_GetFieldsCounters done [22:25:28]requested_item shift.num is exist - process it [22:25:28]requested_item shift.opened is exist - process it [22:25:28]req_shift_opened [22:25:28]FM_GetShiftState [22:25:28]SAM_PROTO_GetShiftState [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 01 00 [22:25:28]Write to MH i2c: E2 08 00 8B 13 80 13 01 00 00 00 00 00 1B [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 0E 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 0E 00 8B 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 38 [22:25:28]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [22:25:28]wFMCommunicate OK [22:25:28]SAM_PROTO_GetShiftState done [22:25:28]FM_GetShiftState done [22:25:28]req_shift_opened done [22:25:28]requested_item shift.open_date is exist - process it [22:25:28]req_shift_open_date [22:25:28]req_shift_open_date done [22:25:28]produce_requested_data done [22:25:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49887,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [22:25:28]process_action_free close_receipt [22:25:28]json_value_free [22:25:28]json_value_free done [22:25:28]process_json_proto returns [22:25:28]Send response to host [22:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49887,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [22:25:28]free response buf [22:25:28]execute_script done [22:25:28]execute_script returns [22:25:28]free content buf [22:25:28]Sock 9.Close socket [22:25:28]Sock 9.Thread stoped [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:38]int [22:26:38]Write to MH i2c: 01 00 00 8C 13 9F [22:26:38]*** FLAG_PRN_KEY set [22:26:38]Write i2c OK [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 8C 13 00 08 00 00 00 FF 0F BC [22:26:38]state=0 [22:26:38]Key pressed [22:26:38]Feed [22:26:38]Write to MH i2c: D8 00 00 8D 13 77 [22:26:38]Write i2c OK [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: D8 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: D8 01 00 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: D8 01 00 8D 13 00 78 [22:26:38]int [22:26:38]Write to MH i2c: 01 00 00 8E 13 A1 [22:26:38]Write i2c OK [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 8E 13 00 48 00 00 00 3C 00 2C [22:26:38]state=2 [22:26:38]Key pressed [22:26:38]int [22:26:38]Write to MH i2c: 01 00 00 8F 13 A2 [22:26:38]*** FLAG_PRN_KEY reset [22:26:38]Write i2c OK [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 [22:26:38]MH_I2C_Read... [22:26:38]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 F5 0F AD [22:26:38]state=2 [22:26:38]Stop feed [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:10]accept exits with 7 [23:09:10]New connection [23:09:10]New thread 3067198820 created [23:09:10]Thread 3067055460 joined [23:09:10]Waiting for new connection... [23:09:10] Sock 7.Parse request [23:09:10]Sock 7.Check first char [23:09:10]Sock 7.First char is OK [23:09:10]request: POST /json_proto HTTP/1.0 [23:09:10]Method: POST [23:09:10]URL: /json_proto [23:09:10]Method is POST - this is cgi request [23:09:10]url: /json_proto [23:09:10]query_string will be loaded in cgi processing [23:09:10]execute_cgi json_proto POST (null) [23:09:10]execute_cgi path=json_proto method=POST [23:09:10]POST find Content-Length [23:09:10]Host: 172.17.46.196:8080 [23:09:10]Content-Length: 613 [23:09:10]Content-Type: application/json [23:09:10] [23:09:10]POST finish read [23:09:10]Found Content-Length = 613 [23:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190063", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 2.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:10]execute_script... [23:09: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 : (3)190063", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 2.000, "sum" : 310.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:10]POST & json_proto [23:09:10]process_json_proto [23:09:10]json parsed OK: [23:09:10]protocol is kg_v1.0 [23:09:10]action value=close_receipt [23:09:10]process_action close_receipt [23:09:10]cmd_close_receipt [23:09:10]MH_GetDate [23:09:10]Write to MH i2c: F0 00 00 90 13 92 [23:09:10]Write i2c OK [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: F0 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: F0 09 00 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: F0 09 00 90 13 00 19 7F C2 66 27 15 C2 66 BF [23:09:10]GetLastDocTimeStamp 1724019927 [23:09:10]current date 1724022553 [23:09:10]FM_GetShiftState [23:09:10]SAM_PROTO_GetShiftState [23:09:10]wFMCommunicate request_size=4 [23:09:10]MH_SAM_APDU [23:09:10]CAPDU: 80 13 01 00 [23:09:10]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [23:09:10]Write i2c OK [23:09:10]MH_I2C_Read... [23:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:10]Read from MH i2c: E2 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 0E 00 [23:09:10]MH_I2C_Read... [23:09:10]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 3E [23:09:10]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:09:10]wFMCommunicate OK [23:09:10]SAM_PROTO_GetShiftState done [23:09:10]FM_GetShiftState done [23:09:10]opened in 1723939759 [23:09:10]opened+sec_in_day 1724026159 [23:09:10]quantity*price = 31000 [23:09:10]sum+1 = 31001 [23:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 154 18.08.2024 23:09 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49888 ФПД: 50807169888901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49888&fm=50807169888901&tin=02508201610067®Number=0000000000092546&sum=31000 0 [23:09:11]StoreToDocumentArchive [23:09:11]shift 466 fd 49888 [23:09:11]save to /storage/0466/doc_00049888 [23:09:11]save last doc name /storage/0466/doc_00049888 to /storage/kkm_last_doc_name [23:09:11]save OK [23:09:11]Clear old archive folders... [23:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=265 [23:09:11]tlvbuf is 00FDA600 [23:09:11]SAM_PROTO_ClearQueue [23:09:11]wFMCommunicate request_size=4 [23:09:11]MH_SAM_APDU [23:09:11]CAPDU: 80 09 00 00 [23:09:11]Write to MH i2c: E2 08 00 9E 13 80 09 00 00 00 00 00 00 23 [23:09:11]Write i2c OK [23:09:11]MH_I2C_Read... [23:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:11]Read from MH i2c: E2 [23:09:11]MH_I2C_Read... [23:09:11]Read from MH i2c: E2 03 00 [23:09:11]MH_I2C_Read... [23:09:11]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [23:09:11]RAPDU: 90 00 [23:09:11]wFMCommunicate OK [23:09:11]SAM_PROTO_ClearQueue done [23:09:11]KKMCreateOFDPacket [23:09:11]OFDProtocolAddRootSTLVToBuf [23:09:11]FM_MakeSignedData [23:09:11]FM_MakeSignedData [23:09:11]SAM_PROTO_SignData [23:09:11]wFMCommunicate request_size=4 [23:09:11]MH_SAM_APDU [23:09:11]CAPDU: 80 0D 01 02 [23:09:11]Write to MH i2c: E2 08 00 9F 13 80 0D 01 02 00 00 00 00 2B [23:09:11]Write i2c OK [23:09:11]MH_I2C_Read... [23:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:11]Read from MH i2c: E2 [23:09:11]MH_I2C_Read... [23:09:11]Read from MH i2c: E2 03 00 [23:09:11]MH_I2C_Read... [23:09:11]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [23:09:11]RAPDU: 90 00 [23:09:11]wFMCommunicate OK [23:09:11]wFMCommunicate request_size=255 [23:09:11]MH_SAM_APDU [23:09:11]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 19 7F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 [23:09:11]Write to MH i2c: E2 02 01 A0 13 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 19 7F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 00 00 52 [23:09:11]Write i2c OK [23:09:11]MH_I2C_Read... [23:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:12]Read from MH i2c: E2 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 03 00 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [23:09:12]RAPDU: 90 00 [23:09:12]wFMCommunicate OK [23:09:12]wFMCommunicate request_size=24 [23:09:12]MH_SAM_APDU [23:09:12]CAPDU: 80 0D 02 02 13 30 10 04 04 00 E0 C2 00 00 35 04 06 00 2E 35 77 50 32 85 [23:09:12]Write to MH i2c: E2 1B 00 A1 13 80 0D 02 02 13 00 30 10 04 04 00 E0 C2 00 00 35 04 06 00 2E 35 77 50 32 85 00 00 5E [23:09:12]Write i2c OK [23:09:12]MH_I2C_Read... [23:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:12]Read from MH i2c: E2 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 03 00 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [23:09:12]RAPDU: 90 00 [23:09:12]wFMCommunicate OK [23:09:12]wFMCommunicate request_size=4 [23:09:12]MH_SAM_APDU [23:09:12]CAPDU: 80 0D 03 02 [23:09:12]Write to MH i2c: E2 08 00 A2 13 80 0D 03 02 00 00 00 00 30 [23:09:12]Write i2c OK [23:09:12]MH_I2C_Read... [23:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:12]Read from MH i2c: E2 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 0B 00 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 0B 00 A2 13 00 E6 64 29 D7 76 78 C7 71 90 00 A1 [23:09:12]RAPDU: E6 64 29 D7 76 78 C7 71 90 00 [23:09:12]wFMCommunicate OK [23:09:12]SAM_PROTO_SignData done [23:09:12]FM_MakeSignedData done [23:09:12]CreateOFDProtocolMessage [23:09:12]wFMCommunicate request_size=4 [23:09:12]MH_SAM_APDU [23:09:12]CAPDU: 80 11 00 00 [23:09:12]Write to MH i2c: E2 08 00 A3 13 80 11 00 00 00 00 00 00 30 [23:09:12]Write i2c OK [23:09:12]MH_I2C_Read... [23:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:12]Read from MH i2c: E2 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 17 00 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: E2 17 00 A3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [23:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:09:12]wFMCommunicate OK [23:09:12]CreateOFDProtocolMessage done [23:09:12]OFDSenderStorePacket 49888 [23:09:12]StoreOFDPacket docnum=49888 [23:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1D 01 00 00 8C E0 15 01 77 CE 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 19 7F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C2 00 00 35 04 06 00 2E 35 77 50 32 85 E6 64 29 D7 76 78 C7 71 [23:09:12]CheckFolder [23:09:12]dirname=/storage/ofd_packets [23:09:12]CheckFolder done [23:09:12]ProducePacketName [23:09:12]name=ofd_packets/00049888 [23:09:12]NVStorageSaveData ofd_packets/00049888 [23:09:12]File name is /storage/ofd_packets/00049888 [23:09:12]Write 315 bytes [23:09:12]NVStorageSaveData done [23:09:12]OFDSenderStorePacket done [23:09:12]KKMCreateOFDPacket done [23:09:12]NVStorageSaveData kkm_last_timestamp [23:09:12]File name is /storage/kkm_last_timestamp [23:09:12]Write 4 bytes [23:09:12]NVStorageSaveData done [23:09:12]ExternCall_PrintAddStr [23:09:12]wPrintStart [23:09:12]Write to MH i2c: 01 00 00 A4 13 B7 [23:09:12]Write i2c OK [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: 01 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: 01 07 00 [23:09:12]MH_I2C_Read... [23:09:12]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FF 0F CC [23:09:12]RasterBufferAndPrint [23:09:12]line Счет N : (3)190063 [23:09:12]line ИНН: 02508201610067 [23:09:12]line Контрольно-Кассовый Чек [23:09:12]line ПРОДАЖА [23:09:12]line Товар: 47803152 [23:09:12]line Сигареты Mevius Revo [23:09:12]line 2.000 * 155.00 [23:09:12]line = 310.00 [23:09:12]line НДС 12% НСП 1% [23:09:12]line > о реализуемом товаре [23:09:12]line ИТОГО: 310.00 [23:09:12]line НСП 1% : 2.74 [23:09:12]line НДС 12% : 32.92 [23:09:12]line Наличными: 310.00 [23:09:12]line Безнал.: 0.00 [23:09:12]line Место: АЗС № 95 "Партнер Нефть" [23:09:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:09:12]line СНО: Общий режим [23:09:12]line Чек 154 18.08.2024 23:09 [23:09:12]line Смена: 466 ФФД: 1.0 [23:09:12]line ЗНМ: 0300000078 [23:09:12]line РНМ: 0000000000092546 [23:09:12]line Версия ККМ: 001 [23:09:12]line ФМ: 0000000000871800 [23:09:12]line ФД: 49888 [23:09:12]line ФПД: 50807169888901 [23:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49888&fm=50807169888901&tin=02508201610067®Number=0000000000092546&sum=31000 [23:09:12]OFD Sender: Processing packet 49888 [packets to send 21, broken 20] [23:09:12]ProducePacketName [23:09:12]name=ofd_packets/00049888 [23:09:12]OFD Sender: To server: pG, [23:09:12]CommunicateWithHost lk.salyk.kg:30040 [23:09:12]ConnectInit lk.salyk.kg [23:09:12]line 0 [23:09:12]written 0, free lines is 4095 [23:09:13]Write to MH i2c: 01 00 00 CC 13 DF [23:09:13]Write i2c OK [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: 01 [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: 01 07 00 [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 E8 0C DA [23:09:13]RasterBufferAndPrint [23:09:13]line [23:09:13]line [23:09:13]line [23:09:13]line [23:09:13]line [23:09:13]written 0, free lines is 3310 [23:09:13]MH_Cut [23:09:13]Write to MH i2c: D1 01 00 D3 13 01 B8 [23:09:13]Write i2c OK [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: D1 [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: D1 01 00 [23:09:13]MH_I2C_Read... [23:09:13]Read from MH i2c: D1 01 00 D3 13 00 B7 [23:09:13]Write to MH i2c: 01 00 00 D4 13 E7 [23:09:13]Write i2c OK [23:09:13]MH_I2C_Read... [23:09:13]Connected sock=10 [23:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1D 01 00 00 8C E0 15 01 77 CE 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 18 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 19 7F C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C2 00 00 35 04 06 00 2E 35 77 50 32 85 E6 64 29 D7 76 78 C7 71 [23:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9B D0 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 38 30 30 10 04 04 00 E0 C2 00 00 F4 03 04 00 8D 29 C2 66 B6 04 01 00 00 43 B2 35 C1 CB 9A D8 84 [23:09:13]CommunicateWithHost err = 0 [23:09:13]CheckOFDResponse [23:09:13]1017 (14) - 77093643461234 [23:09:13]1041 (16) - 0000000000871800 [23:09:13]1040 (4) - 49888 [23:09:13]1012 (4) - 18.08.2024 17:04 [23:09:13]1206 (1) - 0 [23:09:13]OFD Sender: Remove packet 49888 [23:09:13]ProducePacketName [23:09:13]name=ofd_packets/00049888 [23:09:13]NVStorageDeleteData [23:09:13]*** Cut start [23:09:13]*** Purtial cut [23:09:13]*** CUTSNS_PIN = 0 [23:09:13]OFD Sender: No OFD packet to send [23:09:14]*** Stage 1: CUTSNS_PIN = 1 [23:09:15]Read from MH i2c: 01 [23:09:15]MH_I2C_Read... [23:09:15]*** Stop cut motor [23:09:15]*** Cut end [23:09:15]Read from MH i2c: 01 07 00 [23:09:15]MH_I2C_Read... [23:09:15]Read from MH i2c: 01 07 00 D4 13 00 00 00 00 00 FF 0F FC [23:09:15]process_action close_receipt done [23:09:15]requested_data is exist [23:09:15]produce_requested_data [23:09:15]requested_item fm.sn is exist - process it [23:09:15]wFMCommunicate request_size=4 [23:09:15]MH_SAM_APDU [23:09:15]CAPDU: 80 11 00 00 [23:09:15]Write to MH i2c: E2 08 00 D5 13 80 11 00 00 00 00 00 00 62 [23:09:15]Write i2c OK [23:09:15]MH_I2C_Read... [23:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:15]Read from MH i2c: E2 [23:09:15]MH_I2C_Read... [23:09:15]Read from MH i2c: E2 17 00 [23:09:15]MH_I2C_Read... [23:09:15]Read from MH i2c: E2 17 00 D5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [23:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:09:16]wFMCommunicate OK [23:09:16]requested_item fd.num is exist - process it [23:09:16]SAM_PROTO_GetFieldsCounters [23:09:16]wFMCommunicate request_size=4 [23:09:16]MH_SAM_APDU [23:09:16]CAPDU: 80 13 00 00 [23:09:16]Write to MH i2c: E2 08 00 D6 13 80 13 00 00 00 00 00 00 65 [23:09:16]Write i2c OK [23:09:16]MH_I2C_Read... [23:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:16]Read from MH i2c: E2 [23:09:16]MH_I2C_Read... [23:09:16]Read from MH i2c: E2 62 00 [23:09:16]MH_I2C_Read... [23:09:16]Read from MH i2c: E2 62 00 D6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [23: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E0 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:16]wFMCommunicate OK [23:09:16]SAM_PROTO_GetFieldsCounters done [23:09:16]requested_item shift.num is exist - process it [23:09:16]requested_item shift.opened is exist - process it [23:09:16]req_shift_opened [23:09:16]FM_GetShiftState [23:09:16]SAM_PROTO_GetShiftState [23:09:16]wFMCommunicate request_size=4 [23:09:16]MH_SAM_APDU [23:09:16]CAPDU: 80 13 01 00 [23:09:16]Write to MH i2c: E2 08 00 D7 13 80 13 01 00 00 00 00 00 67 [23:09:16]Write i2c OK [23:09:16]MH_I2C_Read... [23:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:16]Read from MH i2c: E2 [23:09:16]MH_I2C_Read... [23:09:16]Read from MH i2c: E2 0E 00 [23:09:16]MH_I2C_Read... [23:09:16]Read from MH i2c: E2 0E 00 D7 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 84 [23:09:16]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:09:16]wFMCommunicate OK [23:09:16]SAM_PROTO_GetShiftState done [23:09:16]FM_GetShiftState done [23:09:16]req_shift_opened done [23:09:16]requested_item shift.open_date is exist - process it [23:09:16]req_shift_open_date [23:09:16]req_shift_open_date done [23:09:16]produce_requested_data done [23:09:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49888,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:09:16]process_action_free close_receipt [23:09:16]json_value_free [23:09:16]json_value_free done [23:09:16]process_json_proto returns [23:09:16]Send response to host [23:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49888,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:09:16]free response buf [23:09:16]execute_script done [23:09:16]execute_script returns [23:09:16]free content buf [23:09:16]Sock 7.Close socket [23:09:16]Sock 7.Thread stoped [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:23]accept exits with 9 [23:17:23]New connection [23:17:23]New thread 3067055460 created [23:17:23]Thread 3067198820 joined [23:17:23]Waiting for new connection... [23:17:23] Sock 9.Parse request [23:17:23]Sock 9.Check first char [23:17:23]Sock 9.First char is OK [23:17:23]request: POST /json_proto HTTP/1.0 [23:17:23]Method: POST [23:17:23]URL: /json_proto [23:17:23]Method is POST - this is cgi request [23:17:23]url: /json_proto [23:17:23]query_string will be loaded in cgi processing [23:17:23]execute_cgi json_proto POST (null) [23:17:23]execute_cgi path=json_proto method=POST [23:17:23]POST find Content-Length [23:17:23]Host: 172.17.46.196:8080 [23:17:23]Content-Length: 650 [23:17:23]Content-Type: application/json [23:17:23] [23:17:23]POST finish read [23:17:23]Found Content-Length = 650 [23:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190064", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:23]execute_script... [23:17:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190064", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:23]POST & json_proto [23:17:23]process_json_proto [23:17:23]json parsed OK: [23:17:23]protocol is kg_v1.0 [23:17:23]action value=close_receipt [23:17:23]process_action close_receipt [23:17:23]cmd_close_receipt [23:17:23]MH_GetDate [23:17:23]Write to MH i2c: F0 00 00 D8 13 DA [23:17:23]Write i2c OK [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: F0 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: F0 09 00 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: F0 09 00 D8 13 00 06 81 C2 66 27 15 C2 66 F6 [23:17:23]GetLastDocTimeStamp 1724022553 [23:17:23]current date 1724023046 [23:17:23]FM_GetShiftState [23:17:23]SAM_PROTO_GetShiftState [23:17:23]wFMCommunicate request_size=4 [23:17:23]MH_SAM_APDU [23:17:23]CAPDU: 80 13 01 00 [23:17:23]Write to MH i2c: E2 08 00 D9 13 80 13 01 00 00 00 00 00 69 [23:17:23]Write i2c OK [23:17:23]MH_I2C_Read... [23:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:23]Read from MH i2c: E2 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: E2 0E 00 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: E2 0E 00 D9 13 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 86 [23:17:23]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:17:23]wFMCommunicate OK [23:17:23]SAM_PROTO_GetShiftState done [23:17:23]FM_GetShiftState done [23:17:23]opened in 1723939759 [23:17:23]opened+sec_in_day 1724026159 [23:17:23]quantity*price = 10500 [23:17:23]sum+1 = 10501 [23:17:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 156 18.08.2024 23:38 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49890 ФПД: 268298486415309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233822&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49890&fm=268298486415309&tin=02508201610067®Number=0000000000092546&sum=28000 0 [23:38:23]StoreToDocumentArchive [23:38:24]shift 466 fd 49890 [23:38:24]save to /storage/0466/doc_00049890 [23:38:24]save last doc name /storage/0466/doc_00049890 to /storage/kkm_last_doc_name [23:38:24]save OK [23:38:24]Clear old archive folders... [23:38:24]Remove dir /storage/0266 [23:38:24]opendir ok [23:38:24]file . [23:38:24]file .. [23:38:24]file doc_1724024298 [23:38:24]remove file /storage/0266/doc_1724024298 [23:38:24]remove dir /storage/0266 [23:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:38:24]tlvbuf is 0105F940 [23:38:24]SAM_PROTO_ClearQueue [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 09 00 00 [23:38:24]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_ClearQueue done [23:38:24]KKMCreateOFDPacket [23:38:24]OFDProtocolAddRootSTLVToBuf [23:38:24]FM_MakeSignedData [23:38:24]FM_MakeSignedData [23:38:24]SAM_PROTO_SignData [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 01 02 [23:38:24]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=255 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 EE 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [23:38:24]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 EE 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 1F [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=32 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C2 00 00 35 04 06 00 F4 04 1B F9 FF CD [23:38:24]Write to MH i2c: E2 23 00 B7 00 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C2 00 00 35 04 06 00 F4 04 1B F9 FF CD 00 00 02 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 03 02 [23:38:24]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]OFD Sender: No OFD packet to send [23:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 0B 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 0B 00 B8 00 00 A3 57 1B 3B 8E CB 33 6D 90 00 7D [23:38:24]RAPDU: A3 57 1B 3B 8E CB 33 6D 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_SignData done [23:38:24]FM_MakeSignedData done [23:38:24]CreateOFDProtocolMessage [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 11 00 00 [23:38:24]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:25]Read from MH i2c: E2 [23:38:25]MH_I2C_Read... [23:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:25]Read from MH i2c: E2 17 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7E [23:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:38:25]wFMCommunicate OK [23:38:25]CreateOFDProtocolMessage done [23:38:25]OFDSenderStorePacket 49890 [23:38:25]StoreOFDPacket docnum=49890 [23:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F0 CB 1D 01 F0 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 EE 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C2 00 00 35 04 06 00 F4 04 1B F9 FF CD A3 57 1B 3B 8E CB 33 6D [23:38:25]CheckFolder [23:38:25]dirname=/storage/ofd_packets [23:38:25]CheckFolder done [23:38:25]ProducePacketName [23:38:25]name=ofd_packets/00049890 [23:38:25]NVStorageSaveData ofd_packets/00049890 [23:38:25]File name is /storage/ofd_packets/00049890 [23:38:25]Write 323 bytes [23:38:25]NVStorageSaveData done [23:38:25]OFDSenderStorePacket done [23:38:25]KKMCreateOFDPacket done [23:38:25]NVStorageSaveData kkm_last_timestamp [23:38:25]File name is /storage/kkm_last_timestamp [23:38:25]Write 4 bytes [23:38:25]NVStorageSaveData done [23:38:25]ExternCall_PrintAddStr [23:38:25]wPrintStart [23:38:25]Write to MH i2c: 01 00 00 BA 00 BA [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [23:38:25]RasterBufferAndPrint [23:38:25]line Счет N : (3)190065 [23:38:25]line ИНН: 02508201610067 [23:38:25]line Контрольно-Кассовый Чек [23:38:25]line ПРОДАЖА [23:38:25]line Товар: 48743570 [23:38:25]line Сигареты Winston XStyle Blue [23:38:25]line 2.000 * 140.00 [23:38:25]line = 280.00 [23:38:25]line НДС 12% НСП 1% [23:38:25]line > о реализуемом товаре [23:38:25]line ИТОГО: 280.00 [23:38:25]line НСП 1% : 2.48 [23:38:25]line НДС 12% : 29.73 [23:38:25]line Наличными: 280.00 [23:38:25]line Безнал.: 0.00 [23:38:25]line Место: АЗС № 95 "Партнер Нефть" [23:38:25]OFD Sender: Processing packet 49890 [packets to send 21, broken 20] [23:38:25]ProducePacketName [23:38:25]name=ofd_packets/00049890 [23:38:25]OFD Sender: To server: pG, [23:38:25]CommunicateWithHost lk.salyk.kg:30040 [23:38:25]ConnectInit lk.salyk.kg [23:38:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:38:25]line СНО: Общий режим [23:38:25]line Чек 156 18.08.2024 23:38 [23:38:25]line Смена: 466 ФФД: 1.0 [23:38:25]line ЗНМ: 0300000078 [23:38:25]line РНМ: 0000000000092546 [23:38:25]line Версия ККМ: 001 [23:38:25]line ФМ: 0000000000871800 [23:38:25]line ФД: 49890 [23:38:25]line ФПД: 268298486415309 [23:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233822&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49890&fm=268298486415309&tin=02508201610067®Number=0000000000092546&sum=28000 [23:38:25]line 0 [23:38:25]written 0, free lines is 4095 [23:38:25]Connected sock=10 [23:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 F0 CB 1D 01 F0 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 EE 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C2 00 00 35 04 06 00 F4 04 1B F9 FF CD A3 57 1B 3B 8E CB 33 6D [23:38:25]Write to MH i2c: 01 00 00 E2 00 E2 [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 00 0D F6 [23:38:25]RasterBufferAndPrint [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]written 0, free lines is 3365 [23:38:25]MH_Cut [23:38:25]Write to MH i2c: D1 01 00 E9 00 01 BB [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 01 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 01 00 E9 00 00 BA [23:38:25]Write to MH i2c: 01 00 00 EA 00 EA [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4A 26 47 00 9B 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C2 00 00 F4 03 04 00 5E 30 C2 66 B6 04 01 00 00 4C 79 08 53 AB F1 CA 1A [23:38:25]CommunicateWithHost err = 0 [23:38:25]CheckOFDResponse [23:38:25]1017 (14) - 77093643461234 [23:38:25]1041 (16) - 0000000000871800 [23:38:25]1040 (4) - 49890 [23:38:25]1012 (4) - 18.08.2024 17:33 [23:38:25]1206 (1) - 0 [23:38:25]OFD Sender: Remove packet 49890 [23:38:25]ProducePacketName [23:38:25]name=ofd_packets/00049890 [23:38:25]NVStorageDeleteData [23:38:26]*** Cut start [23:38:26]*** Purtial cut [23:38:26]*** CUTSNS_PIN = 0 [23:38:26]OFD Sender: No OFD packet to send [23:38:26]*** Stage 1: CUTSNS_PIN = 1 [23:38:28]Read from MH i2c: 01 [23:38:28]MH_I2C_Read... [23:38:28]*** Stop cut motor [23:38:28]*** Cut end [23:38:28]Read from MH i2c: 01 07 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: 01 07 00 EA 00 00 00 00 00 00 FF 0F FF [23:38:28]process_action close_receipt done [23:38:28]requested_data is exist [23:38:28]produce_requested_data [23:38:28]requested_item fm.sn is exist - process it [23:38:28]wFMCommunicate request_size=4 [23:38:28]MH_SAM_APDU [23:38:28]CAPDU: 80 11 00 00 [23:38:28]Write to MH i2c: E2 08 00 EB 00 80 11 00 00 00 00 00 00 65 [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:28]Read from MH i2c: E2 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 17 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 17 00 EB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B0 [23:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:38:28]wFMCommunicate OK [23:38:28]requested_item fd.num is exist - process it [23:38:28]SAM_PROTO_GetFieldsCounters [23:38:28]wFMCommunicate request_size=4 [23:38:28]MH_SAM_APDU [23:38:28]CAPDU: 80 13 00 00 [23:38:28]Write to MH i2c: E2 08 00 EC 00 80 13 00 00 00 00 00 00 68 [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:28]Read from MH i2c: E2 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 62 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 62 00 EC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [23:38:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E2 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:28]wFMCommunicate OK [23:38:28]SAM_PROTO_GetFieldsCounters done [23:38:28]requested_item shift.num is exist - process it [23:38:28]requested_item shift.opened is exist - process it [23:38:28]req_shift_opened [23:38:28]FM_GetShiftState [23:38:28]SAM_PROTO_GetShiftState [23:38:28]wFMCommunicate request_size=4 [23:38:28]MH_SAM_APDU [23:38:28]CAPDU: 80 13 01 00 [23:38:28]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [23:38:28]Write i2c OK [23:38:28]MH_I2C_Read... [23:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:28]Read from MH i2c: E2 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 0E 00 [23:38:28]MH_I2C_Read... [23:38:28]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 87 [23:38:28]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:38:28]wFMCommunicate OK [23:38:28]SAM_PROTO_GetShiftState done [23:38:28]FM_GetShiftState done [23:38:28]req_shift_opened done [23:38:28]requested_item shift.open_date is exist - process it [23:38:28]req_shift_open_date [23:38:28]req_shift_open_date done [23:38:28]produce_requested_data done [23:38:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49890,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:38:28]process_action_free close_receipt [23:38:28]json_value_free [23:38:28]json_value_free done [23:38:28]process_json_proto returns [23:38:28]Send response to host [23:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49890,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:38:28]free response buf [23:38:28]execute_script done [23:38:28]execute_script returns [23:38:28]free content buf [23:38:28]Sock 9.Close socket [23:38:28]Sock 9.Thread stoped [23:38:30]accept exits with 7 [23:38:30]New connection [23:38:30]New thread 3067354468 created [23:38:30]Thread 3067211108 joined [23:38:30]Waiting for new connection... [23:38:30] Sock 7.Parse request [23:38:30]Sock 7.Check first char [23:38:30]Sock 7.First char is OK [23:38:30]request: POST /json_proto HTTP/1.0 [23:38:30]Method: POST [23:38:30]URL: /json_proto [23:38:30]Method is POST - this is cgi request [23:38:30]url: /json_proto [23:38:30]query_string will be loaded in cgi processing [23:38:30]execute_cgi json_proto POST (null) [23:38:30]execute_cgi path=json_proto method=POST [23:38:30]POST find Content-Length [23:38:30]Host: 172.17.46.196:8080 [23:38:30]Content-Length: 614 [23:38:30]Content-Type: application/json [23:38:30] [23:38:30]POST finish read [23:38:30]Found Content-Length = 614 [23:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190066", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:30]execute_script... [23:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190066", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:30]POST & json_proto [23:38:30]process_json_proto [23:38:30]json parsed OK: [23:38:30]protocol is kg_v1.0 [23:38:30]action value=close_receipt [23:38:30]process_action close_receipt [23:38:30]cmd_close_receipt [23:38:30]MH_GetDate [23:38:30]Write to MH i2c: F0 00 00 EE 00 DD [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: F0 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: F0 09 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: F0 09 00 EE 00 00 F6 85 C2 66 C4 85 C2 66 FA [23:38:30]GetLastDocTimeStamp 1724024302 [23:38:30]current date 1724024310 [23:38:30]FM_GetShiftState [23:38:30]SAM_PROTO_GetShiftState [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 13 01 00 [23:38:30]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 0E 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 89 [23:38:30]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:38:30]wFMCommunicate OK [23:38:30]SAM_PROTO_GetShiftState done [23:38:30]FM_GetShiftState done [23:38:30]opened in 1723939759 [23:38:30]opened+sec_in_day 1724026159 [23:38:30]quantity*price = 11100 [23:38:30]sum+1 = 11101 [23:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 157 18.08.2024 23:38 Смена: 466 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49891 ФПД: 213787589133228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233830&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49891&fm=213787589133228&tin=02508201610067®Number=0000000000092546&sum=11100 0 [23:38:32]StoreToDocumentArchive [23:38:32]shift 466 fd 49891 [23:38:32]save to /storage/0466/doc_00049891 [23:38:32]save last doc name /storage/0466/doc_00049891 to /storage/kkm_last_doc_name [23:38:32]save OK [23:38:32]Clear old archive folders... [23:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:38:32]tlvbuf is 0106E170 [23:38:32]SAM_PROTO_ClearQueue [23:38:32]wFMCommunicate request_size=4 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 09 00 00 [23:38:32]Write to MH i2c: E2 08 00 FC 00 80 09 00 00 00 00 00 00 6E [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:32]Read from MH i2c: E2 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [23:38:32]RAPDU: 90 00 [23:38:32]wFMCommunicate OK [23:38:32]SAM_PROTO_ClearQueue done [23:38:32]KKMCreateOFDPacket [23:38:32]OFDProtocolAddRootSTLVToBuf [23:38:32]FM_MakeSignedData [23:38:32]FM_MakeSignedData [23:38:32]SAM_PROTO_SignData [23:38:32]wFMCommunicate request_size=4 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 0D 01 02 [23:38:32]Write to MH i2c: E2 08 00 FD 00 80 0D 01 02 00 00 00 00 76 [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:32]Read from MH i2c: E2 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [23:38:32]RAPDU: 90 00 [23:38:32]wFMCommunicate OK [23:38:32]wFMCommunicate request_size=255 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F6 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [23:38:32]Write to MH i2c: E2 02 01 FE 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F6 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 A1 [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:32]Read from MH i2c: E2 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [23:38:32]RAPDU: 90 00 [23:38:32]wFMCommunicate OK [23:38:32]wFMCommunicate request_size=25 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 E3 C2 00 00 35 04 06 00 C2 70 4D 4E C3 AC [23:38:32]Write to MH i2c: E2 1C 00 FF 00 80 0D 02 02 14 00 30 30 10 04 04 00 E3 C2 00 00 35 04 06 00 C2 70 4D 4E C3 AC 00 00 39 [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:32]Read from MH i2c: E2 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [23:38:32]RAPDU: 90 00 [23:38:32]wFMCommunicate OK [23:38:32]wFMCommunicate request_size=4 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 0D 03 02 [23:38:32]Write to MH i2c: E2 08 00 00 01 80 0D 03 02 00 00 00 00 7C [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0B 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0B 00 00 01 00 8B 5C 80 49 F8 F6 BB C8 90 00 9E [23:38:33]RAPDU: 8B 5C 80 49 F8 F6 BB C8 90 00 [23:38:33]wFMCommunicate OK [23:38:33]SAM_PROTO_SignData done [23:38:33]FM_MakeSignedData done [23:38:33]CreateOFDProtocolMessage [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 11 00 00 [23:38:33]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:33]Read from MH i2c: E2 17 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [23:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:38:33]wFMCommunicate OK [23:38:33]CreateOFDProtocolMessage done [23:38:33]OFDSenderStorePacket 49891 [23:38:33]StoreOFDPacket docnum=49891 [23:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 1F 61 16 01 D1 65 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F6 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C2 00 00 35 04 06 00 C2 70 4D 4E C3 AC 8B 5C 80 49 F8 F6 BB C8 [23:38:33]CheckFolder [23:38:33]dirname=/storage/ofd_packets [23:38:33]CheckFolder done [23:38:33]ProducePacketName [23:38:33]name=ofd_packets/00049891 [23:38:33]NVStorageSaveData ofd_packets/00049891 [23:38:33]File name is /storage/ofd_packets/00049891 [23:38:33]Write 316 bytes [23:38:33]NVStorageSaveData done [23:38:33]OFDSenderStorePacket done [23:38:33]KKMCreateOFDPacket done [23:38:33]NVStorageSaveData kkm_last_timestamp [23:38:33]File name is /storage/kkm_last_timestamp [23:38:33]Write 4 bytes [23:38:33]NVStorageSaveData done [23:38:33]ExternCall_PrintAddStr [23:38:33]wPrintStart [23:38:33]Write to MH i2c: 01 00 00 02 01 03 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [23:38:33]RasterBufferAndPrint [23:38:33]line Счет N : (3)190066 [23:38:33]line ИНН: 02508201610067 [23:38:33]line Контрольно-Кассовый Чек [23:38:33]line ПРОДАЖА [23:38:33]line Товар: 4870001570071 [23:38:33]line Напиток Pepsi 1л [23:38:33]line 1.000 * 111.00 [23:38:33]line = 111.00 [23:38:33]line НДС 12% НСП 1% [23:38:33]line > о реализуемом товаре [23:38:33]line ИТОГО: 111.00 [23:38:33]line НСП 1% : 0.98 [23:38:33]line НДС 12% : 11.79 [23:38:33]line Наличными: 111.00 [23:38:33]line Безнал.: 0.00 [23:38:33]line Место: АЗС № 95 "Партнер Нефть" [23:38:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:38:33]line СНО: Общий режим [23:38:33]line Чек 157 18.08.2024 23:38 [23:38:33]line Смена: 466 ФФД: 1.0 [23:38:33]line ЗНМ: 0300000078 [23:38:33]line РНМ: 0000000000092546 [23:38:33]line Версия ККМ: 001 [23:38:33]line ФМ: 0000000000871800 [23:38:33]line ФД: 49891 [23:38:33]line ФПД: 213787589133228 [23:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233830&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49891&fm=213787589133228&tin=02508201610067®Number=0000000000092546&sum=11100 [23:38:33]line 0 [23:38:33]written 0, free lines is 4095 [23:38:33]OFD Sender: Processing packet 49891 [packets to send 21, broken 20] [23:38:33]ProducePacketName [23:38:33]name=ofd_packets/00049891 [23:38:33]OFD Sender: To server: pG, [23:38:33]CommunicateWithHost lk.salyk.kg:30040 [23:38:33]ConnectInit lk.salyk.kg [23:38:33]Connected sock=10 [23:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 1F 61 16 01 D1 65 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 F6 85 C2 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C2 00 00 35 04 06 00 C2 70 4D 4E C3 AC 8B 5C 80 49 F8 F6 BB C8 [23:38:33]Write to MH i2c: 01 00 00 2A 01 2B [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 F2 0C 30 [23:38:33]RasterBufferAndPrint [23:38:33]line [23:38:33]line [23:38:33]line [23:38:33]line [23:38:33]line [23:38:33]written 0, free lines is 3356 [23:38:33]MH_Cut [23:38:33]Write to MH i2c: D1 01 00 31 01 01 04 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: D1 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: D1 01 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: D1 01 00 31 01 00 03 [23:38:33]Write to MH i2c: 01 00 00 32 01 33 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 71 CC 47 00 74 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C2 00 00 F4 03 04 00 66 30 C2 66 B6 04 01 00 00 41 54 56 A8 5A 76 AA A6 [23:38:33]CommunicateWithHost err = 0 [23:38:33]CheckOFDResponse [23:38:33]1017 (14) - 77093643461234 [23:38:33]1041 (16) - 0000000000871800 [23:38:33]1040 (4) - 49891 [23:38:33]1012 (4) - 18.08.2024 17:33 [23:38:33]1206 (1) - 0 [23:38:33]OFD Sender: Remove packet 49891 [23:38:33]ProducePacketName [23:38:33]name=ofd_packets/00049891 [23:38:33]NVStorageDeleteData [23:38:34]*** Cut start [23:38:34]*** Purtial cut [23:38:34]*** Stage 1: CUTSNS_PIN = 1 [23:38:34]OFD Sender: No OFD packet to send [23:38:34]Read from MH i2c: 01 [23:38:34]MH_I2C_Read... [23:38:34]*** Stop cut motor [23:38:34]*** Cut end [23:38:34]Read from MH i2c: 01 07 00 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [23:38:34]process_action close_receipt done [23:38:34]requested_data is exist [23:38:34]produce_requested_data [23:38:34]requested_item fm.sn is exist - process it [23:38:34]wFMCommunicate request_size=4 [23:38:34]MH_SAM_APDU [23:38:34]CAPDU: 80 11 00 00 [23:38:34]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [23:38:34]Write i2c OK [23:38:34]MH_I2C_Read... [23:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:34]Read from MH i2c: E2 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: E2 17 00 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F9 [23:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:38:34]wFMCommunicate OK [23:38:34]requested_item fd.num is exist - process it [23:38:34]SAM_PROTO_GetFieldsCounters [23:38:34]wFMCommunicate request_size=4 [23:38:34]MH_SAM_APDU [23:38:34]CAPDU: 80 13 00 00 [23:38:34]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [23:38:34]Write i2c OK [23:38:34]MH_I2C_Read... [23:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:35]Read from MH i2c: E2 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 62 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 62 00 34 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [23:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:35]wFMCommunicate OK [23:38:35]SAM_PROTO_GetFieldsCounters done [23:38:35]requested_item shift.num is exist - process it [23:38:35]requested_item shift.opened is exist - process it [23:38:35]req_shift_opened [23:38:35]FM_GetShiftState [23:38:35]SAM_PROTO_GetShiftState [23:38:35]wFMCommunicate request_size=4 [23:38:35]MH_SAM_APDU [23:38:35]CAPDU: 80 13 01 00 [23:38:35]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [23:38:35]Write i2c OK [23:38:35]MH_I2C_Read... [23:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:35]Read from MH i2c: E2 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 0E 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D0 [23:38:35]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:38:35]wFMCommunicate OK [23:38:35]SAM_PROTO_GetShiftState done [23:38:35]FM_GetShiftState done [23:38:35]req_shift_opened done [23:38:35]requested_item shift.open_date is exist - process it [23:38:35]req_shift_open_date [23:38:35]req_shift_open_date done [23:38:35]produce_requested_data done [23:38:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:38:35]process_action_free close_receipt [23:38:35]json_value_free [23:38:35]json_value_free done [23:38:35]process_json_proto returns [23:38:35]Send response to host [23:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:38:35]free response buf [23:38:35]execute_script done [23:38:35]execute_script returns [23:38:35]free content buf [23:38:35]Sock 7.Close socket [23:38:35]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:26]int [23:39:26]Write to MH i2c: 01 00 00 36 01 37 [23:39:26]*** FLAG_PRN_KEY set [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 36 01 00 08 00 00 00 FF 0F 54 [23:39:26]state=0 [23:39:26]Key pressed [23:39:26]Feed [23:39:26]Write to MH i2c: D8 00 00 37 01 0F [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: D8 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: D8 01 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: D8 01 00 37 01 00 10 [23:39:26]int [23:39:26]Write to MH i2c: 01 00 00 38 01 39 [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 38 01 00 48 00 00 00 3C 00 C4 [23:39:26]state=2 [23:39:26]Key pressed [23:39:26]int [23:39:26]Write to MH i2c: 01 00 00 39 01 3A [23:39:26]*** FLAG_PRN_KEY reset [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 FB 0F 4B [23:39:26]state=2 [23:39:26]Stop feed [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:55]accept exits with 9 [23:48:55]New connection [23:48:55]New thread 3067211108 created [23:48:55]Thread 3067354468 joined [23:48:55]Waiting for new connection... [23:48:55] Sock 9.Parse request [23:48:55]Sock 9.Check first char [23:48:55]Sock 9.First char is OK [23:48:55]request: POST /json_proto HTTP/1.0 [23:48:55]Method: POST [23:48:55]URL: /json_proto [23:48:55]Method is POST - this is cgi request [23:48:55]url: /json_proto [23:48:55]query_string will be loaded in cgi processing [23:48:55]execute_cgi json_proto POST (null) [23:48:55]execute_cgi path=json_proto method=POST [23:48:55]POST find Content-Length [23:48:55]Host: 172.17.46.196:8080 [23:48:55]Content-Length: 215 [23:48:55]Content-Type: application/json [23:48:55] [23:48:55]POST finish read [23:48:55]Found Content-Length = 215 [23:48:55]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:48:55]execute_script... [23:48:55]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:48:55]POST & json_proto [23:48:55]process_json_proto [23:48:55]json parsed OK: [23:48:55]protocol is kg_v1.0 [23:48:55]action value=get_value [23:48:55]process_action get_value [23:48:55]cmd_get_value [23:48:55]process_action get_value done [23:48:55]requested_data is exist [23:48:55]produce_requested_data [23:48:55]requested_item kkm.sn is exist - process it [23:48:55]requested_item kkm.ver is exist - process it [23:48:55]requested_item fm.sn is exist - process it [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 11 00 00 [23:48:55]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 17 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 00 [23:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:48:55]wFMCommunicate OK [23:48:55]requested_item fd.num is exist - process it [23:48:55]SAM_PROTO_GetFieldsCounters [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 13 00 00 [23:48:55]Write to MH i2c: E2 08 00 3B 01 80 13 00 00 00 00 00 00 B8 [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 62 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 62 00 3B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [23:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:55]wFMCommunicate OK [23:48:55]SAM_PROTO_GetFieldsCounters done [23:48:55]requested_item shift.num is exist - process it [23:48:55]requested_item shift.opened is exist - process it [23:48:55]req_shift_opened [23:48:55]FM_GetShiftState [23:48:55]SAM_PROTO_GetShiftState [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 13 01 00 [23:48:55]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 0E 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 D7 [23:48:55]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:48:55]wFMCommunicate OK [23:48:55]SAM_PROTO_GetShiftState done [23:48:55]FM_GetShiftState done [23:48:55]req_shift_opened done [23:48:55]requested_item shift.open_date is exist - process it [23:48:55]req_shift_open_date [23:48:55]req_shift_open_date done [23:48:55]produce_requested_data done [23:48:55]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:48:55]process_action_free get_value [23:48:55]json_value_free [23:48:55]json_value_free done [23:48:55]process_json_proto returns [23:48:55]Send response to host [23:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:48:55]free response buf [23:48:55]execute_script done [23:48:55]execute_script returns [23:48:55]free content buf [23:48:55]Sock 9.Close socket [23:48:55]Sock 9.Thread stoped [23:48:55]accept exits with 7 [23:48:55]New connection [23:48:55]New thread 3067354468 created [23:48:55]Thread 3067211108 joined [23:48:55]Waiting for new connection... [23:48:55] Sock 7.Parse request [23:48:55]Sock 7.Check first char [23:48:55]Sock 7.First char is OK [23:48:55]request: POST /json_proto HTTP/1.0 [23:48:55]Method: POST [23:48:55]URL: /json_proto [23:48:55]Method is POST - this is cgi request [23:48:55]url: /json_proto [23:48:55]query_string will be loaded in cgi processing [23:48:55]execute_cgi json_proto POST (null) [23:48:55]execute_cgi path=json_proto method=POST [23:48:55]POST find Content-Length [23:48:55]Host: 172.17.46.196:8080 [23:48:55]Content-Length: 331 [23:48:55]Content-Type: application/json [23:48:55] [23:48:55]POST finish read [23:48:55]Found Content-Length = 331 [23:48:55]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:48:55]execute_script... [23:48:55]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:48:55]POST & json_proto [23:48:55]process_json_proto [23:48:55]json parsed OK: [23:48:55]protocol is kg_v1.0 [23:48:55]action value=get_value [23:48:55]process_action get_value [23:48:55]cmd_get_value [23:48:55]process_action get_value done [23:48:55]requested_data is exist [23:48:55]produce_requested_data [23:48:55]requested_item fm.sale.total is exist - process it [23:48:55]SAM_PROTO_GetFMData [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 13 03 00 [23:48:55]Write to MH i2c: E2 08 00 3D 01 80 13 03 00 00 00 00 00 BD [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 3D 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 B7 [23:48:56]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 3E 01 80 17 00 00 00 00 00 00 BF [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 3E 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [23:48:56]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 3F 01 80 17 00 00 00 00 00 00 C0 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 3F 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [23:48:56]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 40 01 80 17 00 00 00 00 00 00 C1 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 FD 00 40 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [23:48:56]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:56]wFMCommunicate OK [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 17 00 00 [23:48:56]Write to MH i2c: E2 08 00 41 01 80 17 00 00 00 00 00 00 C2 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 DD 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 DD 00 41 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [23:48:57]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:57]wFMCommunicate OK [23:48:57]SAM_PROTO_GetFMData done [23:48:57]requested_item fm.sale_refund.total is exist - process it [23:48:57]requested_item fm.buy.total is exist - process it [23:48:57]requested_item shift.sale.total is exist - process it [23:48:57]SAM_PROTO_GetShiftData [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 13 02 00 [23:48:57]Write to MH i2c: E2 08 00 42 01 80 13 02 00 00 00 00 00 C1 [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 FD 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 FD 00 42 01 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AA [23:48:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:48:57]wFMCommunicate OK [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 17 00 00 [23:48:57]Write to MH i2c: E2 08 00 43 01 80 17 00 00 00 00 00 00 C4 [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 FD 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 FD 00 43 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E6 [23:48:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:48:57]wFMCommunicate OK [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 17 00 00 [23:48:57]Write to MH i2c: E2 08 00 44 01 80 17 00 00 00 00 00 00 C5 [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 FD 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 FD 00 44 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 7C [23:48:58]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:48:58]wFMCommunicate OK [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 17 00 00 [23:48:58]Write to MH i2c: E2 08 00 45 01 80 17 00 00 00 00 00 00 C6 [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 FD 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 FD 00 45 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 38 [23:48:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:48:58]wFMCommunicate OK [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 17 00 00 [23:48:58]Write to MH i2c: E2 08 00 46 01 80 17 00 00 00 00 00 00 C7 [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 CB 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 CB 00 46 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [23:48:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:58]wFMCommunicate OK [23:48:58]SAM_PROTO_GetShiftData done [23:48:58]requested_item shift.sale.total_cash is exist - process it [23:48:58]requested_item shift.sale_refund.total is exist - process it [23:48:58]requested_item shift.sale_refund.total_cash is exist - process it [23:48:58]requested_item shift.buy.total is exist - process it [23:48:58]requested_item shift.buy.total_cash is exist - process it [23:48:58]produce_requested_data done [23:48:58]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:48:58]process_action_free get_value [23:48:58]json_value_free [23:48:58]json_value_free done [23:48:58]process_json_proto returns [23:48:58]Send response to host [23:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:48:58]free response buf [23:48:58]execute_script done [23:48:58]execute_script returns [23:48:58]free content buf [23:48:58]Sock 7.Close socket [23:48:58]Sock 7.Thread stoped [23:48:58]accept exits with 9 [23:48:58]New connection [23:48:58]New thread 3067211108 created [23:48:58]Thread 3067354468 joined [23:48:58]Waiting for new connection... [23:48:58] Sock 9.Parse request [23:48:58]Sock 9.Check first char [23:48:58]Sock 9.First char is OK [23:48:58]request: POST /json_proto HTTP/1.0 [23:48:58]Method: POST [23:48:58]URL: /json_proto [23:48:58]Method is POST - this is cgi request [23:48:58]url: /json_proto [23:48:58]query_string will be loaded in cgi processing [23:48:58]execute_cgi json_proto POST (null) [23:48:58]execute_cgi path=json_proto method=POST [23:48:58]POST find Content-Length [23:48:58]Host: 172.17.46.196:8080 [23:48:58]Content-Length: 331 [23:48:58]Content-Type: application/json [23:48:58] [23:48:58]POST finish read [23:48:58]Found Content-Length = 331 [23:48: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" ] } } [23:48:58]execute_script... [23:48: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" ] } } [23:48:58]POST & json_proto [23:48:58]process_json_proto [23:48:58]json parsed OK: [23:48:58]protocol is kg_v1.0 [23:48:58]action value=get_value [23:48:58]process_action get_value [23:48:58]cmd_get_value [23:48:58]process_action get_value done [23:48:58]requested_data is exist [23:48:58]produce_requested_data [23:48:58]requested_item fm.sale.total is exist - process it [23:48:58]SAM_PROTO_GetFMData [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 13 03 00 [23:48:58]Write to MH i2c: E2 08 00 47 01 80 13 03 00 00 00 00 00 C7 [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:59]Read from MH i2c: E2 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 47 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 C1 [23:48:59]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:48:59]wFMCommunicate OK [23:48:59]wFMCommunicate request_size=4 [23:48:59]MH_SAM_APDU [23:48:59]CAPDU: 80 17 00 00 [23:48:59]Write to MH i2c: E2 08 00 48 01 80 17 00 00 00 00 00 00 C9 [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:59]Read from MH i2c: E2 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 48 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [23:48:59]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:59]wFMCommunicate OK [23:48:59]wFMCommunicate request_size=4 [23:48:59]MH_SAM_APDU [23:48:59]CAPDU: 80 17 00 00 [23:48:59]Write to MH i2c: E2 08 00 49 01 80 17 00 00 00 00 00 00 CA [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:59]Read from MH i2c: E2 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 FD 00 49 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [23:48:59]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:00]wFMCommunicate OK [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 17 00 00 [23:49:00]Write to MH i2c: E2 08 00 4A 01 80 17 00 00 00 00 00 00 CB [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]OFD Sender: No OFD packet to send [23:49:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 FD 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 FD 00 4A 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [23:49:00]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:00]wFMCommunicate OK [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 17 00 00 [23:49:00]Write to MH i2c: E2 08 00 4B 01 80 17 00 00 00 00 00 00 CC [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 DD 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 DD 00 4B 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [23:49:00]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:00]wFMCommunicate OK [23:49:00]SAM_PROTO_GetFMData done [23:49:00]requested_item fm.sale_refund.total is exist - process it [23:49:00]requested_item fm.buy.total is exist - process it [23:49:00]requested_item shift.sale.total is exist - process it [23:49:00]SAM_PROTO_GetShiftData [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 13 02 00 [23:49:00]Write to MH i2c: E2 08 00 4C 01 80 13 02 00 00 00 00 00 CB [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 4C 01 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B4 [23:49:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:01]wFMCommunicate OK [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 17 00 00 [23:49:01]Write to MH i2c: E2 08 00 4D 01 80 17 00 00 00 00 00 00 CE [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 4D 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 F0 [23:49:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:01]wFMCommunicate OK [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 17 00 00 [23:49:01]Write to MH i2c: E2 08 00 4E 01 80 17 00 00 00 00 00 00 CF [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 4E 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 86 [23:49:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 4F 01 80 17 00 00 00 00 00 00 D0 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 4F 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 42 [23:49:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 50 01 80 17 00 00 00 00 00 00 D1 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 CB 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 CB 00 50 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [23:49:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:02]wFMCommunicate OK [23:49:02]SAM_PROTO_GetShiftData done [23:49:02]requested_item shift.sale.total_cash is exist - process it [23:49:02]requested_item shift.sale_refund.total is exist - process it [23:49:02]requested_item shift.sale_refund.total_cash is exist - process it [23:49:02]requested_item shift.buy.total is exist - process it [23:49:02]requested_item shift.buy.total_cash is exist - process it [23:49:02]produce_requested_data done [23:49:02]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:02]process_action_free get_value [23:49:02]json_value_free [23:49:02]json_value_free done [23:49:02]process_json_proto returns [23:49:02]Send response to host [23:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:02]free response buf [23:49:02]execute_script done [23:49:02]execute_script returns [23:49:02]free content buf [23:49:02]Sock 9.Close socket [23:49:02]Sock 9.Thread stoped [23:49:02]accept exits with 7 [23:49:02]New connection [23:49:02]New thread 3067354468 created [23:49:02]Thread 3067211108 joined [23:49:02]Waiting for new connection... [23:49:02] Sock 7.Parse request [23:49:02]Sock 7.Check first char [23:49:02]Sock 7.First char is OK [23:49:02]request: POST /json_proto HTTP/1.0 [23:49:02]Method: POST [23:49:02]URL: /json_proto [23:49:02]Method is POST - this is cgi request [23:49:02]url: /json_proto [23:49:02]query_string will be loaded in cgi processing [23:49:02]execute_cgi json_proto POST (null) [23:49:02]execute_cgi path=json_proto method=POST [23:49:02]POST find Content-Length [23:49:02]Host: 172.17.46.196:8080 [23:49:02]Content-Length: 269 [23:49:02]Content-Type: application/json [23:49:02] [23:49:02]POST finish read [23:49:02]Found Content-Length = 269 [23:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:02]execute_script... [23:49:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:02]POST & json_proto [23:49:02]process_json_proto [23:49:02]json parsed OK: [23:49:02]protocol is kg_v1.0 [23:49:02]action value=x_report [23:49:02]process_action x_report [23:49:02]cmd_x_report [23:49:02]MH_GetDate [23:49:02]Write to MH i2c: F0 00 00 51 01 41 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: F0 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: F0 09 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: F0 09 00 51 01 00 6E 88 C2 66 C4 85 C2 66 D9 [23:49:02]GetLastDocTimeStamp 1724024310 [23:49:02]current date 1724024942 [23:49:02]FM_GetShiftState [23:49:02]SAM_PROTO_GetShiftState [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 13 01 00 [23:49:02]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 ED [23:49:03]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetShiftState done [23:49:03]FM_GetShiftState done [23:49:03]KKMCreateXReportDocument [23:49:03]Load OK [23:49:03]Malloc new data [23:49:03]MH_GetDate [23:49:03]Write to MH i2c: F0 00 00 53 01 43 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 09 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 09 00 53 01 00 6F 88 C2 66 C4 85 C2 66 DC [23:49:03]Malloc new data [23:49:03]Malloc new data [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 11 00 00 [23:49:03]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 17 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1A [23:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetFieldsCounters [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 13 00 00 [23:49:03]Write to MH i2c: E2 08 00 55 01 80 13 00 00 00 00 00 00 D2 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 62 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 62 00 55 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetFieldsCounters done [23:49:03]Malloc new data [23:49:03]Malloc new data [23:49:03]Malloc new data [23:49:03]KKMCreateXReportDocument OK [23:49:03]KKMSetXReportData OK [23:49:03]KKMPrepareXReportFMData [23:49:03]SAM_PROTO_GetShiftData [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 13 02 00 [23:49:03]Write to MH i2c: E2 08 00 56 01 80 13 02 00 00 00 00 00 D5 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 56 01 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 BE [23:49:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 17 00 00 [23:49:04]Write to MH i2c: E2 08 00 57 01 80 17 00 00 00 00 00 00 D8 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 57 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 FA [23:49:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 17 00 00 [23:49:04]Write to MH i2c: E2 08 00 58 01 80 17 00 00 00 00 00 00 D9 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 58 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 90 [23:49:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 17 00 00 [23:49:04]Write to MH i2c: E2 08 00 59 01 80 17 00 00 00 00 00 00 DA [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:05]OFD Sender: No OFD packet to send [23:49:05]Read from MH i2c: E2 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 FD 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 FD 00 59 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 4C [23:49:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:05]wFMCommunicate OK [23:49:05]wFMCommunicate request_size=4 [23:49:05]MH_SAM_APDU [23:49:05]CAPDU: 80 17 00 00 [23:49:05]Write to MH i2c: E2 08 00 5A 01 80 17 00 00 00 00 00 00 DB [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:05]Read from MH i2c: E2 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 CB 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: E2 CB 00 5A 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C4 [23:49:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:05]wFMCommunicate OK [23:49:05]SAM_PROTO_GetShiftData done [23:49:05]1194 (1194) - счетчики итогов смены [23:49:05] 1134 (4) - 157 - количество чеков со всеми признаками расчетов [23:49:05] 1129 (155) - счетчики операций «приход» [23:49:05] 1135 (4) - 157 - количество чеков по признаку расчетов [23:49:05] 1201 (3) - 28885.00 - общая итоговая сумма в чеках [23:49:05] 1136 (3) - 22274.00 - итоговая сумма в чеках наличными [23:49:05] 1138 (3) - 6611.00 - итоговая сумма в чеках безналичными [23:49:05] 1024 (122) - суммы налогов [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 0% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1006 (12) - суммы НДС [23:49:05] 1010 (1) - 12% - код ставки НДС [23:49:05] 1011 (3) - 3067.28 - сумма НДС по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (11) - суммы НСП [23:49:05] 1014 (1) - 1% - код ставки НСП [23:49:05] 1015 (2) - 255.49 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 2% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 3% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 5% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1130 (141) - счетчики операций «возврат прихода» [23:49:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:05] 1024 (117) - суммы налогов [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 0% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 12% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 2% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 3% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 5% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1131 (141) - счетчики операций «расход» [23:49:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:05] 1024 (117) - суммы налогов [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 0% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 12% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 2% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 3% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 5% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1132 (141) - счетчики операций «возврат расхода» [23:49:05] 1135 (4) - 0 - количество чеков по признаку расчетов [23:49:05] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:49:05] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:49:05] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:49:05] 1024 (117) - суммы налогов [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 0% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1006 (9) - суммы НДС [23:49:05] 1010 (1) - 12% - код ставки НДС [23:49:05] 1011 (0) - 0.00 - сумма НДС по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 2% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 3% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 5% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 0,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1007 (9) - суммы НСП [23:49:05] 1014 (1) - 1,50% - код ставки НСП [23:49:05] 1015 (0) - 0.00 - сумма НСП по ставке [23:49:05] 1133 (588) - - счетчики коррекции - не используются [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1194 (04AA) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1134 (046E) [23:49:06]Malloc new data [23:49:06]Processing tag 1129 (0469) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1135 (046F) [23:49:06]Malloc new data [23:49:06]Processing tag 1201 (04B1) [23:49:06]Malloc new data [23:49:06]Processing tag 1136 (0470) [23:49:06]Malloc new data [23:49:06]Processing tag 1138 (0472) [23:49:06]Malloc new data [23:49:06]Processing tag 1024 (0400) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1130 (046A) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1135 (046F) [23:49:06]Malloc new data [23:49:06]Processing tag 1201 (04B1) [23:49:06]Malloc new data [23:49:06]Processing tag 1136 (0470) [23:49:06]Malloc new data [23:49:06]Processing tag 1138 (0472) [23:49:06]Malloc new data [23:49:06]Processing tag 1024 (0400) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1131 (046B) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1135 (046F) [23:49:06]Malloc new data [23:49:06]Processing tag 1201 (04B1) [23:49:06]Malloc new data [23:49:06]Processing tag 1136 (0470) [23:49:06]Malloc new data [23:49:06]Processing tag 1138 (0472) [23:49:06]Malloc new data [23:49:06]Processing tag 1024 (0400) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1132 (046C) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1135 (046F) [23:49:06]Malloc new data [23:49:06]Processing tag 1201 (04B1) [23:49:06]Malloc new data [23:49:06]Processing tag 1136 (0470) [23:49:06]Malloc new data [23:49:06]Processing tag 1138 (0472) [23:49:06]Malloc new data [23:49:06]Processing tag 1024 (0400) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1006 (03EE) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1010 (03F2) [23:49:06]Malloc new data [23:49:06]Processing tag 1011 (03F3) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1007 (03EF) [23:49:06]Load OK [23:49:06]SetTLVBufToDocument [23:49:06]Processing tag 1014 (03F6) [23:49:06]Malloc new data [23:49:06]Processing tag 1015 (03F7) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Processing tag 1133 (046D) [23:49:06]Malloc new data [23:49:06]SetTLVBufToDocument err=0 [23:49:06]SetTLVBufToDocument err=0 [23:49:06]Malloc new data [23:49:06]SAM_PROTO_GetFMData [23:49:06]wFMCommunicate request_size=4 [23:49:06]MH_SAM_APDU [23:49:06]CAPDU: 80 13 03 00 [23:49:06]Write to MH i2c: E2 08 00 5B 01 80 13 03 00 00 00 00 00 DB [23:49:06]Write i2c OK [23:49:06]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 5B 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 D5 [23:49:07]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:49:07]wFMCommunicate OK [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 17 00 00 [23:49:07]Write to MH i2c: E2 08 00 5C 01 80 17 00 00 00 00 00 00 DD [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 FD 00 5C 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [23:49:07]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:08]wFMCommunicate OK [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 17 00 00 [23:49:08]Write to MH i2c: E2 08 00 5D 01 80 17 00 00 00 00 00 00 DE [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 5D 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [23:49:08]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:08]wFMCommunicate OK [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 17 00 00 [23:49:08]Write to MH i2c: E2 08 00 5E 01 80 17 00 00 00 00 00 00 DF [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 5E 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [23:49:08]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 5F 01 80 17 00 00 00 00 00 00 E0 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 DD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 DD 00 5F 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [23:49:09]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:09]wFMCommunicate OK [23:49:09]SAM_PROTO_GetFMData done [23:49:09]FM_GetFMData:85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 OFD Sender: No OFD packet to send [23:49:10]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:10]oper:6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:10]total:DA 6B 52 3D [23:49:10]Malloc new data [23:49:10]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:49:10]total:40 D1 25 [23:49:10]Malloc new data [23:49:10]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 [23:49:10]total: [23:49:10]Malloc new data [23:49:10]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 [23:49:10]total: [23:49:10]Malloc new data [23:49:10]KKMPrepareXReportFMData err=0 [23:49:10]Х отчет ИНН: 02508201610067 Кассир: Сулайманов Т. 18.08.2024 23:49 Смена: 266 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Всего чеков: 157 ИТОГИ ПРИХОД Чеков: 157 Общий итог: 28885.00 Итого наличными: 22274.00 Итого безнал.: 6611.00 НДС 0% : 0.00 НДС 12% : 3067.28 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 22274.00 НС Приход: 10288117.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871800 [23:49:10]StoreToDocumentArchive [23:49:10]MH_GetDate [23:49:10]Write to MH i2c: F0 00 00 60 01 50 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 09 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: F0 09 00 60 01 00 76 88 C2 66 C4 85 C2 66 F0 [23:49:10]shift 266 fd 1724024950 [23:49:10]Create dir for shift 0266 [23:49:10]save to /storage/0266/doc_1724024950 [23:49:10]save last doc name /storage/0266/doc_1724024950 to /storage/kkm_last_doc_name [23:49:10]save OK [23:49:10]Clear old archive folders... [23:49:10]NVStorageSaveData kkm_last_timestamp [23:49:10]File name is /storage/kkm_last_timestamp [23:49:10]Write 4 bytes [23:49:10]NVStorageSaveData done [23:49:10]ExternCall_PrintAddStr [23:49:10]wPrintStart [23:49:10]Write to MH i2c: 01 00 00 61 01 62 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: 01 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: 01 07 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [23:49:10]RasterBufferAndPrint [23:49:10]line Х отчет [23:49:10]line ИНН: 02508201610067 [23:49:10]line Кассир: Сулайманов Т. [23:49:10]line 18.08.2024 23:49 [23:49:10]line Смена: 266 [23:49:10]line РНМ: 0000000000092546 [23:49:10]line ЗНМ: 0300000078 [23:49:10]line СНО: Общий режим [23:49:10]line Всего чеков: 157 [23:49:10]line ИТОГИ ПРИХОД [23:49:10]line Чеков: 157 [23:49:10]line Общий итог: 28885.00 [23:49:10]line Итого наличными: 22274.00 [23:49:10]line Итого безнал.: 6611.00 [23:49:10]line НДС 0% : 0.00 [23:49:10]line НДС 12% : 3067.28 [23:49:10]line НСП 0% : 0.00 [23:49:10]line НСП 1,50% : 0.00 [23:49:10]line НСП 0,50% : 0.00 [23:49:10]line НСП 5% : 0.00 [23:49:10]line НСП 3% : 0.00 [23:49:10]line НСП 2% : 0.00 [23:49:10]line НСП 1% : 255.49 [23:49:10]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:49:10]line Чеков: 0 [23:49:10]line Общий итог: 0.00 [23:49:10]line Итого наличными: 0.00 [23:49:10]line Итого безнал.: 0.00 [23:49:10]line НДС 0% : 0.00 [23:49:10]line НДС 12% : 0.00 [23:49:10]line НСП 0% : 0.00 [23:49:10]line НСП 1,50% : 0.00 [23:49:10]line НСП 0,50% : 0.00 [23:49:10]line НСП 5% : 0.00 [23:49:10]line НСП 3% : 0.00 [23:49:10]line НСП 2% : 0.00 [23:49:10]line НСП 1% : 0.00 [23:49:10]line ИТОГИ РАСХОД [23:49:10]line Чеков: 0 [23:49:10]line Общий итог: 0.00 [23:49:10]line Итого наличными: 0.00 [23:49:10]line Итого безнал.: 0.00 [23:49:10]line НДС 0% : 0.00 [23:49:10]line НДС 12% : 0.00 [23:49:10]line НСП 0% : 0.00 [23:49:10]line НСП 1,50% : 0.00 [23:49:10]line НСП 0,50% : 0.00 [23:49:10]line НСП 5% : 0.00 [23:49:10]line НСП 3% : 0.00 [23:49:10]line НСП 2% : 0.00 [23:49:10]line НСП 1% : 0.00 [23:49:10]line ИТОГИ ВОЗВРАТ РАСХОДА [23:49:10]line Чеков: 0 [23:49:10]line Общий итог: 0.00 [23:49:10]line Итого наличными: 0.00 [23:49:10]line Итого безнал.: 0.00 [23:49:10]line НДС 0% : 0.00 [23:49:10]line НДС 12% : 0.00 [23:49:10]line НСП 0% : 0.00 [23:49:10]line НСП 1,50% : 0.00 [23:49:10]line НСП 0,50% : 0.00 [23:49:10]line НСП 5% : 0.00 [23:49:10]line НСП 3% : 0.00 [23:49:10]line НСП 2% : 0.00 [23:49:10]line НСП 1% : 0.00 [23:49:10]line Сумма внесений: 0.00 [23:49:10]line Сумма выплат: 0.00 [23:49:10]line Нал. в кассе: 22274.00 [23:49:10]line НС Приход: 10288117.38 [23:49:10]line НС Возвр.Прихода: 24784.00 [23:49:10]line НС Расход: 0.00 [23:49:10]line НС Возвр.Расхода: 0.00 [23:49:10]line ФМ: 0000000000871800 [23:49:10]written 0, free lines is 4095 [23:49:11]Write to MH i2c: 01 00 00 AC 01 AD [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 07 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 90 0A 4E [23:49:11]RasterBufferAndPrint [23:49:11]line [23:49:11]line [23:49:11]line [23:49:11]line [23:49:11]line [23:49:11]written 0, free lines is 2732 [23:49:11]MH_Cut [23:49:11]Write to MH i2c: D1 01 00 B3 01 01 86 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: D1 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: D1 01 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: D1 01 00 B3 01 00 85 [23:49:11]Write to MH i2c: 01 00 00 B4 01 B5 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:12]*** Cut start [23:49:12]*** Purtial cut [23:49:12]*** CUTSNS_PIN = 0 [23:49:12]*** Stage 1: CUTSNS_PIN = 1 [23:49:14]Read from MH i2c: 01 [23:49:14]MH_I2C_Read... [23:49:14]*** Stop cut motor [23:49:14]*** Cut end [23:49:14]Read from MH i2c: 01 07 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 FF 0F CA [23:49:14]process_action x_report done [23:49:14]requested_data is exist [23:49:14]produce_requested_data [23:49:14]requested_item fd.num is exist - process it [23:49:14]SAM_PROTO_GetFieldsCounters [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 13 00 00 [23:49:14]Write to MH i2c: E2 08 00 B5 01 80 13 00 00 00 00 00 00 32 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 62 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 62 00 B5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [23:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:14]wFMCommunicate OK [23:49:14]SAM_PROTO_GetFieldsCounters done [23:49:14]requested_item shift.num is exist - process it [23:49:14]requested_item shift.opened is exist - process it [23:49:14]req_shift_opened [23:49:14]FM_GetShiftState [23:49:14]SAM_PROTO_GetShiftState [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 13 01 00 [23:49:14]Write to MH i2c: E2 08 00 B6 01 80 13 01 00 00 00 00 00 34 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:15]Read from MH i2c: E2 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 B6 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 51 [23:49:15]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:49:15]wFMCommunicate OK [23:49:15]SAM_PROTO_GetShiftState done [23:49:15]FM_GetShiftState done [23:49:15]req_shift_opened done [23:49:15]requested_item shift.open_date is exist - process it [23:49:15]req_shift_open_date [23:49:15]req_shift_open_date done [23:49:15]produce_requested_data done [23:49:15]produce_requested_data return {"fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:49:15]process_action_free x_report [23:49:15]json_value_free [23:49:15]json_value_free done [23:49:15]process_json_proto returns [23:49:15]Send response to host [23:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:49:15]free response buf [23:49:15]execute_script done [23:49:15]execute_script returns [23:49:15]free content buf [23:49:15]Sock 7.Close socket [23:49:15]Sock 7.Thread stoped [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]accept exits with 9 [23:49:50]New connection [23:49:50]New thread 3067211108 created [23:49:50]Thread 3067354468 joined [23:49:50]Waiting for new connection... [23:49:50] Sock 9.Parse request [23:49:50]Sock 9.Check first char [23:49:50]Sock 9.First char is OK [23:49:50]request: POST /json_proto HTTP/1.0 [23:49:50]Method: POST [23:49:50]URL: /json_proto [23:49:50]Method is POST - this is cgi request [23:49:50]url: /json_proto [23:49:50]query_string will be loaded in cgi processing [23:49:50]execute_cgi json_proto POST (null) [23:49:50]execute_cgi path=json_proto method=POST [23:49:50]POST find Content-Length [23:49:50]Host: 172.17.46.196:8080 [23:49:50]Content-Length: 215 [23:49:50]Content-Type: application/json [23:49:50] [23:49:50]POST finish read [23:49:50]Found Content-Length = 215 [23:49:50]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:49:50]execute_script... [23:49:50]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:49:50]POST & json_proto [23:49:50]process_json_proto [23:49:50]json parsed OK: [23:49:50]protocol is kg_v1.0 [23:49:50]action value=get_value [23:49:50]process_action get_value [23:49:50]cmd_get_value [23:49:50]process_action get_value done [23:49:50]requested_data is exist [23:49:50]produce_requested_data [23:49:50]requested_item kkm.sn is exist - process it [23:49:50]requested_item kkm.ver is exist - process it [23:49:50]requested_item fm.sn is exist - process it [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 11 00 00 [23:49:50]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 17 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7D [23:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:49:50]wFMCommunicate OK [23:49:50]requested_item fd.num is exist - process it [23:49:50]SAM_PROTO_GetFieldsCounters [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 13 00 00 [23:49:50]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 62 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 62 00 B8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [23:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_GetFieldsCounters done [23:49:50]requested_item shift.num is exist - process it [23:49:50]requested_item shift.opened is exist - process it [23:49:50]req_shift_opened [23:49:50]FM_GetShiftState [23:49:50]SAM_PROTO_GetShiftState [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 13 01 00 [23:49:50]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 54 [23:49:50]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_GetShiftState done [23:49:50]FM_GetShiftState done [23:49:50]req_shift_opened done [23:49:50]requested_item shift.open_date is exist - process it [23:49:50]req_shift_open_date [23:49:50]req_shift_open_date done [23:49:50]produce_requested_data done [23:49:50]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759} [23:49:50]process_action_free get_value [23:49:50]json_value_free [23:49:50]json_value_free done [23:49:50]process_json_proto returns [23:49:50]Send response to host [23:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49891,"shift.num":466,"shift.opened":1,"shift.open_date":1723939759}}} [23:49:50]free response buf [23:49:50]execute_script done [23:49:50]execute_script returns [23:49:50]free content buf [23:49:50]Sock 9.Close socket [23:49:50]Sock 9.Thread stoped [23:49:50]OFD Sender: No OFD packet to send [23:49:50]accept exits with 7 [23:49:50]New connection [23:49:50]New thread 3067354468 created [23:49:50]Thread 3067211108 joined [23:49:50]Waiting for new connection... [23:49:50] Sock 7.Parse request [23:49:50]Sock 7.Check first char [23:49:50]Sock 7.First char is OK [23:49:50]request: POST /json_proto HTTP/1.0 [23:49:50]Method: POST [23:49:50]URL: /json_proto [23:49:50]Method is POST - this is cgi request [23:49:50]url: /json_proto [23:49:50]query_string will be loaded in cgi processing [23:49:50]execute_cgi json_proto POST (null) [23:49:50]execute_cgi path=json_proto method=POST [23:49:50]POST find Content-Length [23:49:50]Host: 172.17.46.196:8080 [23:49:50]Content-Length: 331 [23:49:50]Content-Type: application/json [23:49:50] [23:49:50]POST finish read [23:49:50]Found Content-Length = 331 [23:49:50]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:49:50]execute_script... [23:49:50]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:49:50]POST & json_proto [23:49:50]process_json_proto [23:49:50]json parsed OK: [23:49:50]protocol is kg_v1.0 [23:49:50]action value=get_value [23:49:50]process_action get_value [23:49:50]cmd_get_value [23:49:50]process_action get_value done [23:49:50]requested_data is exist [23:49:50]produce_requested_data [23:49:50]requested_item fm.sale.total is exist - process it [23:49:50]SAM_PROTO_GetFMData [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 13 03 00 [23:49:50]Write to MH i2c: E2 08 00 BA 01 80 13 03 00 00 00 00 00 3A [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 BA 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 34 [23:49:51]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 17 00 00 [23:49:51]Write to MH i2c: E2 08 00 BB 01 80 17 00 00 00 00 00 00 3C [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 BB 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [23:49:51]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 17 00 00 [23:49:51]Write to MH i2c: E2 08 00 BC 01 80 17 00 00 00 00 00 00 3D [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 BC 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [23:49:51]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 17 00 00 [23:49:51]Write to MH i2c: E2 08 00 BD 01 80 17 00 00 00 00 00 00 3E [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 FD 00 BD 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [23:49:51]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 17 00 00 [23:49:51]Write to MH i2c: E2 08 00 BE 01 80 17 00 00 00 00 00 00 3F [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 DD 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 DD 00 BE 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [23:49:52]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:52]wFMCommunicate OK [23:49:52]SAM_PROTO_GetFMData done [23:49:52]requested_item fm.sale_refund.total is exist - process it [23:49:52]requested_item fm.buy.total is exist - process it [23:49:52]requested_item shift.sale.total is exist - process it [23:49:52]SAM_PROTO_GetShiftData [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 13 02 00 [23:49:52]Write to MH i2c: E2 08 00 BF 01 80 13 02 00 00 00 00 00 3E [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 FD 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 FD 00 BF 01 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 27 [23:49:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:52]wFMCommunicate OK [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 17 00 00 [23:49:52]Write to MH i2c: E2 08 00 C0 01 80 17 00 00 00 00 00 00 41 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 C0 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 63 [23:49:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:53]wFMCommunicate OK [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 17 00 00 [23:49:53]Write to MH i2c: E2 08 00 C1 01 80 17 00 00 00 00 00 00 42 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 C1 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F9 [23:49:53]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:53]wFMCommunicate OK [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 17 00 00 [23:49:53]Write to MH i2c: E2 08 00 C2 01 80 17 00 00 00 00 00 00 43 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 FD 00 C2 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B5 [23:49:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:53]wFMCommunicate OK [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 17 00 00 [23:49:53]Write to MH i2c: E2 08 00 C3 01 80 17 00 00 00 00 00 00 44 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 CB 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 CB 00 C3 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2D [23:49:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:54]wFMCommunicate OK [23:49:54]SAM_PROTO_GetShiftData done [23:49:54]requested_item shift.sale.total_cash is exist - process it [23:49:54]requested_item shift.sale_refund.total is exist - process it [23:49:54]requested_item shift.sale_refund.total_cash is exist - process it [23:49:54]requested_item shift.buy.total is exist - process it [23:49:54]requested_item shift.buy.total_cash is exist - process it [23:49:54]produce_requested_data done [23:49:54]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:54]process_action_free get_value [23:49:54]json_value_free [23:49:54]json_value_free done [23:49:54]process_json_proto returns [23:49:54]Send response to host [23:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:54]free response buf [23:49:54]execute_script done [23:49:54]execute_script returns [23:49:54]free content buf [23:49:54]Sock 7.Close socket [23:49:54]Sock 7.Thread stoped [23:49:54]accept exits with 9 [23:49:54]New connection [23:49:54]New thread 3067211108 created [23:49:54]Thread 3067354468 joined [23:49:54]Waiting for new connection... [23:49:54] Sock 9.Parse request [23:49:54]Sock 9.Check first char [23:49:54]Sock 9.First char is OK [23:49:54]request: POST /json_proto HTTP/1.0 [23:49:54]Method: POST [23:49:54]URL: /json_proto [23:49:54]Method is POST - this is cgi request [23:49:54]url: /json_proto [23:49:54]query_string will be loaded in cgi processing [23:49:54]execute_cgi json_proto POST (null) [23:49:54]execute_cgi path=json_proto method=POST [23:49:54]POST find Content-Length [23:49:54]Host: 172.17.46.196:8080 [23:49:54]Content-Length: 331 [23:49:54]Content-Type: application/json [23:49:54] [23:49:54]POST finish read [23:49:54]Found Content-Length = 331 [23:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:54]execute_script... [23:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:54]POST & json_proto [23:49:54]process_json_proto [23:49:54]json parsed OK: [23:49:54]protocol is kg_v1.0 [23:49:54]action value=get_value [23:49:54]process_action get_value [23:49:54]cmd_get_value [23:49:54]process_action get_value done [23:49:54]requested_data is exist [23:49:54]produce_requested_data [23:49:54]requested_item fm.sale.total is exist - process it [23:49:54]SAM_PROTO_GetFMData [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 13 03 00 [23:49:54]Write to MH i2c: E2 08 00 C4 01 80 13 03 00 00 00 00 00 44 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 C4 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 3E [23:49:54]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:49:54]wFMCommunicate OK [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 17 00 00 [23:49:54]Write to MH i2c: E2 08 00 C5 01 80 17 00 00 00 00 00 00 46 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 FD 00 C5 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [23:49:54]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:55]wFMCommunicate OK [23:49:55]wFMCommunicate request_size=4 [23:49:55]MH_SAM_APDU [23:49:55]CAPDU: 80 17 00 00 [23:49:55]Write to MH i2c: E2 08 00 C6 01 80 17 00 00 00 00 00 00 47 [23:49:55]Write i2c OK [23:49:55]MH_I2C_Read... [23:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:55]Read from MH i2c: E2 [23:49:55]MH_I2C_Read... [23:49:55]Read from MH i2c: E2 FD 00 [23:49:55]MH_I2C_Read... [23:49:55]Read from MH i2c: E2 FD 00 C6 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [23:49:55]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:55]wFMCommunicate OK [23:49:55]wFMCommunicate request_size=4 [23:49:55]MH_SAM_APDU [23:49:55]CAPDU: 80 17 00 00 [23:49:55]Write to MH i2c: E2 08 00 C7 01 80 17 00 00 00 00 00 00 48 [23:49:55]Write i2c OK [23:49:55]MH_I2C_Read... [23:49:55]OFD Sender: No OFD packet to send [23:49:55]Read from MH i2c: E2 [23:49:55]MH_I2C_Read... [23:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:55]Read from MH i2c: E2 FD 00 [23:49:55]MH_I2C_Read... [23:49:55]Read from MH i2c: E2 FD 00 C7 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [23:49:55]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:55]wFMCommunicate OK [23:49:55]wFMCommunicate request_size=4 [23:49:55]MH_SAM_APDU [23:49:55]CAPDU: 80 17 00 00 [23:49:55]Write to MH i2c: E2 08 00 C8 01 80 17 00 00 00 00 00 00 49 [23:49:55]Write i2c OK [23:49:55]MH_I2C_Read... [23:49:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:49:56]Read from MH i2c: E2 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: E2 DD 00 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: E2 DD 00 C8 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 31 [23:49:56]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:56]wFMCommunicate OK [23:49:56]SAM_PROTO_GetFMData done [23:49:56]requested_item fm.sale_refund.total is exist - process it [23:49:56]requested_item fm.buy.total is exist - process it [23:49:56]requested_item shift.sale.total is exist - process it [23:49:56]SAM_PROTO_GetShiftData [23:49:56]wFMCommunicate request_size=4 [23:49:56]MH_SAM_APDU [23:49:56]CAPDU: 80 13 02 00 [23:49:56]Write to MH i2c: E2 08 00 C9 01 80 13 02 00 00 00 00 00 48 [23:49:56]Write i2c OK [23:49:56]MH_I2C_Read... [23:49:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:56]Read from MH i2c: E2 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: E2 FD 00 [23:49:56]MH_I2C_Read... [23:49:56]Read from MH i2c: E2 FD 00 C9 01 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 31 [23:49:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:49:56]wFMCommunicate OK [23:49:56]wFMCommunicate request_size=4 [23:49:56]MH_SAM_APDU [23:49:56]CAPDU: 80 17 00 00 [23:49:56]Write to MH i2c: E2 08 00 CA 01 80 17 00 00 00 00 00 00 4B [23:49:56]Write i2c OK [23:49:56]MH_I2C_Read... [23:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:57]Read from MH i2c: E2 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: E2 FD 00 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: E2 FD 00 CA 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 6D [23:49:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:49:57]wFMCommunicate OK [23:49:57]wFMCommunicate request_size=4 [23:49:57]MH_SAM_APDU [23:49:57]CAPDU: 80 17 00 00 [23:49:57]Write to MH i2c: E2 08 00 CB 01 80 17 00 00 00 00 00 00 4C [23:49:57]Write i2c OK [23:49:57]MH_I2C_Read... [23:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:57]Read from MH i2c: E2 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: E2 FD 00 [23:49:57]MH_I2C_Read... [23:49:57]Read from MH i2c: E2 FD 00 CB 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 03 [23:49:57]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:49:57]wFMCommunicate OK [23:49:57]wFMCommunicate request_size=4 [23:49:57]MH_SAM_APDU [23:49:57]CAPDU: 80 17 00 00 [23:49:57]Write to MH i2c: E2 08 00 CC 01 80 17 00 00 00 00 00 00 4D [23:49:57]Write i2c OK [23:49:57]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 FD 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 FD 00 CC 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 BF [23:49:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:49:58]wFMCommunicate OK [23:49:58]wFMCommunicate request_size=4 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 17 00 00 [23:49:58]Write to MH i2c: E2 08 00 CD 01 80 17 00 00 00 00 00 00 4E [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 CB 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 CB 00 CD 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 37 [23:49:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:58]wFMCommunicate OK [23:49:58]SAM_PROTO_GetShiftData done [23:49:58]requested_item shift.sale.total_cash is exist - process it [23:49:58]requested_item shift.sale_refund.total is exist - process it [23:49:58]requested_item shift.sale_refund.total_cash is exist - process it [23:49:58]requested_item shift.buy.total is exist - process it [23:49:58]requested_item shift.buy.total_cash is exist - process it [23:49:58]produce_requested_data done [23:49:58]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:58]process_action_free get_value [23:49:58]json_value_free [23:49:58]json_value_free done [23:49:58]process_json_proto returns [23:49:58]Send response to host [23:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:49:58]free response buf [23:49:58]execute_script done [23:49:58]execute_script returns [23:49:58]free content buf [23:49:58]Sock 9.Close socket [23:49:58]Sock 9.Thread stoped [23:49:58]accept exits with 7 [23:49:58]New connection [23:49:58]New thread 3067354468 created [23:49:58]Thread 3067211108 joined [23:49:58]Waiting for new connection... [23:49:58] Sock 7.Parse request [23:49:58]Sock 7.Check first char [23:49:58]Sock 7.First char is OK [23:49:58]request: POST /json_proto HTTP/1.0 [23:49:58]Method: POST [23:49:58]URL: /json_proto [23:49:58]Method is POST - this is cgi request [23:49:58]url: /json_proto [23:49:58]query_string will be loaded in cgi processing [23:49:58]execute_cgi json_proto POST (null) [23:49:58]execute_cgi path=json_proto method=POST [23:49:58]POST find Content-Length [23:49:58]Host: 172.17.46.196:8080 [23:49:58]Content-Length: 272 [23:49:58]Content-Type: application/json [23:49:58] [23:49:58]POST finish read [23:49:58]Found Content-Length = 272 [23:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:58]execute_script... [23:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u043B\u0430\u0439\u043C\u0430\u043D\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:58]POST & json_proto [23:49:58]process_json_proto [23:49:58]json parsed OK: [23:49:58]protocol is kg_v1.0 [23:49:58]action value=close_shift [23:49:58]process_action close_shift [23:49:58]cmd_close_shift [23:49:58]MH_GetDate [23:49:58]Write to MH i2c: F0 00 00 CE 01 BE [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 09 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 09 00 CE 01 00 A6 88 C2 66 C4 85 C2 66 8E [23:49:58]GetLastDocTimeStamp 1724024943 [23:49:58]current date 1724024998 [23:49:58]FM_GetShiftState [23:49:58]SAM_PROTO_GetShiftState [23:49:58]wFMCommunicate request_size=4 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 13 01 00 [23:49:58]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 0E 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 AF 3B C1 66 00 00 00 00 90 00 6A [23:49:58]RAPDU: 09 00 01 AF 3B C1 66 00 00 00 00 90 00 [23:49:58]wFMCommunicate OK [23:49:58]SAM_PROTO_GetShiftState done [23:49:58]FM_GetShiftState done [23:49:58]KKMCreateCloseShiftDocument [23:49:58]Load OK [23:49:58]Malloc new data [23:49:58]MH_GetDate [23:49:58]Write to MH i2c: F0 00 00 D0 01 C0 [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 09 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: F0 09 00 D0 01 00 A6 88 C2 66 C4 85 C2 66 90 [23:49:58]Malloc new data [23:49:58]Malloc new data [23:49:58]Malloc new data [23:49:58]Malloc new data [23:49:58]KKMCreateCloseShiftDocument OK [23:49:58]KKMSetCloseShiftData OK [23:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=75 [23:49:58]tlvbuf is 0108BD30 [23:49:58]KKMLoadAndSignCloseShiftData [23:49:58]SAM_PROTO_ProcessDocument [23:49:58]wFMCommunicate request_size=9 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 15 01 00 04 05 00 4B 00 [23:49:58]Write to MH i2c: E2 0C 00 D1 01 80 15 01 00 04 00 05 00 4B 00 00 00 A9 [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 03 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [23:49:58]RAPDU: 90 00 [23:49:58]wFMCommunicate OK [23:49:58]wFMCommunicate request_size=23 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:49:58]Write to MH i2c: E2 1A 00 D2 01 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 48 [23:49:58]Write i2c OK [23:49:58]MH_I2C_Read... [23:49:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:58]Read from MH i2c: E2 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 03 00 [23:49:58]MH_I2C_Read... [23:49:58]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [23:49:58]RAPDU: 90 00 [23:49:58]wFMCommunicate OK [23:49:58]wFMCommunicate request_size=34 [23:49:58]MH_SAM_APDU [23:49:58]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 [23:49:59]Write to MH i2c: E2 25 00 D3 01 80 15 02 00 1D 00 FD 03 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 00 00 89 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=13 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 15 02 00 08 F4 03 04 00 A6 88 C2 66 [23:49:59]Write to MH i2c: E2 10 00 D4 01 80 15 02 00 08 00 F4 03 04 00 A6 88 C2 66 00 00 B6 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=25 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [23:49:59]Write to MH i2c: E2 1C 00 D5 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 B9 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [23:49:59]RAPDU: 90 00 [23:49:59]wFMCommunicate OK [23:49:59]wFMCommunicate request_size=4 [23:49:59]MH_SAM_APDU [23:49:59]CAPDU: 80 15 03 00 [23:49:59]Write to MH i2c: E2 08 00 D6 01 80 15 03 00 00 00 00 00 58 [23:49:59]Write i2c OK [23:49:59]MH_I2C_Read... [23:49:59]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:49:59]Read from MH i2c: E2 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 FD 00 [23:49:59]MH_I2C_Read... [23:49:59]Read from MH i2c: E2 FD 00 D6 01 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [23:49:59]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:00]wFMCommunicate OK [23:50:00]SAM_PROTO_ProcessDocument answer len = 1265 [23:50:00]SAM_PROTO_ProcessDocument remain to read = 1017 [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 17 00 00 [23:50:00]Write to MH i2c: E2 08 00 D7 01 80 17 00 00 00 00 00 00 58 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 FD 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 FD 00 D7 01 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [23:50:00]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:00]wFMCommunicate OK [23:50:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:00]SAM_PROTO_ProcessDocument remain to read = 767 [23:50:00]wFMCommunicate request_size=4 [23:50:00]MH_SAM_APDU [23:50:00]CAPDU: 80 17 00 00 [23:50:00]Write to MH i2c: E2 08 00 D8 01 80 17 00 00 00 00 00 00 59 [23:50:00]Write i2c OK [23:50:00]MH_I2C_Read... [23:50:00]OFD Sender: No OFD packet to send [23:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:00]Read from MH i2c: E2 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 FD 00 [23:50:00]MH_I2C_Read... [23:50:00]Read from MH i2c: E2 FD 00 D8 01 00 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 90 00 BB [23:50:00]RAPDU: 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 90 00 [23:50:01]wFMCommunicate OK [23:50:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:01]SAM_PROTO_ProcessDocument remain to read = 517 [23:50:01]wFMCommunicate request_size=4 [23:50:01]MH_SAM_APDU [23:50:01]CAPDU: 80 17 00 00 [23:50:01]Write to MH i2c: E2 08 00 D9 01 80 17 00 00 00 00 00 00 5A [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:01]Read from MH i2c: E2 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 FD 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 FD 00 D9 01 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [23:50:01]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:01]wFMCommunicate OK [23:50:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:01]SAM_PROTO_ProcessDocument remain to read = 267 [23:50:01]wFMCommunicate request_size=4 [23:50:01]MH_SAM_APDU [23:50:01]CAPDU: 80 17 00 00 [23:50:01]Write to MH i2c: E2 08 00 DA 01 80 17 00 00 00 00 00 00 5B [23:50:01]Write i2c OK [23:50:01]MH_I2C_Read... [23:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:01]Read from MH i2c: E2 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 FD 00 [23:50:01]MH_I2C_Read... [23:50:01]Read from MH i2c: E2 FD 00 DA 01 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 23 [23:50:01]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:02]wFMCommunicate OK [23:50:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:02]SAM_PROTO_ProcessDocument remain to read = 17 [23:50:02]wFMCommunicate request_size=4 [23:50:02]MH_SAM_APDU [23:50:02]CAPDU: 80 17 00 00 [23:50:02]Write to MH i2c: E2 08 00 DB 01 80 17 00 00 00 00 00 00 5C [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:50:02]Read from MH i2c: E2 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: E2 14 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: E2 14 00 DB 01 00 01 00 06 F7 03 00 00 35 04 06 00 54 12 55 8C D4 7A 90 00 36 [23:50:02]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 54 12 55 8C D4 7A 90 00 [23:50:02]wFMCommunicate OK [23:50:02]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:50:02]SAM_PROTO_ProcessDocument done [23:50:02]1209 (1) - 1.0 - номер версии ФФД [23:50:02]1041 (16) - 0000000000871800 - номер ФМ [23:50:02]1040 (4) - 49892 - номер ФД [23:50:02]1038 (4) - 466 - номер смены [23:50:02]1118 (4) - 157 - количество кассовых чеков за смену [23:50:02]1111 (4) - 159 - общее количество ФД за смену [23:50:02]1194 (1194) - счетчики итогов смены [23:50:02] 1134 (4) - 157 - количество чеков со всеми признаками расчетов [23:50:02] 1129 (155) - счетчики операций «приход» [23:50:02] 1135 (4) - 157 - количество чеков по признаку расчетов [23:50:02] 1201 (3) - 28885.00 - общая итоговая сумма в чеках [23:50:02] 1136 (3) - 22274.00 - итоговая сумма в чеках наличными [23:50:02] 1138 (3) - 6611.00 - итоговая сумма в чеках безналичными [23:50:02] 1024 (122) - суммы налогов [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 0% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1006 (12) - суммы НДС [23:50:02] 1010 (1) - 12% - код ставки НДС [23:50:02] 1011 (3) - 3067.28 - сумма НДС по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (11) - суммы НСП [23:50:02] 1014 (1) - 1% - код ставки НСП [23:50:02] 1015 (2) - 255.49 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 2% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 3% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 5% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1130 (141) - счетчики операций «возврат прихода» [23:50:02] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:02] 1024 (117) - суммы налогов [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 0% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 12% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 2% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 3% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 5% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1131 (141) - счетчики операций «расход» [23:50:02] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:02] 1024 (117) - суммы налогов [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 0% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 12% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 2% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 3% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 5% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1132 (141) - счетчики операций «возврат расхода» [23:50:02] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:02] 1024 (117) - суммы налогов [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 0% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1006 (9) - суммы НДС [23:50:02] 1010 (1) - 12% - код ставки НДС [23:50:02] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 2% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 3% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 5% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 0,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1007 (9) - суммы НСП [23:50:02] 1014 (1) - 1,50% - код ставки НСП [23:50:02] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:02] 1133 (588) - - счетчики коррекции - не используются [23:50:02]1077 (6) - 92437721437306 - ФПД [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1209 (04B9) [23:50:02]Malloc new data [23:50:02]Processing tag 1041 (0411) [23:50:02]Processing tag 1040 (0410) [23:50:02]Malloc new data [23:50:02]Processing tag 1038 (040E) [23:50:02]Malloc new data [23:50:02]Processing tag 1118 (045E) [23:50:02]Malloc new data [23:50:02]Processing tag 1111 (0457) [23:50:02]Malloc new data [23:50:02]Processing tag 1194 (04AA) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1134 (046E) [23:50:02]Malloc new data [23:50:02]Processing tag 1129 (0469) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1135 (046F) [23:50:02]Malloc new data [23:50:02]Processing tag 1201 (04B1) [23:50:02]Malloc new data [23:50:02]Processing tag 1136 (0470) [23:50:02]Malloc new data [23:50:02]Processing tag 1138 (0472) [23:50:02]Malloc new data [23:50:02]Processing tag 1024 (0400) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1130 (046A) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1135 (046F) [23:50:02]Malloc new data [23:50:02]Processing tag 1201 (04B1) [23:50:02]Malloc new data [23:50:02]Processing tag 1136 (0470) [23:50:02]Malloc new data [23:50:02]Processing tag 1138 (0472) [23:50:02]Malloc new data [23:50:02]Processing tag 1024 (0400) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1131 (046B) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1135 (046F) [23:50:02]Malloc new data [23:50:02]Processing tag 1201 (04B1) [23:50:02]Malloc new data [23:50:02]Processing tag 1136 (0470) [23:50:02]Malloc new data [23:50:02]Processing tag 1138 (0472) [23:50:02]Malloc new data [23:50:02]Processing tag 1024 (0400) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1132 (046C) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1135 (046F) [23:50:02]Malloc new data [23:50:02]Processing tag 1201 (04B1) [23:50:02]Malloc new data [23:50:02]Processing tag 1136 (0470) [23:50:02]Malloc new data [23:50:02]Processing tag 1138 (0472) [23:50:02]Malloc new data [23:50:02]Processing tag 1024 (0400) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1006 (03EE) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1010 (03F2) [23:50:02]Malloc new data [23:50:02]Processing tag 1011 (03F3) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:02]Malloc new data [23:50:02]SetTLVBufToDocument err=0 [23:50:02]Processing tag 1007 (03EF) [23:50:02]Load OK [23:50:02]SetTLVBufToDocument [23:50:02]Processing tag 1014 (03F6) [23:50:02]Malloc new data [23:50:02]Processing tag 1015 (03F7) [23:50:03]Malloc new data [23:50:03]SetTLVBufToDocument err=0 [23:50:03]SetTLVBufToDocument err=0 [23:50:03]SetTLVBufToDocument err=0 [23:50:03]Processing tag 1133 (046D) [23:50:03]Malloc new data [23:50:03]SetTLVBufToDocument err=0 [23:50:03]Processing tag 1077 (0435) [23:50:03]Malloc new data [23:50:03]SetTLVBufToDocument err=0 [23:50:03]Malloc new data [23:50:03]SAM_PROTO_GetFMData [23:50:03]wFMCommunicate request_size=4 [23:50:03]MH_SAM_APDU [23:50:03]CAPDU: 80 13 03 00 [23:50:03]Write to MH i2c: E2 08 00 DC 01 80 13 03 00 00 00 00 00 5C [23:50:03]Write i2c OK [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 [23:50:03]MH_I2C_Read... [23:50:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:03]Read from MH i2c: E2 FD 00 [23:50:03]MH_I2C_Read... [23:50:03]Read from MH i2c: E2 FD 00 DC 01 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 56 [23:50:03]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:50:04]wFMCommunicate OK [23:50:04]wFMCommunicate request_size=4 [23:50:04]MH_SAM_APDU [23:50:04]CAPDU: 80 17 00 00 [23:50:04]Write to MH i2c: E2 08 00 DD 01 80 17 00 00 00 00 00 00 5E [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:04]Read from MH i2c: E2 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 FD 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 FD 00 DD 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 91 [23:50:04]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:04]wFMCommunicate OK [23:50:04]wFMCommunicate request_size=4 [23:50:04]MH_SAM_APDU [23:50:04]CAPDU: 80 17 00 00 [23:50:04]Write to MH i2c: E2 08 00 DE 01 80 17 00 00 00 00 00 00 5F [23:50:04]Write i2c OK [23:50:04]MH_I2C_Read... [23:50:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:04]Read from MH i2c: E2 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 FD 00 [23:50:04]MH_I2C_Read... [23:50:04]Read from MH i2c: E2 FD 00 DE 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [23:50:05]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:05]wFMCommunicate OK [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 17 00 00 [23:50:05]Write to MH i2c: E2 08 00 DF 01 80 17 00 00 00 00 00 00 60 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:05]Read from MH i2c: E2 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 FD 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: E2 FD 00 DF 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [23:50:05]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:50:05]03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:05]wFMCommunicate OK [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 17 00 00 [23:50:05]Write to MH i2c: E2 08 00 E0 01 80 17 00 00 00 00 00 00 61 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 DD 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 DD 00 E0 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 49 [23:50:06]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:06]wFMCommunicate OK [23:50:06]SAM_PROTO_GetFMData done [23:50:06]Malloc new data [23:50:06]Malloc new data [23:50:06]Malloc new data [23:50:06]Malloc new data [23:50:06]KKMLoadAndSignCloseShiftData err=0 [23:50:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сулайманов Т. 18.08.2024 23:49 Смена: 466 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Чеков за смену: 157 ФД за смену: 159 Всего чеков: 157 ИТОГИ ПРИХОД Чеков: 157 Общий итог: 28885.00 Итого наличными: 22274.00 Итого безнал.: 6611.00 НДС 0% : 0.00 НДС 12% : 3067.28 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 22274.00 НС Приход: 10288117.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 49892 ФМ: 0000000000871800 ФПД: 92437721437306 [23:50:06]StoreToDocumentArchive [23:50:06]shift 466 fd 49892 [23:50:06]save to /storage/0466/doc_00049892 [23:50:06]save last doc name /storage/0466/doc_00049892 to /storage/kkm_last_doc_name [23:50:06]save OK [23:50:06]Clear old archive folders... [23:50:06]Remove dir /storage/0266 [23:50:06]opendir ok [23:50:06]file . [23:50:06]file .. [23:50:06]file doc_1724024950 [23:50:06]remove file /storage/0266/doc_1724024950 [23:50:06]remove dir /storage/0266 [23:50:06]NVStorageSaveData kkm_registers [23:50:06]File name is /storage/kkm_registers [23:50:06]Write 24 bytes [23:50:06]NVStorageSaveData done [23:50:06]NVStorageSaveData kkm_registers [23:50:06]File name is /storage/kkm_registers [23:50:06]Write 24 bytes [23:50:06]NVStorageSaveData done [23:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [23:50:06]tlvbuf is 010155C0 [23:50:06]SAM_PROTO_ClearQueue [23:50:06]wFMCommunicate request_size=4 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 09 00 00 [23:50:06]Write to MH i2c: E2 08 00 E1 01 80 09 00 00 00 00 00 00 54 [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [23:50:06]RAPDU: 90 00 [23:50:06]wFMCommunicate OK [23:50:06]SAM_PROTO_ClearQueue done [23:50:06]KKMCreateOFDPacket [23:50:06]OFDProtocolAddRootSTLVToBuf [23:50:06]FM_MakeSignedData [23:50:06]FM_MakeSignedData [23:50:06]SAM_PROTO_SignData [23:50:06]wFMCommunicate request_size=4 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 0D 01 02 [23:50:06]Write to MH i2c: E2 08 00 E2 01 80 0D 01 02 00 00 00 00 5C [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [23:50:06]RAPDU: 90 00 [23:50:06]wFMCommunicate OK [23:50:06]wFMCommunicate request_size=255 [23:50:06]MH_SAM_APDU [23:50:06]CAPDU: 80 0D 02 02 FA 05 00 67 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 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 A6 88 C2 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 D5 04 6E 04 04 00 9D 00 00 00 69 04 A2 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 81 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 28 AE 04 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 [23:50:06]Write to MH i2c: E2 02 01 E3 01 80 0D 02 02 FA 00 05 00 67 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 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 A6 88 C2 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 D5 04 6E 04 04 00 9D 00 00 00 69 04 A2 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 81 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 28 AE 04 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 00 0B [23:50:06]Write i2c OK [23:50:06]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]wFMCommunicate request_size=255 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 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 [23:50:07]Write to MH i2c: E2 02 01 E4 01 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 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 FC [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]wFMCommunicate request_size=255 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 02 02 FA 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 [23:50:07]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 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 00 26 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 03 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [23:50:08]RAPDU: 90 00 [23:50:08]wFMCommunicate OK [23:50:08]wFMCommunicate request_size=255 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 0D 02 02 FA 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 [23:50:08]Write to MH i2c: E2 02 01 E6 01 80 0D 02 02 FA 00 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 00 00 25 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 03 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [23:50:09]RAPDU: 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=255 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:50:09]Write to MH i2c: E2 02 01 E7 01 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 EA [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 03 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [23:50:09]RAPDU: 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=142 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 54 12 55 8C D4 7A [23:50:09]Write to MH i2c: E2 91 00 E8 01 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 54 12 55 8C D4 7A 00 00 DD [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [23:50:10]RAPDU: 90 00 [23:50:10]wFMCommunicate OK [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 0D 03 02 [23:50:10]Write to MH i2c: E2 08 00 E9 01 80 0D 03 02 00 00 00 00 65 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 0B 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 0B 00 E9 01 00 8F B6 67 E0 3A 62 88 D5 90 00 EB [23:50:10]RAPDU: 8F B6 67 E0 3A 62 88 D5 90 00 [23:50:10]wFMCommunicate OK [23:50:10]SAM_PROTO_SignData done [23:50:10]FM_MakeSignedData done [23:50:10]CreateOFDProtocolMessage [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 11 00 00 [23:50:10]Write to MH i2c: E2 08 00 EA 01 80 11 00 00 00 00 00 00 65 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 17 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 17 00 EA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B0 [23:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:50:10]wFMCommunicate OK [23:50:10]CreateOFDProtocolMessage done [23:50:10]OFDSenderStorePacket 49892 [23:50:10]StoreOFDPacket docnum=49892 [23:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 7B 05 00 00 3A 3D 73 05 53 D4 5A 05 01 00 05 00 67 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 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 A6 88 C2 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 D5 04 6E 04 04 00 9D 00 00 00 69 04 A2 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 81 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 28 AE 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 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 E4 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 54 12 55 8C D4 7A 8F B6 67 E0 3A 62 88 D5 [23:50:10]CheckFolder [23:50:10]dirname=/storage/ofd_packets [23:50:10]CheckFolder done [23:50:10]ProducePacketName [23:50:10]name=ofd_packets/00049892 [23:50:10]NVStorageSaveData ofd_packets/00049892 [23:50:10]File name is /storage/ofd_packets/00049892 [23:50:10]Write 1433 bytes [23:50:10]NVStorageSaveData done [23:50:10]OFDSenderStorePacket done [23:50:10]KKMCreateOFDPacket done [23:50:10]NVStorageSaveData kkm_last_timestamp [23:50:10]File name is /storage/kkm_last_timestamp [23:50:10]Write 4 bytes [23:50:10]NVStorageSaveData done [23:50:10]ExternCall_PrintAddStr [23:50:10]wPrintStart [23:50:10]Write to MH i2c: 01 00 00 EB 01 EC [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: 01 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: 01 07 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [23:50:10]RasterBufferAndPrint [23:50:10]line Отчет о закрытии смены [23:50:10]line ФФД: 1.0 [23:50:10]line ИНН: 02508201610067 [23:50:10]line Кассир: Сулайманов Т. [23:50:10]line 18.08.2024 23:49 [23:50:10]line Смена: 466 [23:50:10]line РНМ: 0000000000092546 [23:50:10]line ЗНМ: 0300000078 [23:50:10]line СНО: Общий режим [23:50:10]line Чеков за смену: 157 [23:50:10]line ФД за смену: 159 [23:50:10]line Всего чеков: 157 [23:50:10]line ИТОГИ ПРИХОД [23:50:10]line Чеков: 157 [23:50:10]line Общий итог: 28885.00 [23:50:10]line Итого наличными: 22274.00 [23:50:10]line Итого безнал.: 6611.00 [23:50:10]line НДС 0% : 0.00 [23:50:10]line НДС 12% : 3067.28 [23:50:10]line НСП 0% : 0.00 [23:50:10]line НСП 1,50% : 0.00 [23:50:10]line НСП 0,50% : 0.00 [23:50:10]line НСП 5% : 0.00 [23:50:10]line НСП 3% : 0.00 [23:50:10]line НСП 2% : 0.00 [23:50:10]line НСП 1% : 255.49 [23:50:10]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:50:10]line Чеков: 0 [23:50:10]line Общий итог: 0.00 [23:50:10]line Итого наличными: 0.00 [23:50:10]line Итого безнал.: 0.00 [23:50:10]line НДС 0% : 0.00 [23:50:10]line НДС 12% : 0.00 [23:50:10]line НСП 0% : 0.00 [23:50:10]line НСП 1,50% : 0.00 [23:50:10]line НСП 0,50% : 0.00 [23:50:10]line НСП 5% : 0.00 [23:50:10]line НСП 3% : 0.00 [23:50:10]line НСП 2% : 0.00 [23:50:10]line НСП 1% : 0.00 [23:50:10]line ИТОГИ РАСХОД [23:50:10]line Чеков: 0 [23:50:10]line Общий итог: 0.00 [23:50:10]line Итого наличными: 0.00 [23:50:10]line Итого безнал.: 0.00 [23:50:10]line НДС 0% : 0.00 [23:50:10]line НДС 12% : 0.00 [23:50:10]line НСП 0% : 0.00 [23:50:10]line НСП 1,50% : 0.00 [23:50:10]line НСП 0,50% : 0.00 [23:50:10]line НСП 5% : 0.00 [23:50:10]line НСП 3% : 0.00 [23:50:10]line НСП 2% : 0.00 [23:50:10]line НСП 1% : 0.00 [23:50:10]line ИТОГИ ВОЗВРАТ РАСХОДА [23:50:10]line Чеков: 0 [23:50:10]line Общий итог: 0.00 [23:50:10]line Итого наличными: 0.00 [23:50:10]line Итого безнал.: 0.00 [23:50:10]line НДС 0% : 0.00 [23:50:10]line НДС 12% : 0.00 [23:50:10]line НСП 0% : 0.00 [23:50:10]line НСП 1,50% : 0.00 [23:50:10]line НСП 0,50% : 0.00 [23:50:10]line НСП 5% : 0.00 [23:50:10]line НСП 3% : 0.00 [23:50:10]line НСП 2% : 0.00 [23:50:10]line НСП 1% : 0.00 [23:50:10]line Сумма внесений: 0.00 [23:50:10]line Сумма выплат: 0.00 [23:50:10]line Нал. в кассе: 22274.00 [23:50:10]line НС Приход: 10288117.38 [23:50:10]line НС Возвр.Прихода: 24784.00 [23:50:10]line НС Расход: 0.00 [23:50:10]line НС Возвр.Расхода: 0.00 [23:50:10]line ФД: 49892 [23:50:10]line ФМ: 0000000000871800 [23:50:10]line ФПД: 92437721437306 [23:50:10]OFD Sender: Processing packet 49892 [packets to send 21, broken 20] [23:50:10]ProducePacketName [23:50:10]name=ofd_packets/00049892 [23:50:10]OFD Sender: To server: pG, [23:50:10]CommunicateWithHost lk.salyk.kg:30040 [23:50:10]ConnectInit lk.salyk.kg [23:50:10]written 0, free lines is 4095 [23:50:10]Connected sock=10 [23: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 38 30 30 7B 05 00 00 3A 3D 73 05 53 D4 5A 05 01 00 05 00 67 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 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 A6 88 C2 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 AA 04 D5 04 6E 04 04 00 9D 00 00 00 69 04 A2 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 81 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 28 AE 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 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 Write to MH i2c: 00 01 6D 00 04 00 4C 3B 02 02 78 3D 04 [23:50:11]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 Write i2c OK [23:50:11]F7 MH_I2C_Read... [23:50:11]03 Read from MH i2c: 00 01 00 [23:50:11]EF MH_I2C_Read... [23:50:11]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 07 00 00 05 [23:50:11]F7 MH_I2C_Read... [23:50:11]03 Read from MH i2c: 00 01 00 07 EF 00 03 3B 09 02 00 00 F6 00 03 00 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 BF 00 0A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 0D 03 [23:50:11]01 RasterBufferAndPrint [23:50:11]00 line [23:50:11]00 line [23:50:11]F3 line [23:50:11]03 line [23:50:11]00 line [23:50:11]00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF written 0, free lines is 3096 [23:50:11]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 MH_Cut [23:50:11]09 Write to MH i2c: 00 D1 F6 01 03 00 01 42 00 02 01 01 F7 16 03 [23:50:11]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 Write i2c OK [23:50:11]F6 MH_I2C_Read... [23:50:11]03 Read from MH i2c: 01 D1 00 [23:50:11]03 MH_I2C_Read... [23:50:11]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 [23:50:11]F6 MH_I2C_Read... [23:50:11]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 Read from MH i2c: 03 D1 09 01 00 00 F6 42 03 02 01 00 00 15 01 [23:50:12]F7 Write to MH i2c: 03 01 00 00 00 00 EF 43 03 02 09 45 00 [23:50:12]F6 Write i2c OK [23:50:12]03 MH_I2C_Read... [23:50:12]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 54 12 55 8C D4 7A 8F B6 67 E0 3A 62 88 D5 [23: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 38 30 30 4F 00 00 00 4E 0A 47 00 64 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C2 00 00 F4 03 04 00 21 33 C2 66 B6 04 01 00 00 A7 B6 40 25 85 CA A1 02 [23:50:12]CommunicateWithHost err = 0 [23:50:12]CheckOFDResponse [23:50:12]*** Cut start [23:50:12]1017 (14) - 77093643461234 [23:50:12]*** Purtial cut [23:50:12]1041 (16) - 0000000000871800 [23:50:12]1040 (4) - 49892 [23:50:12]*** Stage 1: CUTSNS_PIN = 1 [23:50:12]1012 (4) - 18.08.2024 17:45 [23:50:12]1206 (1) - 0 [23:50:12]OFD Sender: Remove packet 49892 [23:50:12]ProducePacketName [23:50:12]name=ofd_packets/00049892 [23:50:12]NVStorageDeleteData [23:50:12]Read from MH i2c: 01 [23:50:13]MH_I2C_Read... [23:50:13]*** Stop cut motor [23:50:13]*** Cut end [23:50:13]Read from MH i2c: 01 07 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [23:50:13]process_action close_shift done [23:50:13]requested_data is exist [23:50:13]produce_requested_data [23:50:13]requested_item fd.num is exist - process it [23:50:13]SAM_PROTO_GetFieldsCounters [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 00 00 [23:50:13]Write to MH i2c: E2 08 00 44 02 80 13 00 00 00 00 00 00 C2 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 62 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 62 00 44 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_GetFieldsCounters done [23:50:13]requested_item shift.num is exist - process it [23:50:13]requested_item shift.opened is exist - process it [23:50:13]req_shift_opened [23:50:13]FM_GetShiftState [23:50:13]SAM_PROTO_GetShiftState [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 01 00 [23:50:13]Write to MH i2c: E2 08 00 45 02 80 13 01 00 00 00 00 00 C4 [23:50:13]OFD Sender: No OFD packet to send [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 0E 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 0E 00 45 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CF [23:50:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_GetShiftState done [23:50:13]FM_GetShiftState done [23:50:13]req_shift_opened done [23:50:13]requested_item shift.open_date is exist - process it [23:50:13]req_shift_open_date [23:50:13]FM_GetShiftState [23:50:13]SAM_PROTO_GetShiftState [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 01 00 [23:50:13]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 0E 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 0E 00 46 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D0 [23:50:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_GetShiftState done [23:50:13]FM_GetShiftState done [23:50:13]req_shift_open_date done [23:50:13]produce_requested_data done [23:50:13]produce_requested_data return {"fd.num":49892,"shift.num":466,"shift.opened":0,"shift.open_date":0} [23:50:13]process_action_free close_shift [23:50:13]json_value_free [23:50:13]json_value_free done [23:50:13]process_json_proto returns [23:50:13]Send response to host [23:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49892,"shift.num":466,"shift.opened":0,"shift.open_date":0}}} [23:50:13]free response buf [23:50:13]execute_script done [23:50:13]execute_script returns [23:50:13]free content buf [23:50:13]Sock 7.Close socket [23:50:13]Sock 7.Thread stoped [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:36]int [23:51:36]Write to MH i2c: 01 00 00 47 02 49 [23:51:36]*** FLAG_PRN_KEY set [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 47 02 00 08 00 00 00 FF 0F 66 [23:51:36]state=0 [23:51:36]Key pressed [23:51:36]Feed [23:51:36]Write to MH i2c: D8 00 00 48 02 21 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: D8 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: D8 01 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: D8 01 00 48 02 00 22 [23:51:36]int [23:51:36]Write to MH i2c: 01 00 00 49 02 4B [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 49 02 00 48 00 00 00 3C 00 D6 [23:51:36]state=2 [23:51:36]Key pressed [23:51:36]int [23:51:36]Write to MH i2c: 01 00 00 4A 02 4C [23:51:36]*** FLAG_PRN_KEY reset [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 F6 0F 58 [23:51:36]state=2 [23:51:36]Stop feed [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:37]accept exits with 9 [00:12:37]New connection [00:12:37]New thread 3067211108 created [00:12:37]Thread 3067354468 joined [00:12:37]Waiting for new connection... [00:12:37] Sock 9.Parse request [00:12:37]Sock 9.Check first char [00:12:37]Sock 9.First char is OK [00:12:37]request: POST /json_proto HTTP/1.0 [00:12:37]Method: POST [00:12:37]URL: /json_proto [00:12:37]Method is POST - this is cgi request [00:12:37]url: /json_proto [00:12:37]query_string will be loaded in cgi processing [00:12:37]execute_cgi json_proto POST (null) [00:12:37]execute_cgi path=json_proto method=POST [00:12:37]POST find Content-Length [00:12:37]Host: 172.17.46.196:8080 [00:12:37]Content-Length: 215 [00:12:37]Content-Type: application/json [00:12:37] [00:12:37]POST finish read [00:12:37]Found Content-Length = 215 [00:12:37]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:12:37]execute_script... [00:12:37]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:12:37]POST & json_proto [00:12:37]process_json_proto [00:12:37]json parsed OK: [00:12:37]protocol is kg_v1.0 [00:12:37]action value=get_value [00:12:37]process_action get_value [00:12:37]cmd_get_value [00:12:37]process_action get_value done [00:12:37]requested_data is exist [00:12:37]produce_requested_data [00:12:37]requested_item kkm.sn is exist - process it [00:12:37]requested_item kkm.ver is exist - process it [00:12:37]requested_item fm.sn is exist - process it [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 11 00 00 [00:12:37]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 17 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [00:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:12:37]wFMCommunicate OK [00:12:37]requested_item fd.num is exist - process it [00:12:37]SAM_PROTO_GetFieldsCounters [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 00 00 [00:12:37]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 62 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 62 00 4C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [00:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C2 00 00 0E 04 04 00 D2 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_GetFieldsCounters done [00:12:37]requested_item shift.num is exist - process it [00:12:37]requested_item shift.opened is exist - process it [00:12:37]req_shift_opened [00:12:37]FM_GetShiftState [00:12:37]SAM_PROTO_GetShiftState [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 01 00 [00:12:37]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 4D 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D7 [00:12:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_GetShiftState done [00:12:37]FM_GetShiftState done [00:12:37]req_shift_opened done [00:12:37]requested_item shift.open_date is exist - process it [00:12:37]req_shift_open_date [00:12:37]FM_GetShiftState [00:12:37]SAM_PROTO_GetShiftState [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 01 00 [00:12:37]Write to MH i2c: E2 08 00 4E 02 80 13 01 00 00 00 00 00 CD [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0E 00 4E 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D8 [00:12:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_GetShiftState done [00:12:37]FM_GetShiftState done [00:12:37]req_shift_open_date done [00:12:37]produce_requested_data done [00:12:37]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49892,"shift.num":466,"shift.opened":0,"shift.open_date":0} [00:12:37]process_action_free get_value [00:12:37]json_value_free [00:12:37]json_value_free done [00:12:37]process_json_proto returns [00:12:37]Send response to host [00:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49892,"shift.num":466,"shift.opened":0,"shift.open_date":0}}} [00:12:37]free response buf [00:12:37]execute_script done [00:12:37]execute_script returns [00:12:37]free content buf [00:12:37]Sock 9.Close socket [00:12:37]Sock 9.Thread stoped [00:12:37]accept exits with 7 [00:12:37]New connection [00:12:37]New thread 3067354468 created [00:12:37]Thread 3067211108 joined [00:12:37]Waiting for new connection... [00:12:37] Sock 7.Parse request [00:12:37]Sock 7.Check first char [00:12:37]Sock 7.First char is OK [00:12:37]request: POST /json_proto HTTP/1.0 [00:12:37]Method: POST [00:12:37]URL: /json_proto [00:12:37]Method is POST - this is cgi request [00:12:37]url: /json_proto [00:12:37]query_string will be loaded in cgi processing [00:12:37]execute_cgi json_proto POST (null) [00:12:37]execute_cgi path=json_proto method=POST [00:12:37]POST find Content-Length [00:12:37]Host: 172.17.46.196:8080 [00:12:37]Content-Length: 331 [00:12:37]Content-Type: application/json [00:12:37] [00:12:37]POST finish read [00:12:37]Found Content-Length = 331 [00:12:37]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:12:37]execute_script... [00:12:37]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:12:37]POST & json_proto [00:12:37]process_json_proto [00:12:37]json parsed OK: [00:12:37]protocol is kg_v1.0 [00:12:37]action value=get_value [00:12:37]process_action get_value [00:12:37]cmd_get_value [00:12:37]process_action get_value done [00:12:37]requested_data is exist [00:12:37]produce_requested_data [00:12:37]requested_item fm.sale.total is exist - process it [00:12:37]SAM_PROTO_GetFMData [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 13 03 00 [00:12:37]Write to MH i2c: E2 08 00 4F 02 80 13 03 00 00 00 00 00 D0 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 4F 02 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 CA [00:12:38]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 50 02 80 17 00 00 00 00 00 00 D2 [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 50 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [00:12:38]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 51 02 80 17 00 00 00 00 00 00 D3 [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 51 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:12:38]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 52 02 80 17 00 00 00 00 00 00 D4 [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:38]Read from MH i2c: E2 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 [00:12:38]MH_I2C_Read... [00:12:38]Read from MH i2c: E2 FD 00 52 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:12:38]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:38]wFMCommunicate OK [00:12:38]wFMCommunicate request_size=4 [00:12:38]MH_SAM_APDU [00:12:38]CAPDU: 80 17 00 00 [00:12:38]Write to MH i2c: E2 08 00 53 02 80 17 00 00 00 00 00 00 D5 [00:12:38]Write i2c OK [00:12:38]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 DD 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 DD 00 53 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:12:39]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetFMData done [00:12:39]requested_item fm.sale_refund.total is exist - process it [00:12:39]requested_item fm.buy.total is exist - process it [00:12:39]requested_item shift.sale.total is exist - process it [00:12:39]SAM_PROTO_GetShiftData [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 02 00 [00:12:39]Write to MH i2c: E2 08 00 54 02 80 13 02 00 00 00 00 00 D4 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]OFD Sender: No OFD packet to send [00:12:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 54 02 00 AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 BD [00:12:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9D 00 00 00 69 04 9B 00 6F 04 04 00 9D 00 00 00 B1 04 03 00 34 13 2C 70 04 03 00 C8 FC 21 72 04 03 00 6C 16 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 28 AE 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CD 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:12:39]wFMCommunicate OK [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 17 00 00 [00:12:39]Write to MH i2c: E2 08 00 55 02 80 17 00 00 00 00 00 00 D7 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 FD 00 55 02 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 F9 [00:12:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:12:39]wFMCommunicate OK [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 17 00 00 [00:12:39]Write to MH i2c: E2 08 00 56 02 80 17 00 00 00 00 00 00 D8 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 56 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 8F [00:12:40]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:12:40]wFMCommunicate OK [00:12:40]wFMCommunicate request_size=4 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 17 00 00 [00:12:40]Write to MH i2c: E2 08 00 57 02 80 17 00 00 00 00 00 00 D9 [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 FD 00 57 02 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 4B [00:12:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:12:40]wFMCommunicate OK [00:12:40]wFMCommunicate request_size=4 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 17 00 00 [00:12:40]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 CB 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 CB 00 58 02 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C3 [00:12:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:40]wFMCommunicate OK [00:12:40]SAM_PROTO_GetShiftData done [00:12:40]requested_item shift.sale.total_cash is exist - process it [00:12:40]requested_item shift.sale_refund.total is exist - process it [00:12:40]requested_item shift.sale_refund.total_cash is exist - process it [00:12:40]requested_item shift.buy.total is exist - process it [00:12:40]requested_item shift.buy.total_cash is exist - process it [00:12:40]produce_requested_data done [00:12:40]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:12:40]process_action_free get_value [00:12:40]json_value_free [00:12:40]json_value_free done [00:12:40]process_json_proto returns [00:12:40]Send response to host [00:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":28885.00,"shift.sale.total_cash":22274.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:12:40]free response buf [00:12:40]execute_script done [00:12:40]execute_script returns [00:12:40]free content buf [00:12:40]Sock 7.Close socket [00:12:40]Sock 7.Thread stoped [00:12:40]accept exits with 9 [00:12:40]New connection [00:12:40]New thread 3067211108 created [00:12:40]Thread 3067354468 joined [00:12:40]Waiting for new connection... [00:12:40] Sock 9.Parse request [00:12:40]Sock 9.Check first char [00:12:40]Sock 9.First char is OK [00:12:40]request: POST /json_proto HTTP/1.0 [00:12:40]Method: POST [00:12:40]URL: /json_proto [00:12:40]Method is POST - this is cgi request [00:12:40]url: /json_proto [00:12:40]query_string will be loaded in cgi processing [00:12:40]execute_cgi json_proto POST (null) [00:12:40]execute_cgi path=json_proto method=POST [00:12:40]POST find Content-Length [00:12:40]Host: 172.17.46.196:8080 [00:12:40]Content-Length: 261 [00:12:40]Content-Type: application/json [00:12:40] [00:12:40]POST finish read [00:12:40]Found Content-Length = 261 [00:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:40]execute_script... [00:12:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:40]POST & json_proto [00:12:40]process_json_proto [00:12:40]json parsed OK: [00:12:40]protocol is kg_v1.0 [00:12:40]action value=open_shift [00:12:40]process_action open_shift [00:12:40]cmd_open_shift [00:12:40]MH_GetDate [00:12:40]Write to MH i2c: F0 00 00 59 02 4A [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 09 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 09 00 59 02 00 F8 8D C2 66 C4 85 C2 66 71 [00:12:40]GetLastDocTimeStamp 1724024998 [00:12:40]current date 1724026360 [00:12:40]FM_GetShiftState [00:12:40]SAM_PROTO_GetShiftState [00:12:40]wFMCommunicate request_size=4 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 13 01 00 [00:12:40]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:40]Read from MH i2c: E2 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 0E 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: E2 0E 00 5A 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:12:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:40]wFMCommunicate OK [00:12:40]SAM_PROTO_GetShiftState done [00:12:40]FM_GetShiftState done [00:12:40]KKMCreateOpenShiftDocument [00:12:40]Load OK [00:12:40]Malloc new data [00:12:40]MH_GetDate [00:12:40]Write to MH i2c: F0 00 00 5B 02 4C [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 09 00 [00:12:40]MH_I2C_Read... [00:12:40]Read from MH i2c: F0 09 00 5B 02 00 F9 8D C2 66 C4 85 C2 66 74 [00:12:40]Malloc new data [00:12:40]KKMCreateOpenShiftDocument OK [00:12:40]KKMSetOpenShiftData OK [00:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=191 [00:12:40]tlvbuf is 01079E80 [00:12:40]KKMLoadAndSignOpenShiftData [00:12:40]SAM_PROTO_ProcessDocument [00:12:40]wFMCommunicate request_size=9 [00:12:40]MH_SAM_APDU [00:12:40]CAPDU: 80 15 01 00 04 02 00 BF 00 [00:12:40]Write to MH i2c: E2 0C 00 5C 02 80 15 01 00 04 00 02 00 BF 00 00 00 A6 [00:12:40]Write i2c OK [00:12:40]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=23 [00:12:41]MH_SAM_APDU [00:12:41]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:12:41]Write to MH i2c: E2 1A 00 5D 02 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 D4 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=32 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 [00:12:41]Write to MH i2c: E2 23 00 5E 02 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 00 00 09 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=78 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 [00:12:41]Write to MH i2c: E2 51 00 5F 02 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 00 00 D8 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=50 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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:12:41]Write to MH i2c: E2 35 00 60 02 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 5F [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=13 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 02 00 08 F4 03 04 00 F9 8D C2 66 [00:12:41]Write to MH i2c: E2 10 00 61 02 80 15 02 00 08 00 F4 03 04 00 F9 8D C2 66 00 00 9C [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=25 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [00:12:41]Write to MH i2c: E2 1C 00 62 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 47 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [00:12:41]RAPDU: 90 00 [00:12:41]wFMCommunicate OK [00:12:41]wFMCommunicate request_size=4 [00:12:41]MH_SAM_APDU [00:12:41]CAPDU: 80 15 03 00 [00:12:41]Write to MH i2c: E2 08 00 63 02 80 15 03 00 00 00 00 00 E6 [00:12:41]Write i2c OK [00:12:41]MH_I2C_Read... [00:12:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:41]Read from MH i2c: E2 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 38 00 [00:12:41]MH_I2C_Read... [00:12:41]Read from MH i2c: E2 38 00 63 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C2 00 00 0E 04 04 00 D3 01 00 00 35 04 06 00 68 64 F2 48 50 DF 90 00 5A [00:12:41]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C2 00 00 0E 04 04 00 D3 01 00 00 35 04 06 00 68 64 F2 48 50 DF 90 00 [00:12:41]wFMCommunicate OK [00:12:41]SAM_PROTO_ProcessDocument answer len = 51 [00:12:41]SAM_PROTO_ProcessDocument done [00:12:41]SetTLVBufToDocument [00:12:41]Processing tag 1209 (04B9) [00:12:41]Malloc new data [00:12:41]Processing tag 1041 (0411) [00:12:41]Processing tag 1040 (0410) [00:12:41]Malloc new data [00:12:41]Processing tag 1038 (040E) [00:12:41]Malloc new data [00:12:41]Processing tag 1077 (0435) [00:12:41]Malloc new data [00:12:41]SetTLVBufToDocument err=0 [00:12:41]KKMLoadAndSignOpenShiftData store KKM data [00:12:41]KKMLoadAndSignOpenShiftData err=0 [00:12:41]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Амантай у. Ч. Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 Место: АЗС № 95 "Партнер Нефть" 19.08.2024 00:12 Смена: 467 РНМ: 0000000000092546 ЗНМ: 0300000078 ФД: 49893 ФМ: 0000000000871800 ФПД: 114782770843871 [00:12:41]StoreToDocumentArchive [00:12:41]shift 467 fd 49893 [00:12:41]Create dir for shift 0467 [00:12:41]save to /storage/0467/doc_00049893 [00:12:41]save last doc name /storage/0467/doc_00049893 to /storage/kkm_last_doc_name [00:12:41]save OK [00:12:41]Clear old archive folders... [00:12:41]Remove dir /storage/0466 [00:12:41]opendir ok [00:12:41]file . [00:12:41]file .. [00:12:41]file doc_00049734 [00:12:41]remove file /storage/0466/doc_00049734 [00:12:41]file doc_00049735 [00:12:41]remove file /storage/0466/doc_00049735 [00:12:41]file doc_00049736 [00:12:41]remove file /storage/0466/doc_00049736 [00:12:41]file doc_00049737 [00:12:41]remove file /storage/0466/doc_00049737 [00:12:41]file doc_00049738 [00:12:41]remove file /storage/0466/doc_00049738 [00:12:41]file doc_00049739 [00:12:41]remove file /storage/0466/doc_00049739 [00:12:41]file doc_00049740 [00:12:41]remove file /storage/0466/doc_00049740 [00:12:41]file doc_00049741 [00:12:41]remove file /storage/0466/doc_00049741 [00:12:41]file doc_00049742 [00:12:41]remove file /storage/0466/doc_00049742 [00:12:41]file doc_00049743 [00:12:41]remove file /storage/0466/doc_00049743 [00:12:41]file doc_00049744 [00:12:41]remove file /storage/0466/doc_00049744 [00:12:41]file doc_00049745 [00:12:41]remove file /storage/0466/doc_00049745 [00:12:41]file doc_00049746 [00:12:41]remove file /storage/0466/doc_00049746 [00:12:41]file doc_00049747 [00:12:41]remove file /storage/0466/doc_00049747 [00:12:41]file doc_00049748 [00:12:41]remove file /storage/0466/doc_00049748 [00:12:41]file doc_00049749 [00:12:41]remove file /storage/0466/doc_00049749 [00:12:41]file doc_00049750 [00:12:41]remove file /storage/0466/doc_00049750 [00:12:41]file doc_00049751 [00:12:41]remove file /storage/0466/doc_00049751 [00:12:41]file doc_00049752 [00:12:41]remove file /storage/0466/doc_00049752 [00:12:41]file doc_00049753 [00:12:41]remove file /storage/0466/doc_00049753 [00:12:41]file doc_00049754 [00:12:41]remove file /storage/0466/doc_00049754 [00:12:41]file doc_00049755 [00:12:41]remove file /storage/0466/doc_00049755 [00:12:41]file doc_00049756 [00:12:41]remove file /storage/0466/doc_00049756 [00:12:41]file doc_00049757 [00:12:41]remove file /storage/0466/doc_00049757 [00:12:41]file doc_00049758 [00:12:41]remove file /storage/0466/doc_00049758 [00:12:41]file doc_00049759 [00:12:41]remove file /storage/0466/doc_00049759 [00:12:41]file doc_00049760 [00:12:41]remove file /storage/0466/doc_00049760 [00:12:41]file doc_00049761 [00:12:41]remove file /storage/0466/doc_00049761 [00:12:41]file doc_00049762 [00:12:41]remove file /storage/0466/doc_00049762 [00:12:41]file doc_00049763 [00:12:41]remove file /storage/0466/doc_00049763 [00:12:41]file doc_00049764 [00:12:41]remove file /storage/0466/doc_00049764 [00:12:41]file doc_00049765 [00:12:41]remove file /storage/0466/doc_00049765 [00:12:41]file doc_00049766 [00:12:41]remove file /storage/0466/doc_00049766 [00:12:41]file doc_00049767 [00:12:41]remove file /storage/0466/doc_00049767 [00:12:41]file doc_00049768 [00:12:41]remove file /storage/0466/doc_00049768 [00:12:41]file doc_00049769 [00:12:41]remove file /storage/0466/doc_00049769 [00:12:41]file doc_00049770 [00:12:41]remove file /storage/0466/doc_00049770 [00:12:41]file doc_00049771 [00:12:41]remove file /storage/0466/doc_00049771 [00:12:41]file doc_00049772 [00:12:41]remove file /storage/0466/doc_00049772 [00:12:41]file doc_00049773 [00:12:41]remove file /storage/0466/doc_00049773 [00:12:41]file doc_00049774 [00:12:41]remove file /storage/0466/doc_00049774 [00:12:41]file doc_00049775 [00:12:41]remove file /storage/0466/doc_00049775 [00:12:41]file doc_00049776 [00:12:41]remove file /storage/0466/doc_00049776 [00:12:41]file doc_00049777 [00:12:41]remove file /storage/0466/doc_00049777 [00:12:41]file doc_00049778 [00:12:41]remove file /storage/0466/doc_00049778 [00:12:41]file doc_00049779 [00:12:41]remove file /storage/0466/doc_00049779 [00:12:41]file doc_00049780 [00:12:41]remove file /storage/0466/doc_00049780 [00:12:41]file doc_00049781 [00:12:41]remove file /storage/0466/doc_00049781 [00:12:41]file doc_00049782 [00:12:41]remove file /storage/0466/doc_00049782 [00:12:41]file doc_00049783 [00:12:41]remove file /storage/0466/doc_00049783 [00:12:41]file doc_00049784 [00:12:41]remove file /storage/0466/doc_00049784 [00:12:41]file doc_00049785 [00:12:41]remove file /storage/0466/doc_00049785 [00:12:41]file doc_00049786 [00:12:41]remove file /storage/0466/doc_00049786 [00:12:41]file doc_00049787 [00:12:41]remove file /storage/0466/doc_00049787 [00:12:41]file doc_00049788 [00:12:41]remove file /storage/0466/doc_00049788 [00:12:41]file doc_00049789 [00:12:41]remove file /storage/0466/doc_00049789 [00:12:41]file doc_00049790 [00:12:41]remove file /storage/0466/doc_00049790 [00:12:41]file doc_00049791 [00:12:41]remove file /storage/0466/doc_00049791 [00:12:41]file doc_00049792 [00:12:41]remove file /storage/0466/doc_00049792 [00:12:41]file doc_00049793 [00:12:41]remove file /storage/0466/doc_00049793 [00:12:41]file doc_00049794 [00:12:42]remove file /storage/0466/doc_00049794 [00:12:42]file doc_00049795 [00:12:42]remove file /storage/0466/doc_00049795 [00:12:42]file doc_00049796 [00:12:42]remove file /storage/0466/doc_00049796 [00:12:42]file doc_00049797 [00:12:42]remove file /storage/0466/doc_00049797 [00:12:42]file doc_00049798 [00:12:42]remove file /storage/0466/doc_00049798 [00:12:42]file doc_00049799 [00:12:42]remove file /storage/0466/doc_00049799 [00:12:42]file doc_00049800 [00:12:42]remove file /storage/0466/doc_00049800 [00:12:42]file doc_00049801 [00:12:42]remove file /storage/0466/doc_00049801 [00:12:42]file doc_00049802 [00:12:42]remove file /storage/0466/doc_00049802 [00:12:42]file doc_00049803 [00:12:42]remove file /storage/0466/doc_00049803 [00:12:42]file doc_00049804 [00:12:42]remove file /storage/0466/doc_00049804 [00:12:42]file doc_00049805 [00:12:42]remove file /storage/0466/doc_00049805 [00:12:42]file doc_00049806 [00:12:42]remove file /storage/0466/doc_00049806 [00:12:42]file doc_00049807 [00:12:42]remove file /storage/0466/doc_00049807 [00:12:42]file doc_00049808 [00:12:42]remove file /storage/0466/doc_00049808 [00:12:42]file doc_00049809 [00:12:42]remove file /storage/0466/doc_00049809 [00:12:42]file doc_00049810 [00:12:42]remove file /storage/0466/doc_00049810 [00:12:42]file doc_00049811 [00:12:42]remove file /storage/0466/doc_00049811 [00:12:42]file doc_00049812 [00:12:42]remove file /storage/0466/doc_00049812 [00:12:42]file doc_00049813 [00:12:42]remove file /storage/0466/doc_00049813 [00:12:42]file doc_00049814 [00:12:42]remove file /storage/0466/doc_00049814 [00:12:42]file doc_00049815 [00:12:42]remove file /storage/0466/doc_00049815 [00:12:42]file doc_00049816 [00:12:42]remove file /storage/0466/doc_00049816 [00:12:42]file doc_00049817 [00:12:42]remove file /storage/0466/doc_00049817 [00:12:42]file doc_00049818 [00:12:42]remove file /storage/0466/doc_00049818 [00:12:42]file doc_00049819 [00:12:42]remove file /storage/0466/doc_00049819 [00:12:42]file doc_00049820 [00:12:42]remove file /storage/0466/doc_00049820 [00:12:42]file doc_00049821 [00:12:42]remove file /storage/0466/doc_00049821 [00:12:42]file doc_00049822 [00:12:42]remove file /storage/0466/doc_00049822 [00:12:42]file doc_00049823 [00:12:42]remove file /storage/0466/doc_00049823 [00:12:42]file doc_00049824 [00:12:42]remove file /storage/0466/doc_00049824 [00:12:42]file doc_00049825 [00:12:42]remove file /storage/0466/doc_00049825 [00:12:42]file doc_00049826 [00:12:42]remove file /storage/0466/doc_00049826 [00:12:42]file doc_00049827 [00:12:42]remove file /storage/0466/doc_00049827 [00:12:42]file doc_00049828 [00:12:42]remove file /storage/0466/doc_00049828 [00:12:42]file doc_00049829 [00:12:42]remove file /storage/0466/doc_00049829 [00:12:42]file doc_00049830 [00:12:42]remove file /storage/0466/doc_00049830 [00:12:42]file doc_00049831 [00:12:42]remove file /storage/0466/doc_00049831 [00:12:42]file doc_00049832 [00:12:42]remove file /storage/0466/doc_00049832 [00:12:42]file doc_00049833 [00:12:42]remove file /storage/0466/doc_00049833 [00:12:42]file doc_00049834 [00:12:42]remove file /storage/0466/doc_00049834 [00:12:42]file doc_00049835 [00:12:42]remove file /storage/0466/doc_00049835 [00:12:42]file doc_00049836 [00:12:42]remove file /storage/0466/doc_00049836 [00:12:42]file doc_00049837 [00:12:42]remove file /storage/0466/doc_00049837 [00:12:42]file doc_00049838 [00:12:42]remove file /storage/0466/doc_00049838 [00:12:42]file doc_00049839 [00:12:42]remove file /storage/0466/doc_00049839 [00:12:42]file doc_00049840 [00:12:42]remove file /storage/0466/doc_00049840 [00:12:42]file doc_00049841 [00:12:42]remove file /storage/0466/doc_00049841 [00:12:42]file doc_00049842 [00:12:42]remove file /storage/0466/doc_00049842 [00:12:42]file doc_00049843 [00:12:42]remove file /storage/0466/doc_00049843 [00:12:42]file doc_00049844 [00:12:42]remove file /storage/0466/doc_00049844 [00:12:42]file doc_00049845 [00:12:42]remove file /storage/0466/doc_00049845 [00:12:42]file doc_00049846 [00:12:42]remove file /storage/0466/doc_00049846 [00:12:42]file doc_00049847 [00:12:42]remove file /storage/0466/doc_00049847 [00:12:42]file doc_00049848 [00:12:42]remove file /storage/0466/doc_00049848 [00:12:42]file doc_00049849 [00:12:42]remove file /storage/0466/doc_00049849 [00:12:42]file doc_00049850 [00:12:42]remove file /storage/0466/doc_00049850 [00:12:42]file doc_00049851 [00:12:42]remove file /storage/0466/doc_00049851 [00:12:42]file doc_00049852 [00:12:42]remove file /storage/0466/doc_00049852 [00:12:42]file doc_00049853 [00:12:42]remove file /storage/0466/doc_00049853 [00:12:42]file doc_00049854 [00:12:42]remove file /storage/0466/doc_00049854 [00:12:42]file doc_00049855 [00:12:42]remove file /storage/0466/doc_00049855 [00:12:42]file doc_00049856 [00:12:42]remove file /storage/0466/doc_00049856 [00:12:42]file doc_00049857 [00:12:42]remove file /storage/0466/doc_00049857 [00:12:42]file doc_00049858 [00:12:42]remove file /storage/0466/doc_00049858 [00:12:42]file doc_00049859 [00:12:42]remove file /storage/0466/doc_00049859 [00:12:42]file doc_00049860 [00:12:42]remove file /storage/0466/doc_00049860 [00:12:42]file doc_00049861 [00:12:42]remove file /storage/0466/doc_00049861 [00:12:42]file doc_00049862 [00:12:42]remove file /storage/0466/doc_00049862 [00:12:42]file doc_00049863 [00:12:42]remove file /storage/0466/doc_00049863 [00:12:42]file doc_00049864 [00:12:42]remove file /storage/0466/doc_00049864 [00:12:42]file doc_00049865 [00:12:42]remove file /storage/0466/doc_00049865 [00:12:42]file doc_00049866 [00:12:42]remove file /storage/0466/doc_00049866 [00:12:42]file doc_00049867 [00:12:42]remove file /storage/0466/doc_00049867 [00:12:42]file doc_00049868 [00:12:42]remove file /storage/0466/doc_00049868 [00:12:42]file doc_00049869 [00:12:42]remove file /storage/0466/doc_00049869 [00:12:42]file doc_00049870 [00:12:42]remove file /storage/0466/doc_00049870 [00:12:42]file doc_00049871 [00:12:42]remove file /storage/0466/doc_00049871 [00:12:42]file doc_00049872 [00:12:42]remove file /storage/0466/doc_00049872 [00:12:42]file doc_00049873 [00:12:42]remove file /storage/0466/doc_00049873 [00:12:42]file doc_00049874 [00:12:42]remove file /storage/0466/doc_00049874 [00:12:42]file doc_00049875 [00:12:42]remove file /storage/0466/doc_00049875 [00:12:42]file doc_00049876 [00:12:42]remove file /storage/0466/doc_00049876 [00:12:42]file doc_00049877 [00:12:42]remove file /storage/0466/doc_00049877 [00:12:42]file doc_00049878 [00:12:42]remove file /storage/0466/doc_00049878 [00:12:42]file doc_00049879 [00:12:42]remove file /storage/0466/doc_00049879 [00:12:42]file doc_00049880 [00:12:42]remove file /storage/0466/doc_00049880 [00:12:42]file doc_00049881 [00:12:42]remove file /storage/0466/doc_00049881 [00:12:42]file doc_00049882 [00:12:42]remove file /storage/0466/doc_00049882 [00:12:42]file doc_00049883 [00:12:42]remove file /storage/0466/doc_00049883 [00:12:42]file doc_00049884 [00:12:42]remove file /storage/0466/doc_00049884 [00:12:42]file doc_00049885 [00:12:42]remove file /storage/0466/doc_00049885 [00:12:42]file doc_00049886 [00:12:42]remove file /storage/0466/doc_00049886 [00:12:42]file doc_00049887 [00:12:42]remove file /storage/0466/doc_00049887 [00:12:42]file doc_00049888 [00:12:42]remove file /storage/0466/doc_00049888 [00:12:42]file doc_00049889 [00:12:42]remove file /storage/0466/doc_00049889 [00:12:42]file doc_00049890 [00:12:42]remove file /storage/0466/doc_00049890 [00:12:42]file doc_00049891 [00:12:42]remove file /storage/0466/doc_00049891 [00:12:42]file doc_00049892 [00:12:42]remove file /storage/0466/doc_00049892 [00:12:42]remove dir /storage/0466 [00:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=242 [00:12:42]tlvbuf is 01033320 [00:12:42]SAM_PROTO_ClearQueue [00:12:42]wFMCommunicate request_size=4 [00:12:42]MH_SAM_APDU [00:12:42]CAPDU: 80 09 00 00 [00:12:42]Write to MH i2c: E2 08 00 64 02 80 09 00 00 00 00 00 00 D8 [00:12:42]Write i2c OK [00:12:42]MH_I2C_Read... [00:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:42]Read from MH i2c: E2 [00:12:42]MH_I2C_Read... [00:12:42]Read from MH i2c: E2 03 00 [00:12:42]MH_I2C_Read... [00:12:42]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [00:12:42]RAPDU: 90 00 [00:12:42]wFMCommunicate OK [00:12:42]SAM_PROTO_ClearQueue done [00:12:42]KKMCreateOFDPacket [00:12:42]OFDProtocolAddRootSTLVToBuf [00:12:42]FM_MakeSignedData [00:12:42]FM_MakeSignedData [00:12:42]SAM_PROTO_SignData [00:12:42]wFMCommunicate request_size=4 [00:12:42]MH_SAM_APDU [00:12:42]CAPDU: 80 0D 01 02 [00:12:42]Write to MH i2c: E2 08 00 65 02 80 0D 01 02 00 00 00 00 E0 [00:12:42]Write i2c OK [00:12:42]MH_I2C_Read... [00:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:42]Read from MH i2c: E2 [00:12:42]MH_I2C_Read... [00:12:42]Read from MH i2c: E2 03 00 [00:12:42]MH_I2C_Read... [00:12:42]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [00:12:42]RAPDU: 90 00 [00:12:42]wFMCommunicate OK [00:12:42]wFMCommunicate request_size=251 [00:12:42]MH_SAM_APDU [00:12:42]CAPDU: 80 0D 02 02 F6 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 F9 8D C2 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 68 64 F2 48 50 DF [00:12:42]Write to MH i2c: E2 FE 00 66 02 80 0D 02 02 F6 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 F9 8D C2 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 68 64 F2 48 50 DF 00 00 0B [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:43]Read from MH i2c: E2 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 03 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [00:12:43]RAPDU: 90 00 [00:12:43]wFMCommunicate OK [00:12:43]wFMCommunicate request_size=4 [00:12:43]MH_SAM_APDU [00:12:43]CAPDU: 80 0D 03 02 [00:12:43]Write to MH i2c: E2 08 00 67 02 80 0D 03 02 00 00 00 00 E4 [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:43]Read from MH i2c: E2 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 0B 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 0B 00 67 02 00 21 F8 35 B3 32 D8 77 BB 90 00 22 [00:12:43]RAPDU: 21 F8 35 B3 32 D8 77 BB 90 00 [00:12:43]wFMCommunicate OK [00:12:43]SAM_PROTO_SignData done [00:12:43]FM_MakeSignedData done [00:12:43]CreateOFDProtocolMessage [00:12:43]wFMCommunicate request_size=4 [00:12:43]MH_SAM_APDU [00:12:43]CAPDU: 80 11 00 00 [00:12:43]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:43]Read from MH i2c: E2 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 17 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2F [00:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:12:43]wFMCommunicate OK [00:12:43]CreateOFDProtocolMessage done [00:12:43]OFDSenderStorePacket 49893 [00:12:43]StoreOFDPacket docnum=49893 [00:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 06 01 00 00 38 86 FE 00 14 D8 5A 02 01 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 F9 8D C2 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 68 64 F2 48 50 DF 21 F8 35 B3 32 D8 77 BB [00:12:43]CheckFolder [00:12:43]dirname=/storage/ofd_packets [00:12:43]CheckFolder done [00:12:43]ProducePacketName [00:12:43]name=ofd_packets/00049893 [00:12:43]NVStorageSaveData ofd_packets/00049893 [00:12:43]File name is /storage/ofd_packets/00049893 [00:12:43]Write 292 bytes [00:12:43]NVStorageSaveData done [00:12:43]OFDSenderStorePacket done [00:12:43]KKMCreateOFDPacket done [00:12:43]NVStorageSaveData kkm_last_timestamp [00:12:43]File name is /storage/kkm_last_timestamp [00:12:43]Write 4 bytes [00:12:43]NVStorageSaveData done [00:12:43]ExternCall_PrintAddStr [00:12:43]wPrintStart [00:12:43]Write to MH i2c: 01 00 00 69 02 6B [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 07 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [00:12:43]RasterBufferAndPrint [00:12:43]line Отчет об открытии смены [00:12:43]line ФФД: 1.0 [00:12:43]line ИНН: 02508201610067 [00:12:43]line Кассир: Амантай у. Ч. [00:12:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:12:43]line Место: АЗС № 95 "Партнер Нефть" [00:12:43]line 19.08.2024 00:12 [00:12:43]line Смена: 467 [00:12:43]line РНМ: 0000000000092546 [00:12:43]line ЗНМ: 0300000078 [00:12:43]line ФД: 49893 [00:12:43]line ФМ: 0000000000871800 [00:12:43]line ФПД: 114782770843871 [00:12:43]written 0, free lines is 4095 [00:12:43]OFD Sender: Processing packet 49893 [packets to send 21, broken 20] [00:12:43]ProducePacketName [00:12:43]name=ofd_packets/00049893 [00:12:43]OFD Sender: To server: pG, [00:12:43]CommunicateWithHost lk.salyk.kg:30040 [00:12:43]ConnectInit lk.salyk.kg [00:12:43]Connected sock=10 [00:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 06 01 00 00 38 86 FE 00 14 D8 5A 02 01 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 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 F9 8D C2 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 Write to MH i2c: 31 01 38 00 30 00 30 7B 35 02 04 7D 06 [00:12:43]00 68 64 F2 48 50 DF 21 F8 35 B3 32 D8 77 BB [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 07 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 F4 0E 86 [00:12:43]RasterBufferAndPrint [00:12:43]line [00:12:43]line [00:12:43]line [00:12:43]line [00:12:43]line [00:12:43]written 0, free lines is 3848 [00:12:43]MH_Cut [00:12:43]Write to MH i2c: D1 01 00 82 02 01 56 [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: D1 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: D1 01 00 [00:12:43]MH_I2C_Read... [00:12:43]Read from MH i2c: D1 01 00 82 02 00 55 [00:12:43]Write to MH i2c: 01 00 00 83 02 85 [00:12:43]Write i2c OK [00:12:43]MH_I2C_Read... [00:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 A6 47 00 C5 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 38 30 30 10 04 04 00 E5 C2 00 00 F4 03 04 00 68 38 C2 66 B6 04 01 00 00 B9 13 1D EB 06 2A C6 A1 [00:12:44]CommunicateWithHost err = 0 [00:12:44]CheckOFDResponse [00:12:44]1017 (14) - 77093643461234 [00:12:44]1041 (16) - 0000000000871800 [00:12:44]1040 (4) - 49893 [00:12:44]1012 (4) - 18.08.2024 18:07 [00:12:44]1206 (1) - 0 [00:12:44]OFD Sender: Remove packet 49893 [00:12:44]ProducePacketName [00:12:44]name=ofd_packets/00049893 [00:12:44]NVStorageDeleteData [00:12:44]*** Cut start [00:12:44]*** Purtial cut [00:12:44]*** CUTSNS_PIN = 0 [00:12:44]*** Stage 1: CUTSNS_PIN = 1 [00:12:44]OFD Sender: No OFD packet to send [00:12:46]Read from MH i2c: *** Stop cut motor [00:12:46]*** Cut end [00:12:46]01 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: 01 07 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [00:12:46]process_action open_shift done [00:12:46]requested_data is exist [00:12:46]produce_requested_data [00:12:46]requested_item fd.num is exist - process it [00:12:46]SAM_PROTO_GetFieldsCounters [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 00 00 [00:12:46]Write to MH i2c: E2 08 00 84 02 80 13 00 00 00 00 00 00 02 [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 62 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 62 00 84 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [00:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]SAM_PROTO_GetFieldsCounters done [00:12:46]requested_item shift.num is exist - process it [00:12:46]requested_item shift.opened is exist - process it [00:12:46]req_shift_opened [00:12:46]FM_GetShiftState [00:12:46]SAM_PROTO_GetShiftState [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 01 00 [00:12:46]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BE [00:12:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]SAM_PROTO_GetShiftState done [00:12:46]FM_GetShiftState done [00:12:46]req_shift_opened done [00:12:46]requested_item shift.open_date is exist - process it [00:12:46]req_shift_open_date [00:12:46]req_shift_open_date done [00:12:46]produce_requested_data done [00:12:46]produce_requested_data return {"fd.num":49893,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [00:12:46]process_action_free open_shift [00:12:46]json_value_free [00:12:46]json_value_free done [00:12:46]process_json_proto returns [00:12:46]Send response to host [00:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49893,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [00:12:46]free response buf [00:12:46]execute_script done [00:12:46]execute_script returns [00:12:46]free content buf [00:12:46]Sock 9.Close socket [00:12:46]Sock 9.Thread stoped [00:12:46]accept exits with 7 [00:12:46]New connection [00:12:46]New thread 3067354468 created [00:12:46]Thread 3067211108 joined [00:12:46]Waiting for new connection... [00:12:46] Sock 7.Parse request [00:12:46]Sock 7.Check first char [00:12:46]Sock 7.First char is OK [00:12:46]request: POST /json_proto HTTP/1.0 [00:12:46]Method: POST [00:12:46]URL: /json_proto [00:12:46]Method is POST - this is cgi request [00:12:46]url: /json_proto [00:12:46]query_string will be loaded in cgi processing [00:12:46]execute_cgi json_proto POST (null) [00:12:46]execute_cgi path=json_proto method=POST [00:12:46]POST find Content-Length [00:12:46]Host: 172.17.46.196:8080 [00:12:46]Content-Length: 331 [00:12:46]Content-Type: application/json [00:12:46] [00:12:46]POST finish read [00:12:46]Found Content-Length = 331 [00:12:46]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:12:46]execute_script... [00:12:46]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:12:46]POST & json_proto [00:12:46]process_json_proto [00:12:46]json parsed OK: [00:12:46]protocol is kg_v1.0 [00:12:46]action value=get_value [00:12:46]process_action get_value [00:12:46]cmd_get_value [00:12:46]process_action get_value done [00:12:46]requested_data is exist [00:12:46]produce_requested_data [00:12:46]requested_item fm.sale.total is exist - process it [00:12:46]SAM_PROTO_GetFMData [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 13 03 00 [00:12:46]Write to MH i2c: E2 08 00 86 02 80 13 03 00 00 00 00 00 07 [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 86 02 00 C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 01 [00:12:46]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 3F BF 00 00 69 04 A0 00 6F 04 04 00 2C BF 00 00 B1 04 04 00 DA 6B 52 3D 70 04 04 00 4E 7B BB 34 72 04 04 00 8C F0 96 08 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 71 0D 83 06 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 3E D7 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 87 02 80 17 00 00 00 00 00 00 09 [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 87 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [00:12:47]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 88 02 80 17 00 00 00 00 00 00 0A [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 88 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [00:12:47]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 89 02 80 17 00 00 00 00 00 00 0B [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 89 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:12:48]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 8A 02 80 17 00 00 00 00 00 00 0C [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 DD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 DD 00 8A 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [00:12:48]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:48]wFMCommunicate OK [00:12:48]SAM_PROTO_GetFMData done [00:12:48]requested_item fm.sale_refund.total is exist - process it [00:12:48]requested_item fm.buy.total is exist - process it [00:12:48]requested_item shift.sale.total is exist - process it [00:12:48]SAM_PROTO_GetShiftData [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 13 02 00 [00:12:48]Write to MH i2c: E2 08 00 8B 02 80 13 02 00 00 00 00 00 0B [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 8B 02 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 7E [00:12:49]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:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 17 00 00 [00:12:49]Write to MH i2c: E2 08 00 8C 02 80 17 00 00 00 00 00 00 0E [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 8C 02 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 16 [00:12:49]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:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 17 00 00 [00:12:49]Write to MH i2c: E2 08 00 8D 02 80 17 00 00 00 00 00 00 0F [00:12:49]OFD Sender: No OFD packet to send [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 FD 00 8D 02 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 E1 [00:12:49]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:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 17 00 00 [00:12:50]Write to MH i2c: E2 08 00 8E 02 80 17 00 00 00 00 00 00 10 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 FD 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 FD 00 8E 02 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 82 [00:12:50]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 17 00 00 [00:12:50]Write to MH i2c: E2 08 00 8F 02 80 17 00 00 00 00 00 00 11 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 BD 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 BD 00 8F 02 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 F7 [00:12:50]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:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_GetShiftData done [00:12:50]requested_item shift.sale.total_cash is exist - process it [00:12:50]requested_item shift.sale_refund.total is exist - process it [00:12:50]requested_item shift.sale_refund.total_cash is exist - process it [00:12:50]requested_item shift.buy.total is exist - process it [00:12:50]requested_item shift.buy.total_cash is exist - process it [00:12:50]produce_requested_data done [00:12:50]produce_requested_data return {"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.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:12:50]process_action_free get_value [00:12:50]json_value_free [00:12:50]json_value_free done [00:12:50]process_json_proto returns [00:12:50]Send response to host [00:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10288117.38,"fm.sale_refund.total":24784.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:12:50]free response buf [00:12:50]execute_script done [00:12:50]execute_script returns [00:12:50]free content buf [00:12:50]Sock 7.Close socket [00:12:50]Sock 7.Thread stoped [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]accept exits with 9 [00:25:55]New connection [00:25:55]New thread 3067211108 created [00:25:55]Thread 3067354468 joined [00:25:55]Waiting for new connection... [00:25:55] Sock 9.Parse request [00:25:55]Sock 9.Check first char [00:25:55]Sock 9.First char is OK [00:25:55]request: POST /json_proto HTTP/1.0 [00:25:55]Method: POST [00:25:55]URL: /json_proto [00:25:55]Method is POST - this is cgi request [00:25:55]url: /json_proto [00:25:55]query_string will be loaded in cgi processing [00:25:55]execute_cgi json_proto POST (null) [00:25:55]execute_cgi path=json_proto method=POST [00:25:55]POST find Content-Length [00:25:55]Host: 172.17.46.196:8080 [00:25:55]Content-Length: 962 [00:25:55]Content-Type: application/json [00:25:55] [00:25:55]POST finish read [00:25:55]Found Content-Length = 962 [00:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190068", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:55]execute_script... [00:25: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 : (3)190068", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:55]POST & json_proto [00:25:55]process_json_proto [00:25:55]json parsed OK: [00:25:55]protocol is kg_v1.0 [00:25:55]action value=close_receipt [00:25:55]process_action close_receipt [00:25:55]cmd_close_receipt [00:25:55]MH_GetDate [00:25:55]Write to MH i2c: F0 00 00 90 02 81 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: F0 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: F0 09 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: F0 09 00 90 02 00 13 91 C2 66 C4 85 C2 66 C7 [00:25:55]GetLastDocTimeStamp 1724026361 [00:25:55]current date 1724027155 [00:25:55]FM_GetShiftState [00:25:55]SAM_PROTO_GetShiftState [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 01 00 [00:25:55]Write to MH i2c: E2 08 00 91 02 80 13 01 00 00 00 00 00 10 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]OFD Sender: No OFD packet to send [00:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 0E 00 91 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CA [00:25:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetShiftState done [00:25:55]FM_GetShiftState done [00:25:55]opened in 1724026361 [00:25:55]opened+sec_in_day 1724112761 [00:25:55]quantity*price = 6500 [00:25:55]sum+1 = 6501 [00:25:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.14 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 1 19.08.2024 00:25 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49894 ФПД: 422168417296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T002555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49894&fm=422168417296&tin=02508201610067®Number=0000000000092546&sum=13000 0 [00:25:56]StoreToDocumentArchive [00:25:56]shift 467 fd 49894 [00:25:56]save to /storage/0467/doc_00049894 [00:25:56]save last doc name /storage/0467/doc_00049894 to /storage/kkm_last_doc_name [00:25:56]save OK [00:25:56]Clear old archive folders... [00:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=400 [00:25:56]tlvbuf is 00F6ECD0 [00:25:56]SAM_PROTO_ClearQueue [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 09 00 00 [00:25:56]Write to MH i2c: E2 08 00 9E 02 80 09 00 00 00 00 00 00 12 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [00:25:56]RAPDU: 90 00 [00:25:56]wFMCommunicate OK [00:25:56]SAM_PROTO_ClearQueue done [00:25:56]KKMCreateOFDPacket [00:25:56]OFDProtocolAddRootSTLVToBuf [00:25:56]FM_MakeSignedData [00:25:56]FM_MakeSignedData [00:25:56]SAM_PROTO_SignData [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 0D 01 02 [00:25:56]Write to MH i2c: E2 08 00 9F 02 80 0D 01 02 00 00 00 00 1A [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [00:25:56]RAPDU: 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=255 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB [00:25:56]Write to MH i2c: E2 02 01 A0 02 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 00 00 DD [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [00:25:56]RAPDU: 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=159 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 13 91 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C2 00 00 35 04 06 00 00 62 4B 32 D4 10 [00:25:56]Write to MH i2c: E2 A2 00 A1 02 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 13 91 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C2 00 00 35 04 06 00 00 62 4B 32 D4 10 00 00 7D [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 03 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 03 00 A1 02 00 90 00 17 [00:25:57]RAPDU: 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 0D 03 02 [00:25:57]Write to MH i2c: E2 08 00 A2 02 80 0D 03 02 00 00 00 00 1F [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 0B 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 0B 00 A2 02 00 ED DD 1B 3B 58 68 31 B7 90 00 E8 [00:25:57]RAPDU: ED DD 1B 3B 58 68 31 B7 90 00 [00:25:57]wFMCommunicate OK [00:25:57]SAM_PROTO_SignData done [00:25:57]FM_MakeSignedData done [00:25:57]CreateOFDProtocolMessage [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 11 00 00 [00:25:57]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 17 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [00:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:25:57]wFMCommunicate OK [00:25:57]CreateOFDProtocolMessage done [00:25:57]OFDSenderStorePacket 49894 [00:25:57]StoreOFDPacket docnum=49894 [00:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A4 01 00 00 29 A9 9C 01 D1 B7 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 13 91 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C2 00 00 35 04 06 00 00 62 4B 32 D4 10 ED DD 1B 3B 58 68 31 B7 [00:25:57]CheckFolder [00:25:57]dirname=/storage/ofd_packets [00:25:57]CheckFolder done [00:25:57]ProducePacketName [00:25:57]name=ofd_packets/00049894 [00:25:57]NVStorageSaveData ofd_packets/00049894 [00:25:57]File name is /storage/ofd_packets/00049894 [00:25:57]Write 450 bytes [00:25:57]NVStorageSaveData done [00:25:57]OFDSenderStorePacket done [00:25:57]KKMCreateOFDPacket done [00:25:57]NVStorageSaveData kkm_last_timestamp [00:25:57]File name is /storage/kkm_last_timestamp [00:25:57]Write 4 bytes [00:25:57]NVStorageSaveData done [00:25:57]ExternCall_PrintAddStr [00:25:57]wPrintStart [00:25:57]Write to MH i2c: 01 00 00 A4 02 A6 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [00:25:57]RasterBufferAndPrint [00:25:57]line Счет N : (3)190068 [00:25:57]line ИНН: 02508201610067 [00:25:57]line Контрольно-Кассовый Чек [00:25:57]line ПРОДАЖА [00:25:57]line Товар: 4700040114137 [00:25:57]line Султан чай 1л. зел лимон [00:25:57]line 1.000 * 65.00 [00:25:57]line = 65.00 [00:25:57]line НДС 12% НСП 1% [00:25:57]line > о реализуемом товаре [00:25:57]line Товар: 4700040114120 [00:25:57]line Султан чай 1л. чер персик [00:25:57]line 1.000 * 65.00 [00:25:57]line = 65.00 [00:25:57]line НДС 12% НСП 1% [00:25:57]line > о реализуемом товаре [00:25:57]line ИТОГО: 130.00 [00:25:57]line НСП 1% : 1.14 [00:25:57]line НДС 12% : 13.80 [00:25:57]line Наличными: 130.00 [00:25:57]line Безнал.: 0.00 [00:25:57]line Место: АЗС № 95 "Партнер Нефть" [00:25:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:25:57]line СНО: Общий режим [00:25:57]line Чек 1 19.08.2024 00:25 [00:25:57]line Смена: 467 ФФД: 1.0 [00:25:57]line ЗНМ: 0300000078 [00:25:57]line РНМ: 0000000000092546 [00:25:57]line Версия ККМ: 001 [00:25:57]line ФМ: 0000000000871800 [00:25:57]line ФД: 49894 [00:25:57]line ФПД: 422168417296 [00:25:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T002555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49894&fm=422168417296&tin=02508201610067®Number=0000000000092546&sum=13000 [00:25:57]line 0 [00:25:57]OFD Sender: Processing packet 49894 [packets to send 21, broken 20] [00:25:57]ProducePacketName [00:25:57]name=ofd_packets/00049894 [00:25:57]OFD Sender: To server: pG, [00:25:57]CommunicateWithHost lk.salyk.kg:30040 [00:25:57]ConnectInit lk.salyk.kg [00:25:57]written 0, free lines is 4095 [00:25:57]Connected sock=10 [00:25:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A4 01 00 00 29 A9 9C 01 D1 B7 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 13 91 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C2 00 00 35 04 06 00 00 62 4B 32 D4 10 ED DD 1B 3B 58 68 31 B7 [00:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 A5 47 00 69 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C2 00 00 F4 03 04 00 82 3B C2 66 B6 04 01 00 00 24 0F C1 E9 D2 60 59 B9 [00:25:57]CommunicateWithHost err = 0 [00:25:57]CheckOFDResponse [00:25:57]1017 (14) - 77093643461234 [00:25:57]1041 (16) - 0000000000871800 [00:25:57]1040 (4) - 49894 [00:25:57]1012 (4) - 18.08.2024 18:20 [00:25:57]1206 (1) - 0 [00:25:57]OFD Sender: Remove packet 49894 [00:25:57]ProducePacketName [00:25:57]name=ofd_packets/00049894 [00:25:57]NVStorageDeleteData [00:25:57]Write to MH i2c: 01 00 00 D2 02 D4 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 89 0C 70 [00:25:57]RasterBufferAndPrint [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]line [00:25:57]written 0, free lines is 3214 [00:25:57]MH_Cut [00:25:57]Write to MH i2c: D1 01 00 D9 02 01 AD [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 01 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: D1 01 00 D9 02 00 AC [00:25:57]Write to MH i2c: 01 00 00 DA 02 DC [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:58]OFD Sender: No OFD packet to send [00:25:58]*** Cut start [00:25:58]*** Purtial cut [00:25:58]*** Stage 1: CUTSNS_PIN = 1 [00:25:59]Read from MH i2c: 01 [00:25:59]MH_I2C_Read... [00:25:59]*** Stop cut motor [00:25:59]*** Cut end [00:25:59]Read from MH i2c: 01 07 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 FF 0F F1 [00:25:59]process_action close_receipt done [00:25:59]requested_data is exist [00:25:59]produce_requested_data [00:25:59]requested_item fm.sn is exist - process it [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 11 00 00 [00:25:59]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 17 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [00:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:25:59]wFMCommunicate OK [00:25:59]requested_item fd.num is exist - process it [00:25:59]SAM_PROTO_GetFieldsCounters [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 13 00 00 [00:25:59]Write to MH i2c: E2 08 00 DC 02 80 13 00 00 00 00 00 00 5A [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 62 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 62 00 DC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:25:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:59]wFMCommunicate OK [00:25:59]SAM_PROTO_GetFieldsCounters done [00:25:59]requested_item shift.num is exist - process it [00:25:59]requested_item shift.opened is exist - process it [00:25:59]req_shift_opened [00:25:59]FM_GetShiftState [00:25:59]SAM_PROTO_GetShiftState [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 13 01 00 [00:25:59]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 0E 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 16 [00:25:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [00:25:59]wFMCommunicate OK [00:25:59]SAM_PROTO_GetShiftState done [00:25:59]FM_GetShiftState done [00:25:59]req_shift_opened done [00:25:59]requested_item shift.open_date is exist - process it [00:25:59]req_shift_open_date [00:25:59]req_shift_open_date done [00:25:59]produce_requested_data done [00:25:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49894,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [00:25:59]process_action_free close_receipt [00:25:59]json_value_free [00:25:59]json_value_free done [00:25:59]process_json_proto returns [00:25:59]Send response to host [00:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49894,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [00:25:59]free response buf [00:25:59]execute_script done [00:25:59]execute_script returns [00:25:59]free content buf [00:25:59]Sock 9.Close socket [00:25:59]Sock 9.Thread stoped [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:13]int [00:44:13]Write to MH i2c: 01 00 00 DE 02 E0 [00:44:13]*** FLAG_PRN_KEY set [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 DE 02 00 08 00 00 00 FF 0F FD [00:44:13]state=0 [00:44:13]Key pressed [00:44:13]Feed [00:44:13]Write to MH i2c: D8 00 00 DF 02 B8 [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D8 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D8 01 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D8 01 00 DF 02 00 B9 [00:44:13]int [00:44:13]Write to MH i2c: 01 00 00 E0 02 E2 [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 E0 02 00 48 00 00 00 3C 00 6D [00:44:13]state=2 [00:44:13]Key pressed [00:44:13]int [00:44:13]Write to MH i2c: 01 00 00 E1 02 E3 [00:44:13]*** FLAG_PRN_KEY reset [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 F5 0F EE [00:44:13]state=2 [00:44:13]Stop feed [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]accept exits with 7 [01:15:55]New connection [01:15:55]New thread 3067354468 created [01:15:55]Thread 3067211108 joined [01:15:55]Waiting for new connection... [01:15:55] Sock 7.Parse request [01:15:55]Sock 7.Check first char [01:15:55]Sock 7.First char is OK [01:15:55]request: POST /json_proto HTTP/1.0 [01:15:55]Method: POST [01:15:55]URL: /json_proto [01:15:55]Method is POST - this is cgi request [01:15:55]url: /json_proto [01:15:55]query_string will be loaded in cgi processing [01:15:55]execute_cgi json_proto POST (null) [01:15:55]execute_cgi path=json_proto method=POST [01:15:55]POST find Content-Length [01:15:55]Host: 172.17.46.196:8080 [01:15:55]Content-Length: 621 [01:15:55]Content-Type: application/json [01:15:55] [01:15:55]POST finish read [01:15:55]Found Content-Length = 621 [01:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190069", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:55]execute_script... [01:15: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 : (3)190069", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:55]POST & json_proto [01:15:55]process_json_proto [01:15:55]json parsed OK: [01:15:55]protocol is kg_v1.0 [01:15:55]action value=close_receipt [01:15:55]process_action close_receipt [01:15:55]cmd_close_receipt [01:15:55]MH_GetDate [01:15:55]Write to MH i2c: F0 00 00 E2 02 D3 [01:15:55]Write i2c OK [01:15:55]MH_I2C_Read... [01:15:55]Read from MH i2c: F0 [01:15:55]MH_I2C_Read... [01:15:55]Read from MH i2c: F0 09 00 [01:15:55]MH_I2C_Read... [01:15:55]Read from MH i2c: F0 09 00 E2 02 00 CB 9C C2 66 C4 85 C2 66 DC [01:15:55]GetLastDocTimeStamp 1724027155 [01:15:55]current date 1724030155 [01:15:55]FM_GetShiftState [01:15:55]SAM_PROTO_GetShiftState [01:15:55]wFMCommunicate request_size=4 [01:15:55]MH_SAM_APDU [01:15:55]CAPDU: 80 13 01 00 [01:15:55]Write to MH i2c: E2 08 00 E3 02 80 13 01 00 00 00 00 00 62 [01:15:55]Write i2c OK [01:15:55]MH_I2C_Read... [01:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:55]Read from MH i2c: E2 [01:15:55]MH_I2C_Read... [01:15:55]Read from MH i2c: E2 0E 00 [01:15:55]MH_I2C_Read... [01:15:55]Read from MH i2c: E2 0E 00 E3 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1C [01:15:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:15:55]wFMCommunicate OK [01:15:55]SAM_PROTO_GetShiftState done [01:15:55]FM_GetShiftState done [01:15:55]opened in 1724026361 [01:15:55]opened+sec_in_day 1724112761 [01:15:55]quantity*price = 14000 [01:15:55]sum+1 = 14001 [01:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 2 19.08.2024 01:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49895 ФПД: 71964057593011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49895&fm=71964057593011&tin=02508201610067®Number=0000000000092546&sum=14000 0 [01:15:56]StoreToDocumentArchive [01:15:56]shift 467 fd 49895 [01:15:56]save to /storage/0467/doc_00049895 [01:15:56]save last doc name /storage/0467/doc_00049895 to /storage/kkm_last_doc_name [01:15:56]save OK [01:15:56]Clear old archive folders... [01:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:15:56]tlvbuf is 00F5FD10 [01:15:56]SAM_PROTO_ClearQueue [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 09 00 00 [01:15:56]Write to MH i2c: E2 08 00 F0 02 80 09 00 00 00 00 00 00 64 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 F0 02 00 90 00 66 [01:15:56]RAPDU: 90 00 [01:15:56]wFMCommunicate OK [01:15:56]SAM_PROTO_ClearQueue done [01:15:56]KKMCreateOFDPacket [01:15:56]OFDProtocolAddRootSTLVToBuf [01:15:56]FM_MakeSignedData [01:15:56]FM_MakeSignedData [01:15:56]SAM_PROTO_SignData [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 0D 01 02 [01:15:56]Write to MH i2c: E2 08 00 F1 02 80 0D 01 02 00 00 00 00 6C [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [01:15:56]RAPDU: 90 00 [01:15:56]wFMCommunicate OK [01:15:56]wFMCommunicate request_size=255 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CB 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [01:15:56]Write to MH i2c: E2 02 01 F2 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CB 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 C7 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [01:15:56]RAPDU: 90 00 [01:15:56]wFMCommunicate OK [01:15:56]wFMCommunicate request_size=32 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C2 00 00 35 04 06 00 41 73 70 16 E4 B3 [01:15:56]Write to MH i2c: E2 23 00 F3 02 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C2 00 00 35 04 06 00 41 73 70 16 E4 B3 00 00 3E [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [01:15:56]RAPDU: 90 00 [01:15:56]wFMCommunicate OK [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 0D 03 02 [01:15:56]Write to MH i2c: E2 08 00 F4 02 80 0D 03 02 00 00 00 00 71 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 0B 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 0B 00 F4 02 00 E8 F9 E5 D0 E1 C0 66 83 90 00 92 [01:15:56]RAPDU: E8 F9 E5 D0 E1 C0 66 83 90 00 [01:15:56]wFMCommunicate OK [01:15:56]SAM_PROTO_SignData done [01:15:56]FM_MakeSignedData done [01:15:56]CreateOFDProtocolMessage [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 11 00 00 [01:15:56]Write to MH i2c: E2 08 00 F5 02 80 11 00 00 00 00 00 00 71 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 17 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 17 00 F5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BC [01:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:15:56]wFMCommunicate OK [01:15:56]CreateOFDProtocolMessage done [01:15:56]OFDSenderStorePacket 49895 [01:15:56]StoreOFDPacket docnum=49895 [01:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E8 92 1D 01 FE 13 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CB 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C2 00 00 35 04 06 00 41 73 70 16 E4 B3 E8 F9 E5 D0 E1 C0 66 83 [01:15:56]CheckFolder [01:15:56]dirname=/storage/ofd_packets [01:15:56]CheckFolder done [01:15:56]ProducePacketName [01:15:56]name=ofd_packets/00049895 [01:15:56]NVStorageSaveData ofd_packets/00049895 [01:15:56]File name is /storage/ofd_packets/00049895 [01:15:56]Write 323 bytes [01:15:56]NVStorageSaveData done [01:15:56]OFDSenderStorePacket done [01:15:56]KKMCreateOFDPacket done [01:15:56]NVStorageSaveData kkm_last_timestamp [01:15:56]File name is /storage/kkm_last_timestamp [01:15:56]Write 4 bytes [01:15:56]NVStorageSaveData done [01:15:56]ExternCall_PrintAddStr [01:15:56]wPrintStart [01:15:56]Write to MH i2c: 01 00 00 F6 02 F8 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: 01 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: 01 07 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 FF 0F 0D [01:15:56]RasterBufferAndPrint [01:15:56]line Счет N : (3)190069 [01:15:56]line ИНН: 02508201610067 [01:15:56]line Контрольно-Кассовый Чек [01:15:56]line ПРОДАЖА [01:15:56]line Товар: 48743570 [01:15:56]line Сигареты Winston XStyle Blue [01:15:56]line 1.000 * 140.00 [01:15:56]line = 140.00 [01:15:56]line НДС 12% НСП 1% [01:15:56]line > о реализуемом товаре [01:15:56]line ИТОГО: 140.00 [01:15:56]line НСП 1% : 1.24 [01:15:56]line НДС 12% : 14.87 [01:15:56]line Наличными: 140.00 [01:15:56]line Безнал.: 0.00 [01:15:56]line Место: АЗС № 95 "Партнер Нефть" [01:15:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:15:56]line СНО: Общий режим [01:15:56]line Чек 2 19.08.2024 01:15 [01:15:56]line Смена: 467 ФФД: 1.0 [01:15:56]line ЗНМ: 0300000078 [01:15:56]line РНМ: 0000000000092546 [01:15:56]line Версия ККМ: 001 [01:15:56]line ФМ: 0000000000871800 [01:15:56]line ФД: 49895 [01:15:56]line ФПД: 71964057593011 [01:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49895&fm=71964057593011&tin=02508201610067®Number=0000000000092546&sum=14000 [01:15:57]OFD Sender: Processing packet 49895 [packets to send 21, broken 20] [01:15:57]ProducePacketName [01:15:57]name=ofd_packets/00049895 [01:15:57]OFD Sender: To server: pG, [01:15:57]CommunicateWithHost lk.salyk.kg:30040 [01:15:57]ConnectInit lk.salyk.kg [01:15:57]line 0 [01:15:57]written 0, free lines is 4095 [01:15:57]Connected sock=10 [01:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E8 92 1D 01 FE 13 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CB 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C2 00 00 35 04 06 00 41 73 70 16 E4 B3 E8 F9 E5 D0 E1 C0 66 83 [01:15:57]Write to MH i2c: 01 00 00 1E 03 21 [01:15:57]Write i2c OK [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 07 00 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 D7 0C 0B [01:15:57]RasterBufferAndPrint [01:15:57]line [01:15:57]line [01:15:57]line [01:15:57]line [01:15:57]line [01:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 EA 47 00 C6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C2 00 00 F4 03 04 00 3A 47 C2 66 B6 04 01 00 00 BA D1 64 49 35 81 54 42 [01:15:57]CommunicateWithHost err = 0 [01:15:57]CheckOFDResponse [01:15:57]1017 (14) - 77093643461234 [01:15:57]1041 (16) - 0000000000871800 [01:15:57]1040 (4) - 49895 [01:15:57]1012 (4) - 18.08.2024 19:10 [01:15:57]1206 (1) - 0 [01:15:57]OFD Sender: Remove packet 49895 [01:15:57]ProducePacketName [01:15:57]name=ofd_packets/00049895 [01:15:57]NVStorageDeleteData [01:15:57]written 0, free lines is 3292 [01:15:57]MH_Cut [01:15:57]Write to MH i2c: D1 01 00 25 03 01 FA [01:15:57]Write i2c OK [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: D1 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: D1 01 00 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: D1 01 00 25 03 00 F9 [01:15:57]Write to MH i2c: 01 00 00 26 03 29 [01:15:57]Write i2c OK [01:15:57]MH_I2C_Read... [01:15:58]OFD Sender: No OFD packet to send [01:15:58]*** Cut start [01:15:58]*** Purtial cut [01:15:58]*** CUTSNS_PIN = 0 [01:15:58]*** Stage 1: CUTSNS_PIN = 1 [01:16:00]Read from MH i2c: 01 [01:16:00]MH_I2C_Read... [01:16:00]*** Stop cut motor [01:16:00]*** Cut end [01:16:00]Read from MH i2c: 01 07 00 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [01:16:00]process_action close_receipt done [01:16:00]requested_data is exist [01:16:00]produce_requested_data [01:16:00]requested_item fm.sn is exist - process it [01:16:00]wFMCommunicate request_size=4 [01:16:00]MH_SAM_APDU [01:16:00]CAPDU: 80 11 00 00 [01:16:00]Write to MH i2c: E2 08 00 27 03 80 11 00 00 00 00 00 00 A4 [01:16:00]Write i2c OK [01:16:00]MH_I2C_Read... [01:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:00]Read from MH i2c: E2 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 17 00 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 17 00 27 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [01:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:16:00]wFMCommunicate OK [01:16:00]requested_item fd.num is exist - process it [01:16:00]SAM_PROTO_GetFieldsCounters [01:16:00]wFMCommunicate request_size=4 [01:16:00]MH_SAM_APDU [01:16:00]CAPDU: 80 13 00 00 [01:16:00]Write to MH i2c: E2 08 00 28 03 80 13 00 00 00 00 00 00 A7 [01:16:00]Write i2c OK [01:16:00]MH_I2C_Read... [01:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:00]Read from MH i2c: E2 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 62 00 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 62 00 28 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [01:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:16:00]wFMCommunicate OK [01:16:00]SAM_PROTO_GetFieldsCounters done [01:16:00]requested_item shift.num is exist - process it [01:16:00]requested_item shift.opened is exist - process it [01:16:00]req_shift_opened [01:16:00]FM_GetShiftState [01:16:00]SAM_PROTO_GetShiftState [01:16:00]wFMCommunicate request_size=4 [01:16:00]MH_SAM_APDU [01:16:00]CAPDU: 80 13 01 00 [01:16:00]Write to MH i2c: E2 08 00 29 03 80 13 01 00 00 00 00 00 A9 [01:16:00]Write i2c OK [01:16:00]MH_I2C_Read... [01:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:00]Read from MH i2c: E2 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 0E 00 [01:16:00]MH_I2C_Read... [01:16:00]Read from MH i2c: E2 0E 00 29 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 63 [01:16:00]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:16:00]wFMCommunicate OK [01:16:00]SAM_PROTO_GetShiftState done [01:16:00]FM_GetShiftState done [01:16:00]req_shift_opened done [01:16:00]requested_item shift.open_date is exist - process it [01:16:00]req_shift_open_date [01:16:00]req_shift_open_date done [01:16:00]produce_requested_data done [01:16:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49895,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:16:00]process_action_free close_receipt [01:16:00]json_value_free [01:16:00]json_value_free done [01:16:00]process_json_proto returns [01:16:00]Send response to host [01:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49895,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:16:00]free response buf [01:16:00]execute_script done [01:16:00]execute_script returns [01:16:00]free content buf [01:16:00]Sock 7.Close socket [01:16:00]Sock 7.Thread stoped [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:20]accept exits with 9 [01:16:20]New connection [01:16:20]New thread 3067211108 created [01:16:20]Thread 3067354468 joined [01:16:20]Waiting for new connection... [01:16:20] Sock 9.Parse request [01:16:20]Sock 9.Check first char [01:16:20]Sock 9.First char is OK [01:16:20]request: POST /json_proto HTTP/1.0 [01:16:20]Method: POST [01:16:20]URL: /json_proto [01:16:20]Method is POST - this is cgi request [01:16:20]url: /json_proto [01:16:20]query_string will be loaded in cgi processing [01:16:20]execute_cgi json_proto POST (null) [01:16:20]execute_cgi path=json_proto method=POST [01:16:20]POST find Content-Length [01:16:20]Host: 172.17.46.196:8080 [01:16:20]Content-Length: 934 [01:16:20]Content-Type: application/json [01:16:20] [01:16:20]POST finish read [01:16:20]Found Content-Length = 934 [01:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190070", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:20]execute_script... [01:16:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190070", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:20]POST & json_proto [01:16:20]process_json_proto [01:16:20]json parsed OK: [01:16:20]protocol is kg_v1.0 [01:16:20]action value=close_receipt [01:16:20]process_action close_receipt [01:16:20]cmd_close_receipt [01:16:20]MH_GetDate [01:16:20]Write to MH i2c: F0 00 00 2A 03 1C [01:16:20]Write i2c OK [01:16:20]MH_I2C_Read... [01:16:20]Read from MH i2c: F0 [01:16:20]MH_I2C_Read... [01:16:20]Read from MH i2c: F0 09 00 [01:16:20]MH_I2C_Read... [01:16:20]Read from MH i2c: F0 09 00 2A 03 00 E4 9C C2 66 C4 85 C2 66 3E [01:16:20]GetLastDocTimeStamp 1724030155 [01:16:20]current date 1724030180 [01:16:20]FM_GetShiftState [01:16:20]SAM_PROTO_GetShiftState [01:16:20]wFMCommunicate request_size=4 [01:16:20]MH_SAM_APDU [01:16:20]CAPDU: 80 13 01 00 [01:16:20]Write to MH i2c: E2 08 00 2B 03 80 13 01 00 00 00 00 00 AB [01:16:20]Write i2c OK [01:16:20]MH_I2C_Read... [01:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:20]Read from MH i2c: E2 [01:16:20]MH_I2C_Read... [01:16:20]Read from MH i2c: E2 0E 00 [01:16:20]MH_I2C_Read... [01:16:20]Read from MH i2c: E2 0E 00 2B 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 65 [01:16:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:16:20]wFMCommunicate OK [01:16:20]SAM_PROTO_GetShiftState done [01:16:20]FM_GetShiftState done [01:16:20]opened in 1724026361 [01:16:20]opened+sec_in_day 1724112761 [01:16:20]quantity*price = 13000 [01:16:20]sum+1 = 13001 [01:16:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 3 19.08.2024 01:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49896 ФПД: 57739976856991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011620&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49896&fm=57739976856991&tin=02508201610067®Number=0000000000092546&sum=26000 0 [01:16:21]StoreToDocumentArchive [01:16:21]shift 467 fd 49896 [01:16:21]save to /storage/0467/doc_00049896 [01:16:21]save last doc name /storage/0467/doc_00049896 to /storage/kkm_last_doc_name [01:16:21]save OK [01:16:21]Clear old archive folders... [01:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=396 [01:16:21]tlvbuf is 00F69E10 [01:16:21]SAM_PROTO_ClearQueue [01:16:21]wFMCommunicate request_size=4 [01:16:21]MH_SAM_APDU [01:16:21]CAPDU: 80 09 00 00 [01:16:21]Write to MH i2c: E2 08 00 38 03 80 09 00 00 00 00 00 00 AD [01:16:21]Write i2c OK [01:16:21]MH_I2C_Read... [01:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:21]Read from MH i2c: E2 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 38 03 00 90 00 AF [01:16:21]RAPDU: 90 00 [01:16:21]wFMCommunicate OK [01:16:21]SAM_PROTO_ClearQueue done [01:16:21]KKMCreateOFDPacket [01:16:21]OFDProtocolAddRootSTLVToBuf [01:16:21]FM_MakeSignedData [01:16:21]FM_MakeSignedData [01:16:21]SAM_PROTO_SignData [01:16:21]wFMCommunicate request_size=4 [01:16:21]MH_SAM_APDU [01:16:21]CAPDU: 80 0D 01 02 [01:16:21]Write to MH i2c: E2 08 00 39 03 80 0D 01 02 00 00 00 00 B5 [01:16:21]Write i2c OK [01:16:21]MH_I2C_Read... [01:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:21]Read from MH i2c: E2 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [01:16:21]RAPDU: 90 00 [01:16:21]wFMCommunicate OK [01:16:21]wFMCommunicate request_size=255 [01:16:21]MH_SAM_APDU [01:16:21]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF [01:16:21]Write to MH i2c: E2 02 01 3A 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 00 00 0D [01:16:21]Write i2c OK [01:16:21]MH_I2C_Read... [01:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:21]Read from MH i2c: E2 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 [01:16:21]MH_I2C_Read... [01:16:21]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [01:16:21]RAPDU: 90 00 [01:16:21]wFMCommunicate OK [01:16:21]wFMCommunicate request_size=155 [01:16:21]MH_SAM_APDU [01:16:21]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E4 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C2 00 00 35 04 06 00 34 83 A2 CF 55 9F [01:16:21]Write to MH i2c: E2 9E 00 3B 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E4 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C2 00 00 35 04 06 00 34 83 A2 CF 55 9F 00 00 09 [01:16:21]Write i2c OK [01:16:21]MH_I2C_Read... [01:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:22]Read from MH i2c: E2 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 03 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [01:16:22]RAPDU: 90 00 [01:16:22]wFMCommunicate OK [01:16:22]wFMCommunicate request_size=4 [01:16:22]MH_SAM_APDU [01:16:22]CAPDU: 80 0D 03 02 [01:16:22]Write to MH i2c: E2 08 00 3C 03 80 0D 03 02 00 00 00 00 BA [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:22]Read from MH i2c: E2 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 0B 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 0B 00 3C 03 00 4B D8 F3 7E 5F 8E 8D F3 90 00 BC [01:16:22]RAPDU: 4B D8 F3 7E 5F 8E 8D F3 90 00 [01:16:22]wFMCommunicate OK [01:16:22]SAM_PROTO_SignData done [01:16:22]FM_MakeSignedData done [01:16:22]CreateOFDProtocolMessage [01:16:22]wFMCommunicate request_size=4 [01:16:22]MH_SAM_APDU [01:16:22]CAPDU: 80 11 00 00 [01:16:22]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:22]Read from MH i2c: E2 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 17 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 05 [01:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:16:22]wFMCommunicate OK [01:16:22]CreateOFDProtocolMessage done [01:16:22]OFDSenderStorePacket 49896 [01:16:22]StoreOFDPacket docnum=49896 [01:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 22 87 98 01 40 72 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E4 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C2 00 00 35 04 06 00 34 83 A2 CF 55 9F 4B D8 F3 7E 5F 8E 8D F3 [01:16:22]CheckFolder [01:16:22]dirname=/storage/ofd_packets [01:16:22]CheckFolder done [01:16:22]ProducePacketName [01:16:22]name=ofd_packets/00049896 [01:16:22]NVStorageSaveData ofd_packets/00049896 [01:16:22]File name is /storage/ofd_packets/00049896 [01:16:22]Write 446 bytes [01:16:22]NVStorageSaveData done [01:16:22]OFDSenderStorePacket done [01:16:22]KKMCreateOFDPacket done [01:16:22]NVStorageSaveData kkm_last_timestamp [01:16:22]File name is /storage/kkm_last_timestamp [01:16:22]Write 4 bytes [01:16:22]NVStorageSaveData done [01:16:22]ExternCall_PrintAddStr [01:16:22]wPrintStart [01:16:22]Write to MH i2c: 01 00 00 3E 03 41 [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 [01:16:22]MH_I2C_Read... [01:16:22]OFD Sender: Processing packet 49896 [packets to send 21, broken 20] [01:16:22]ProducePacketName [01:16:22]name=ofd_packets/00049896 [01:16:22]OFD Sender: To server: pG, [01:16:22]CommunicateWithHost lk.salyk.kg:30040 [01:16:22]ConnectInit lk.salyk.kg [01:16:22]Read from MH i2c: 01 07 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 FF 0F 56 [01:16:22]RasterBufferAndPrint [01:16:22]line Счет N : (3)190070 [01:16:22]line ИНН: 02508201610067 [01:16:22]line Контрольно-Кассовый Чек [01:16:22]line ПРОДАЖА [01:16:22]line Товар: 4630007400662 [01:16:22]line Семечки ДЖИНН 140г синий [01:16:22]line 1.000 * 130.00 [01:16:22]line = 130.00 [01:16:22]line НДС 12% НСП 1% [01:16:22]line > о реализуемом товаре [01:16:22]line Товар: 2000036220012 [01:16:22]line Кофе Капучино XL(GABB TRADE) [01:16:22]line 1.000 * 130.00 [01:16:22]line = 130.00 [01:16:22]line НДС 12% НСП 1% [01:16:22]line > о реализуемом товаре [01:16:22]line ИТОГО: 260.00 [01:16:22]line НСП 1% : 2.30 [01:16:22]line НДС 12% : 27.60 [01:16:22]line Наличными: 260.00 [01:16:22]line Безнал.: 0.00 [01:16:22]line Место: АЗС № 95 "Партнер Нефть" [01:16:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:16:22]line СНО: Общий режим [01:16:22]line Чек 3 19.08.2024 01:16 [01:16:22]line Смена: 467 ФФД: 1.0 [01:16:22]line ЗНМ: 0300000078 [01:16:22]line РНМ: 0000000000092546 [01:16:22]line Версия ККМ: 001 [01:16:22]line ФМ: 0000000000871800 [01:16:22]line ФД: 49896 [01:16:22]line ФПД: 57739976856991 [01:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011620&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49896&fm=57739976856991&tin=02508201610067®Number=0000000000092546&sum=26000 [01:16:22]line 0 [01:16:22]written 0, free lines is 4095 [01:16:22]Connected sock=10 [01:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 22 87 98 01 40 72 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E4 9C C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C2 00 00 35 04 06 00 34 83 A2 CF 55 9F 4B D8 F3 7E 5F 8E 8D F3 [01:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 81 A5 47 00 8E 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 38 30 30 10 04 04 00 E8 C2 00 00 F4 03 04 00 53 47 C2 66 B6 04 01 00 00 AB C8 E1 88 90 79 5E 24 [01:16:22]CommunicateWithHost err = 0 [01:16:22]CheckOFDResponse [01:16:22]1017 (14) - 77093643461234 [01:16:22]1041 (16) - 0000000000871800 [01:16:22]1040 (4) - 49896 [01:16:22]1012 (4) - 18.08.2024 19:11 [01:16:22]1206 (1) - 0 [01:16:22]OFD Sender: Remove packet 49896 [01:16:22]ProducePacketName [01:16:22]name=ofd_packets/00049896 [01:16:22]NVStorageDeleteData [01:16:22]Write to MH i2c: 01 00 00 6D 03 70 [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 07 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 77 0C FA [01:16:22]RasterBufferAndPrint [01:16:22]line [01:16:22]line [01:16:22]line [01:16:22]line [01:16:22]line [01:16:22]written 0, free lines is 3197 [01:16:22]MH_Cut [01:16:22]Write to MH i2c: D1 01 00 74 03 01 49 [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: D1 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: D1 01 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: D1 01 00 74 03 00 48 [01:16:22]Write to MH i2c: 01 00 00 75 03 78 [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:23]OFD Sender: No OFD packet to send [01:16:23]*** Cut start [01:16:23]*** Purtial cut [01:16:23]*** Stage 1: CUTSNS_PIN = 1 [01:16:24]Read from MH i2c: 01 [01:16:24]MH_I2C_Read... [01:16:24]*** Stop cut motor [01:16:24]*** Cut end [01:16:24]Read from MH i2c: 01 07 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 FF 0F 8D [01:16:24]process_action close_receipt done [01:16:24]requested_data is exist [01:16:24]produce_requested_data [01:16:24]requested_item fm.sn is exist - process it [01:16:24]wFMCommunicate request_size=4 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 11 00 00 [01:16:24]Write to MH i2c: E2 08 00 76 03 80 11 00 00 00 00 00 00 F3 [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:24]Read from MH i2c: E2 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 17 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 17 00 76 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [01:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:16:24]wFMCommunicate OK [01:16:24]requested_item fd.num is exist - process it [01:16:24]SAM_PROTO_GetFieldsCounters [01:16:24]wFMCommunicate request_size=4 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 13 00 00 [01:16:24]Write to MH i2c: E2 08 00 77 03 80 13 00 00 00 00 00 00 F6 [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:24]Read from MH i2c: E2 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 62 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 62 00 77 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [01:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:16:24]wFMCommunicate OK [01:16:24]SAM_PROTO_GetFieldsCounters done [01:16:24]requested_item shift.num is exist - process it [01:16:24]requested_item shift.opened is exist - process it [01:16:24]req_shift_opened [01:16:24]FM_GetShiftState [01:16:24]SAM_PROTO_GetShiftState [01:16:24]wFMCommunicate request_size=4 [01:16:24]MH_SAM_APDU [01:16:24]CAPDU: 80 13 01 00 [01:16:24]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [01:16:24]Write i2c OK [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 [01:16:24]MH_I2C_Read... [01:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:24]Read from MH i2c: E2 0E 00 [01:16:24]MH_I2C_Read... [01:16:24]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B2 [01:16:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:16:24]wFMCommunicate OK [01:16:24]SAM_PROTO_GetShiftState done [01:16:24]FM_GetShiftState done [01:16:24]req_shift_opened done [01:16:24]requested_item shift.open_date is exist - process it [01:16:24]req_shift_open_date [01:16:24]req_shift_open_date done [01:16:24]produce_requested_data done [01:16:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49896,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:16:24]process_action_free close_receipt [01:16:24]json_value_free [01:16:24]json_value_free done [01:16:24]process_json_proto returns [01:16:24]Send response to host [01:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49896,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:16:24]free response buf [01:16:24]execute_script done [01:16:24]execute_script returns [01:16:24]free content buf [01:16:24]Sock 9.Close socket [01:16:24]Sock 9.Thread stoped [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:44]accept exits with 7 [01:17:44]New connection [01:17:44]New thread 3067354468 created [01:17:44]Thread 3067211108 joined [01:17:44]Waiting for new connection... [01:17:44] Sock 7.Parse request [01:17:44]Sock 7.Check first char [01:17:44]Sock 7.First char is OK [01:17:44]request: POST /json_proto HTTP/1.0 [01:17:44]Method: POST [01:17:44]URL: /json_proto [01:17:44]Method is POST - this is cgi request [01:17:44]url: /json_proto [01:17:44]query_string will be loaded in cgi processing [01:17:44]execute_cgi json_proto POST (null) [01:17:44]execute_cgi path=json_proto method=POST [01:17:44]POST find Content-Length [01:17:44]Host: 172.17.46.196:8080 [01:17:44]Content-Length: 644 [01:17:44]Content-Type: application/json [01:17:44] [01:17:44]POST finish read [01:17:44]Found Content-Length = 644 [01:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190071", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:44]execute_script... [01:17: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 : (3)190071", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:44]POST & json_proto [01:17:44]process_json_proto [01:17:44]json parsed OK: [01:17:44]protocol is kg_v1.0 [01:17:44]action value=close_receipt [01:17:44]process_action close_receipt [01:17:44]cmd_close_receipt [01:17:44]MH_GetDate [01:17:44]Write to MH i2c: F0 00 00 79 03 6B [01:17:44]Write i2c OK [01:17:44]MH_I2C_Read... [01:17:44]Read from MH i2c: F0 [01:17:44]MH_I2C_Read... [01:17:44]Read from MH i2c: F0 09 00 [01:17:44]MH_I2C_Read... [01:17:44]Read from MH i2c: F0 09 00 79 03 00 38 9D C2 66 C4 85 C2 66 E2 [01:17:44]GetLastDocTimeStamp 1724030180 [01:17:44]current date 1724030264 [01:17:44]FM_GetShiftState [01:17:44]SAM_PROTO_GetShiftState [01:17:44]wFMCommunicate request_size=4 [01:17:44]MH_SAM_APDU [01:17:44]CAPDU: 80 13 01 00 [01:17:44]Write to MH i2c: E2 08 00 7A 03 80 13 01 00 00 00 00 00 FA [01:17:44]Write i2c OK [01:17:44]MH_I2C_Read... [01:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:44]Read from MH i2c: E2 [01:17:44]MH_I2C_Read... [01:17:44]Read from MH i2c: E2 0E 00 [01:17:44]MH_I2C_Read... [01:17:44]Read from MH i2c: E2 0E 00 7A 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B4 [01:17:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:17:44]wFMCommunicate OK [01:17:44]SAM_PROTO_GetShiftState done [01:17:44]FM_GetShiftState done [01:17:44]opened in 1724026361 [01:17:44]opened+sec_in_day 1724112761 [01:17:44]quantity*price = 4200 [01:17:44]sum+1 = 4201 [01:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 4 19.08.2024 01:17 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49897 ФПД: 104602678010811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49897&fm=104602678010811&tin=02508201610067®Number=0000000000092546&sum=4200 0 [01:17:45]StoreToDocumentArchive [01:17:45]shift 467 fd 49897 [01:17:45]save to /storage/0467/doc_00049897 [01:17:45]save last doc name /storage/0467/doc_00049897 to /storage/kkm_last_doc_name [01:17:45]save OK [01:17:45]Clear old archive folders... [01:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:17:45]tlvbuf is 00F65100 [01:17:45]SAM_PROTO_ClearQueue [01:17:45]wFMCommunicate request_size=4 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 09 00 00 [01:17:45]Write to MH i2c: E2 08 00 87 03 80 09 00 00 00 00 00 00 FC [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [01:17:45]RAPDU: 90 00 [01:17:45]wFMCommunicate OK [01:17:45]SAM_PROTO_ClearQueue done [01:17:45]KKMCreateOFDPacket [01:17:45]OFDProtocolAddRootSTLVToBuf [01:17:45]FM_MakeSignedData [01:17:45]FM_MakeSignedData [01:17:45]SAM_PROTO_SignData [01:17:45]wFMCommunicate request_size=4 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 0D 01 02 [01:17:45]Write to MH i2c: E2 08 00 88 03 80 0D 01 02 00 00 00 00 04 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [01:17:45]RAPDU: 90 00 [01:17:45]wFMCommunicate OK [01:17:45]wFMCommunicate request_size=255 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [01:17:45]Write to MH i2c: E2 02 01 89 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 52 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [01:17:45]RAPDU: 90 00 [01:17:45]wFMCommunicate OK [01:17:45]wFMCommunicate request_size=34 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C2 00 00 35 04 06 00 5F 22 B5 77 23 BB [01:17:45]Write to MH i2c: E2 25 00 8A 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C2 00 00 35 04 06 00 5F 22 B5 77 23 BB 00 00 F6 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [01:17:45]RAPDU: 90 00 [01:17:45]wFMCommunicate OK [01:17:45]wFMCommunicate request_size=4 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 0D 03 02 [01:17:45]Write to MH i2c: E2 08 00 8B 03 80 0D 03 02 00 00 00 00 09 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 0B 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 0B 00 8B 03 00 13 D0 08 E9 DE B3 62 3A 90 00 0B [01:17:45]RAPDU: 13 D0 08 E9 DE B3 62 3A 90 00 [01:17:45]wFMCommunicate OK [01:17:45]SAM_PROTO_SignData done [01:17:45]FM_MakeSignedData done [01:17:45]CreateOFDProtocolMessage [01:17:45]wFMCommunicate request_size=4 [01:17:45]MH_SAM_APDU [01:17:45]CAPDU: 80 11 00 00 [01:17:45]Write to MH i2c: E2 08 00 8C 03 80 11 00 00 00 00 00 00 09 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:45]Read from MH i2c: E2 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 17 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: E2 17 00 8C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [01:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:17:45]wFMCommunicate OK [01:17:45]CreateOFDProtocolMessage done [01:17:45]OFDSenderStorePacket 49897 [01:17:45]StoreOFDPacket docnum=49897 [01:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 AA C0 1F 01 4D 54 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C2 00 00 35 04 06 00 5F 22 B5 77 23 BB 13 D0 08 E9 DE B3 62 3A [01:17:45]CheckFolder [01:17:45]dirname=/storage/ofd_packets [01:17:45]CheckFolder done [01:17:45]ProducePacketName [01:17:45]name=ofd_packets/00049897 [01:17:45]NVStorageSaveData ofd_packets/00049897 [01:17:45]File name is /storage/ofd_packets/00049897 [01:17:45]Write 325 bytes [01:17:45]NVStorageSaveData done [01:17:45]OFDSenderStorePacket done [01:17:45]KKMCreateOFDPacket done [01:17:45]NVStorageSaveData kkm_last_timestamp [01:17:45]File name is /storage/kkm_last_timestamp [01:17:45]Write 4 bytes [01:17:45]NVStorageSaveData done [01:17:45]ExternCall_PrintAddStr [01:17:45]wPrintStart [01:17:45]Write to MH i2c: 01 00 00 8D 03 90 [01:17:45]Write i2c OK [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: 01 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: 01 07 00 [01:17:45]MH_I2C_Read... [01:17:45]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [01:17:45]RasterBufferAndPrint [01:17:45]line Счет N : (3)190071 [01:17:45]line ИНН: 02508201610067 [01:17:45]line Контрольно-Кассовый Чек [01:17:45]line ПРОДАЖА [01:17:45]line Товар: 5449000005489 [01:17:45]line Вода Бонаква 1л б/г [01:17:45]line 1.000 * 42.00 [01:17:45]line = 42.00 [01:17:45]line НДС 12% НСП 1% [01:17:45]line > о реализуемом товаре [01:17:45]line ИТОГО: 42.00 [01:17:45]line НСП 1% : 0.37 [01:17:45]line НДС 12% : 4.46 [01:17:45]line Наличными: 42.00 [01:17:45]line Безнал.: 0.00 [01:17:45]line Место: АЗС № 95 "Партнер Нефть" [01:17:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:17:45]line СНО: Общий режим [01:17:45]line Чек 4 19.08.2024 01:17 [01:17:45]line Смена: 467 ФФД: 1.0 [01:17:45]line ЗНМ: 0300000078 [01:17:45]line РНМ: 0000000000092546 [01:17:45]line Версия ККМ: 001 [01:17:45]line ФМ: 0000000000871800 [01:17:45]line ФД: 49897 [01:17:45]line ФПД: 104602678010811 [01:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49897&fm=104602678010811&tin=02508201610067®Number=0000000000092546&sum=4200 [01:17:46]OFD Sender: Processing packet 49897 [packets to send 21, broken 20] [01:17:46]ProducePacketName [01:17:46]name=ofd_packets/00049897 [01:17:46]OFD Sender: To server: pG, [01:17:46]CommunicateWithHost lk.salyk.kg:30040 [01:17:46]ConnectInit lk.salyk.kg [01:17:46]line 0 [01:17:46]written 0, free lines is 4095 [01:17:46]Connected sock=10 [01:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 AA C0 1F 01 4D 54 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C2 00 00 35 04 06 00 5F 22 B5 77 23 BB 13 D0 08 E9 DE B3 62 3A [01:17:46]Write to MH i2c: 01 00 00 B5 03 B8 [01:17:46]Write i2c OK [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: 01 [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: 01 07 00 [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 E5 0C B0 [01:17:46]RasterBufferAndPrint [01:17:46]line [01:17:46]line [01:17:46]line [01:17:46]line [01:17:46]line [01:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 41 8E 47 00 78 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C2 00 00 F4 03 04 00 A7 47 C2 66 B6 04 01 00 00 5E D6 B9 77 A7 8B 53 33 [01:17:46]CommunicateWithHost err = 0 [01:17:46]CheckOFDResponse [01:17:46]1017 (14) - 77093643461234 [01:17:46]1041 (16) - 0000000000871800 [01:17:46]1040 (4) - 49897 [01:17:46]1012 (4) - 18.08.2024 19:12 [01:17:46]1206 (1) - 0 [01:17:46]OFD Sender: Remove packet 49897 [01:17:46]ProducePacketName [01:17:46]name=ofd_packets/00049897 [01:17:46]NVStorageDeleteData [01:17:46]written 0, free lines is 3309 [01:17:46]MH_Cut [01:17:46]Write to MH i2c: D1 01 00 BC 03 01 91 [01:17:46]Write i2c OK [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: D1 [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: D1 01 00 [01:17:46]MH_I2C_Read... [01:17:46]Read from MH i2c: D1 01 00 BC 03 00 90 [01:17:46]Write to MH i2c: 01 00 00 BD 03 C0 [01:17:46]Write i2c OK [01:17:46]MH_I2C_Read... [01:17:47]OFD Sender: No OFD packet to send [01:17:47]*** Cut start [01:17:47]*** Purtial cut [01:17:47]*** CUTSNS_PIN = 0 [01:17:47]*** Stage 1: CUTSNS_PIN = 1 [01:17:49]Read from MH i2c: 01 [01:17:49]MH_I2C_Read... [01:17:49]*** Stop cut motor [01:17:49]*** Cut end [01:17:49]Read from MH i2c: 01 07 00 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [01:17:49]process_action close_receipt done [01:17:49]requested_data is exist [01:17:49]produce_requested_data [01:17:49]requested_item fm.sn is exist - process it [01:17:49]wFMCommunicate request_size=4 [01:17:49]MH_SAM_APDU [01:17:49]CAPDU: 80 11 00 00 [01:17:49]Write to MH i2c: E2 08 00 BE 03 80 11 00 00 00 00 00 00 3B [01:17:49]Write i2c OK [01:17:49]MH_I2C_Read... [01:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:49]Read from MH i2c: E2 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 17 00 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 17 00 BE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [01:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:17:49]wFMCommunicate OK [01:17:49]requested_item fd.num is exist - process it [01:17:49]SAM_PROTO_GetFieldsCounters [01:17:49]wFMCommunicate request_size=4 [01:17:49]MH_SAM_APDU [01:17:49]CAPDU: 80 13 00 00 [01:17:49]Write to MH i2c: E2 08 00 BF 03 80 13 00 00 00 00 00 00 3E [01:17:49]Write i2c OK [01:17:49]MH_I2C_Read... [01:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:49]Read from MH i2c: E2 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 62 00 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 62 00 BF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [01:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:49]wFMCommunicate OK [01:17:49]SAM_PROTO_GetFieldsCounters done [01:17:49]requested_item shift.num is exist - process it [01:17:49]requested_item shift.opened is exist - process it [01:17:49]req_shift_opened [01:17:49]FM_GetShiftState [01:17:49]SAM_PROTO_GetShiftState [01:17:49]wFMCommunicate request_size=4 [01:17:49]MH_SAM_APDU [01:17:49]CAPDU: 80 13 01 00 [01:17:49]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [01:17:49]Write i2c OK [01:17:49]MH_I2C_Read... [01:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:49]Read from MH i2c: E2 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 0E 00 [01:17:49]MH_I2C_Read... [01:17:49]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FA [01:17:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:17:49]wFMCommunicate OK [01:17:49]SAM_PROTO_GetShiftState done [01:17:49]FM_GetShiftState done [01:17:49]req_shift_opened done [01:17:49]requested_item shift.open_date is exist - process it [01:17:49]req_shift_open_date [01:17:49]req_shift_open_date done [01:17:49]produce_requested_data done [01:17:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49897,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:17:49]process_action_free close_receipt [01:17:49]json_value_free [01:17:49]json_value_free done [01:17:49]process_json_proto returns [01:17:49]Send response to host [01:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49897,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:17:49]free response buf [01:17:49]execute_script done [01:17:49]execute_script returns [01:17:49]free content buf [01:17:49]Sock 7.Close socket [01:17:49]Sock 7.Thread stoped [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:08]accept exits with 9 [01:20:08]New connection [01:20:08]New thread 3067211108 created [01:20:08]Thread 3067354468 joined [01:20:08]Waiting for new connection... [01:20:08] Sock 9.Parse request [01:20:08]Sock 9.Check first char [01:20:08]Sock 9.First char is OK [01:20:08]request: POST /json_proto HTTP/1.0 [01:20:08]Method: POST [01:20:08]URL: /json_proto [01:20:08]Method is POST - this is cgi request [01:20:08]url: /json_proto [01:20:08]query_string will be loaded in cgi processing [01:20:08]execute_cgi json_proto POST (null) [01:20:08]execute_cgi path=json_proto method=POST [01:20:08]POST find Content-Length [01:20:08]Host: 172.17.46.196:8080 [01:20:08]Content-Length: 952 [01:20:08]Content-Type: application/json [01:20:08] [01:20:08]POST finish read [01:20:08]Found Content-Length = 952 [01:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190072", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:08]execute_script... [01:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190072", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:08]POST & json_proto [01:20:08]process_json_proto [01:20:08]json parsed OK: [01:20:08]protocol is kg_v1.0 [01:20:08]action value=close_receipt [01:20:08]process_action close_receipt [01:20:08]cmd_close_receipt [01:20:08]MH_GetDate [01:20:08]Write to MH i2c: F0 00 00 C1 03 B3 [01:20:08]Write i2c OK [01:20:08]MH_I2C_Read... [01:20:08]Read from MH i2c: F0 [01:20:08]MH_I2C_Read... [01:20:08]Read from MH i2c: F0 09 00 [01:20:08]MH_I2C_Read... [01:20:08]Read from MH i2c: F0 09 00 C1 03 00 C8 9D C2 66 C4 85 C2 66 BA [01:20:08]GetLastDocTimeStamp 1724030264 [01:20:08]current date 1724030408 [01:20:08]FM_GetShiftState [01:20:08]SAM_PROTO_GetShiftState [01:20:08]wFMCommunicate request_size=4 [01:20:08]MH_SAM_APDU [01:20:08]CAPDU: 80 13 01 00 [01:20:08]Write to MH i2c: E2 08 00 C2 03 80 13 01 00 00 00 00 00 42 [01:20:08]Write i2c OK [01:20:08]MH_I2C_Read... [01:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:08]Read from MH i2c: E2 [01:20:08]MH_I2C_Read... [01:20:08]Read from MH i2c: E2 0E 00 [01:20:08]MH_I2C_Read... [01:20:08]Read from MH i2c: E2 0E 00 C2 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FC [01:20:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:20:08]wFMCommunicate OK [01:20:08]SAM_PROTO_GetShiftState done [01:20:08]FM_GetShiftState done [01:20:08]opened in 1724026361 [01:20:08]opened+sec_in_day 1724112761 [01:20:08]quantity*price = 13000 [01:20:08]sum+1 = 13001 [01:20:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004824 Печ зат Яшкино слив Крем 182г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.87 НДС 12% : 22.40 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 5 19.08.2024 01:20 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49898 ФПД: 150846067123091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012008&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49898&fm=150846067123091&tin=02508201610067®Number=0000000000092546&sum=21100 0 [01:20:09]StoreToDocumentArchive [01:20:09]shift 467 fd 49898 [01:20:09]save to /storage/0467/doc_00049898 [01:20:09]save last doc name /storage/0467/doc_00049898 to /storage/kkm_last_doc_name [01:20:09]save OK [01:20:09]Clear old archive folders... [01:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=404 [01:20:09]tlvbuf is 01041870 [01:20:09]SAM_PROTO_ClearQueue [01:20:09]wFMCommunicate request_size=4 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 09 00 00 [01:20:09]Write to MH i2c: E2 08 00 CF 03 80 09 00 00 00 00 00 00 44 [01:20:09]Write i2c OK [01:20:09]MH_I2C_Read... [01:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:09]Read from MH i2c: E2 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [01:20:09]RAPDU: 90 00 [01:20:09]wFMCommunicate OK [01:20:09]SAM_PROTO_ClearQueue done [01:20:09]KKMCreateOFDPacket [01:20:09]OFDProtocolAddRootSTLVToBuf [01:20:09]FM_MakeSignedData [01:20:09]FM_MakeSignedData [01:20:09]SAM_PROTO_SignData [01:20:09]wFMCommunicate request_size=4 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 0D 01 02 [01:20:09]Write to MH i2c: E2 08 00 D0 03 80 0D 01 02 00 00 00 00 4C [01:20:09]Write i2c OK [01:20:09]MH_I2C_Read... [01:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:09]Read from MH i2c: E2 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [01:20:09]RAPDU: 90 00 [01:20:09]wFMCommunicate OK [01:20:09]wFMCommunicate request_size=255 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 [01:20:09]Write to MH i2c: E2 02 01 D1 03 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 C7 [01:20:09]Write i2c OK [01:20:09]MH_I2C_Read... [01:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:09]Read from MH i2c: E2 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [01:20:09]RAPDU: 90 00 [01:20:09]wFMCommunicate OK [01:20:09]wFMCommunicate request_size=163 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C8 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C2 00 00 35 04 06 00 89 31 96 3F 23 93 [01:20:09]Write to MH i2c: E2 A6 00 D2 03 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C8 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C2 00 00 35 04 06 00 89 31 96 3F 23 93 00 00 59 [01:20:09]Write i2c OK [01:20:09]MH_I2C_Read... [01:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:09]Read from MH i2c: E2 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [01:20:09]RAPDU: 90 00 [01:20:09]wFMCommunicate OK [01:20:09]wFMCommunicate request_size=4 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 0D 03 02 [01:20:09]Write to MH i2c: E2 08 00 D3 03 80 0D 03 02 00 00 00 00 51 [01:20:09]Write i2c OK [01:20:09]MH_I2C_Read... [01:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:09]Read from MH i2c: E2 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 0B 00 [01:20:09]MH_I2C_Read... [01:20:09]Read from MH i2c: E2 0B 00 D3 03 00 BC 29 D4 67 BA 1A 9E 6C 90 00 50 [01:20:09]RAPDU: BC 29 D4 67 BA 1A 9E 6C 90 00 [01:20:09]wFMCommunicate OK [01:20:09]SAM_PROTO_SignData done [01:20:09]FM_MakeSignedData done [01:20:09]CreateOFDProtocolMessage [01:20:09]wFMCommunicate request_size=4 [01:20:09]MH_SAM_APDU [01:20:09]CAPDU: 80 11 00 00 [01:20:09]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [01:20:10]Write i2c OK [01:20:10]MH_I2C_Read... [01:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:10]Read from MH i2c: E2 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: E2 17 00 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [01:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:20:10]wFMCommunicate OK [01:20:10]CreateOFDProtocolMessage done [01:20:10]OFDSenderStorePacket 49898 [01:20:10]StoreOFDPacket docnum=49898 [01:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 DF 0A A0 01 64 28 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C8 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C2 00 00 35 04 06 00 89 31 96 3F 23 93 BC 29 D4 67 BA 1A 9E 6C [01:20:10]CheckFolder [01:20:10]dirname=/storage/ofd_packets [01:20:10]CheckFolder done [01:20:10]ProducePacketName [01:20:10]name=ofd_packets/00049898 [01:20:10]NVStorageSaveData ofd_packets/00049898 [01:20:10]File name is /storage/ofd_packets/00049898 [01:20:10]Write 454 bytes [01:20:10]NVStorageSaveData done [01:20:10]OFDSenderStorePacket done [01:20:10]KKMCreateOFDPacket done [01:20:10]NVStorageSaveData kkm_last_timestamp [01:20:10]File name is /storage/kkm_last_timestamp [01:20:10]Write 4 bytes [01:20:10]NVStorageSaveData done [01:20:10]ExternCall_PrintAddStr [01:20:10]wPrintStart [01:20:10]Write to MH i2c: 01 00 00 D5 03 D8 [01:20:10]Write i2c OK [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 07 00 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 FF 0F ED [01:20:10]RasterBufferAndPrint [01:20:10]line Счет N : (3)190072 [01:20:10]line ИНН: 02508201610067 [01:20:10]line Контрольно-Кассовый Чек [01:20:10]line ПРОДАЖА [01:20:10]line Товар: 2000036220012 [01:20:10]line Кофе Капучино XL(GABB TRADE) [01:20:10]line 1.000 * 130.00 [01:20:10]line = 130.00 [01:20:10]line НДС 12% НСП 1% [01:20:10]line > о реализуемом товаре [01:20:10]line Товар: 4603290004824 [01:20:10]line Печ зат Яшкино слив Крем 182г [01:20:10]line 1.000 * 81.00 [01:20:10]line = 81.00 [01:20:10]line НДС 12% НСП 1% [01:20:10]line > о реализуемом товаре [01:20:10]line ИТОГО: 211.00 [01:20:10]line НСП 1% : 1.87 [01:20:10]line НДС 12% : 22.40 [01:20:10]line Наличными: 211.00 [01:20:10]line Безнал.: 0.00 [01:20:10]line Место: АЗС № 95 "Партнер Нефть" [01:20:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:20:10]line СНО: Общий режим [01:20:10]line Чек 5 19.08.2024 01:20 [01:20:10]line Смена: 467 ФФД: 1.0 [01:20:10]line ЗНМ: 0300000078 [01:20:10]line РНМ: 0000000000092546 [01:20:10]line Версия ККМ: 001 [01:20:10]line ФМ: 0000000000871800 [01:20:10]line ФД: 49898 [01:20:10]line ФПД: 150846067123091 [01:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012008&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49898&fm=150846067123091&tin=02508201610067®Number=0000000000092546&sum=21100 [01:20:10]OFD Sender: Processing packet 49898 [packets to send 21, broken 20] [01:20:10]ProducePacketName [01:20:10]name=ofd_packets/00049898 [01:20:10]OFD Sender: To server: pG, [01:20:10]CommunicateWithHost lk.salyk.kg:30040 [01:20:10]ConnectInit lk.salyk.kg [01:20:10]line 0 [01:20:10]written 0, free lines is 4095 [01:20:10]Connected sock=7 [01:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 DF 0A A0 01 64 28 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C8 9D C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C2 00 00 35 04 06 00 89 31 96 3F 23 93 BC 29 D4 67 BA 1A 9E 6C [01:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AD C7 47 00 EA 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 38 30 30 10 04 04 00 EA C2 00 00 F4 03 04 00 37 48 C2 66 B6 04 01 00 00 B9 81 0B B9 90 AC 83 17 [01:20:10]CommunicateWithHost err = 0 [01:20:10]CheckOFDResponse [01:20:10]1017 (14) - 77093643461234 [01:20:10]1041 (16) - 0000000000871800 [01:20:10]1040 (4) - 49898 [01:20:10]1012 (4) - 18.08.2024 19:15 [01:20:10]1206 (1) - 0 [01:20:10]OFD Sender: Remove packet 49898 [01:20:10]ProducePacketName [01:20:10]name=ofd_packets/00049898 [01:20:10]NVStorageDeleteData [01:20:10]Write to MH i2c: 01 00 00 05 04 09 [01:20:10]Write i2c OK [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 07 00 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 6E 0C 8A [01:20:10]RasterBufferAndPrint [01:20:10]line [01:20:10]line [01:20:10]line [01:20:10]line [01:20:10]line [01:20:10]written 0, free lines is 3188 [01:20:10]MH_Cut [01:20:10]Write to MH i2c: D1 01 00 0C 04 01 E2 [01:20:10]Write i2c OK [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: D1 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: D1 01 00 [01:20:10]MH_I2C_Read... [01:20:10]Read from MH i2c: D1 01 00 0C 04 00 E1 [01:20:10]Write to MH i2c: 01 00 00 0D 04 11 [01:20:10]Write i2c OK [01:20:10]MH_I2C_Read... [01:20:11]OFD Sender: No OFD packet to send [01:20:11]*** Cut start [01:20:11]*** Purtial cut [01:20:11]*** Stage 1: CUTSNS_PIN = 1 [01:20:11]Read from MH i2c: 01 [01:20:11]MH_I2C_Read... [01:20:11]*** Stop cut motor [01:20:11]*** Cut end [01:20:11]Read from MH i2c: 01 07 00 [01:20:11]MH_I2C_Read... [01:20:11]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [01:20:11]process_action close_receipt done [01:20:11]requested_data is exist [01:20:11]produce_requested_data [01:20:11]requested_item fm.sn is exist - process it [01:20:11]wFMCommunicate request_size=4 [01:20:11]MH_SAM_APDU [01:20:11]CAPDU: 80 11 00 00 [01:20:11]Write to MH i2c: E2 08 00 0E 04 80 11 00 00 00 00 00 00 8C [01:20:11]Write i2c OK [01:20:11]MH_I2C_Read... [01:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:11]Read from MH i2c: E2 [01:20:11]MH_I2C_Read... [01:20:11]Read from MH i2c: E2 17 00 [01:20:11]MH_I2C_Read... [01:20:11]Read from MH i2c: E2 17 00 0E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [01:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:20:11]wFMCommunicate OK [01:20:11]requested_item fd.num is exist - process it [01:20:11]SAM_PROTO_GetFieldsCounters [01:20:11]wFMCommunicate request_size=4 [01:20:11]MH_SAM_APDU [01:20:11]CAPDU: 80 13 00 00 [01:20:11]Write to MH i2c: E2 08 00 0F 04 80 13 00 00 00 00 00 00 8F [01:20:11]Write i2c OK [01:20:11]MH_I2C_Read... [01:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:12]Read from MH i2c: E2 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: E2 62 00 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: E2 62 00 0F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [01: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 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:12]wFMCommunicate OK [01:20:12]SAM_PROTO_GetFieldsCounters done [01:20:12]requested_item shift.num is exist - process it [01:20:12]requested_item shift.opened is exist - process it [01:20:12]req_shift_opened [01:20:12]FM_GetShiftState [01:20:12]SAM_PROTO_GetShiftState [01:20:12]wFMCommunicate request_size=4 [01:20:12]MH_SAM_APDU [01:20:12]CAPDU: 80 13 01 00 [01:20:12]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [01:20:12]Write i2c OK [01:20:12]MH_I2C_Read... [01:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:12]Read from MH i2c: E2 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: E2 0E 00 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4B [01:20:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:20:12]wFMCommunicate OK [01:20:12]SAM_PROTO_GetShiftState done [01:20:12]FM_GetShiftState done [01:20:12]req_shift_opened done [01:20:12]requested_item shift.open_date is exist - process it [01:20:12]req_shift_open_date [01:20:12]req_shift_open_date done [01:20:12]produce_requested_data done [01:20:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49898,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:20:12]process_action_free close_receipt [01:20:12]json_value_free [01:20:12]json_value_free done [01:20:12]process_json_proto returns [01:20:12]Send response to host [01:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49898,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:20:12]free response buf [01:20:12]execute_script done [01:20:12]execute_script returns [01:20:12]free content buf [01:20:12]Sock 9.Close socket [01:20:12]Sock 9.Thread stoped [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:24:58]accept exits with 10 [01:24:58]New connection [01:24:58]New thread 3067354468 created [01:24:58]Thread 3067211108 joined [01:24:58]Waiting for new connection... [01:24:58] Sock 10.Parse request [01:24:58]Sock 10.Check first char [01:24:58]Sock 10.First char is OK [01:24:58]request: POST /json_proto HTTP/1.0 [01:24:58]Method: POST [01:24:58]URL: /json_proto [01:24:58]Method is POST - this is cgi request [01:24:58]url: /json_proto [01:24:58]query_string will be loaded in cgi processing [01:24:58]execute_cgi json_proto POST (null) [01:24:58]execute_cgi path=json_proto method=POST [01:24:58]POST find Content-Length [01:24:58]Host: 172.17.46.196:8080 [01:24:58]Content-Length: 866 [01:24:58]Content-Type: application/json [01:24:58] [01:24:58]POST finish read [01:24:58]Found Content-Length = 866 [01:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190073", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:58]execute_script... [01:24:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190073", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:58]POST & json_proto [01:24:58]process_json_proto [01:24:58]json parsed OK: [01:24:58]protocol is kg_v1.0 [01:24:58]action value=close_receipt [01:24:58]process_action close_receipt [01:24:58]cmd_close_receipt [01:24:58]MH_GetDate [01:24:58]Write to MH i2c: F0 00 00 11 04 04 [01:24:58]Write i2c OK [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: F0 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: F0 09 00 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: F0 09 00 11 04 00 EA 9E C2 66 C4 85 C2 66 2E [01:24:58]GetLastDocTimeStamp 1724030408 [01:24:58]current date 1724030698 [01:24:58]FM_GetShiftState [01:24:58]SAM_PROTO_GetShiftState [01:24:58]wFMCommunicate request_size=4 [01:24:58]MH_SAM_APDU [01:24:58]CAPDU: 80 13 01 00 [01:24:58]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [01:24:58]Write i2c OK [01:24:58]MH_I2C_Read... [01:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:58]Read from MH i2c: E2 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: E2 0E 00 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4D [01:24:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:24:58]wFMCommunicate OK [01:24:58]SAM_PROTO_GetShiftState done [01:24:58]FM_GetShiftState done [01:24:58]opened in 1724026361 [01:24:58]opened+sec_in_day 1724112761 [01:24:58]quantity*price = 14000 [01:24:58]sum+1 = 14001 [01:24:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 6 19.08.2024 01:24 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49899 ФПД: 33525974486812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012458&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49899&fm=33525974486812&tin=02508201610067®Number=0000000000092546&sum=18000 0 [01:24:59]StoreToDocumentArchive [01:24:59]shift 467 fd 49899 [01:24:59]save to /storage/0467/doc_00049899 [01:24:59]save last doc name /storage/0467/doc_00049899 to /storage/kkm_last_doc_name [01:24:59]save OK [01:24:59]Clear old archive folders... [01:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=370 [01:24:59]tlvbuf is 0104F970 [01:24:59]SAM_PROTO_ClearQueue [01:24:59]wFMCommunicate request_size=4 [01:24:59]MH_SAM_APDU [01:24:59]CAPDU: 80 09 00 00 [01:24:59]Write to MH i2c: E2 08 00 1F 04 80 09 00 00 00 00 00 00 95 [01:24:59]Write i2c OK [01:24:59]MH_I2C_Read... [01:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:59]Read from MH i2c: E2 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [01:24:59]RAPDU: 90 00 [01:24:59]wFMCommunicate OK [01:24:59]SAM_PROTO_ClearQueue done [01:24:59]KKMCreateOFDPacket [01:24:59]OFDProtocolAddRootSTLVToBuf [01:24:59]FM_MakeSignedData [01:24:59]FM_MakeSignedData [01:24:59]SAM_PROTO_SignData [01:24:59]wFMCommunicate request_size=4 [01:24:59]MH_SAM_APDU [01:24:59]CAPDU: 80 0D 01 02 [01:24:59]Write to MH i2c: E2 08 00 20 04 80 0D 01 02 00 00 00 00 9D [01:24:59]Write i2c OK [01:24:59]MH_I2C_Read... [01:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:59]Read from MH i2c: E2 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [01:24:59]RAPDU: 90 00 [01:24:59]wFMCommunicate OK [01:24:59]wFMCommunicate request_size=255 [01:24:59]MH_SAM_APDU [01:24:59]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [01:24:59]Write to MH i2c: E2 02 01 21 04 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 3F [01:24:59]Write i2c OK [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 [01:24:59]MH_I2C_Read... [01:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:59]Read from MH i2c: E2 03 00 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [01:24:59]RAPDU: 90 00 [01:24:59]wFMCommunicate OK [01:24:59]wFMCommunicate request_size=129 [01:24:59]MH_SAM_APDU [01:24:59]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EA 9E C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C2 00 00 35 04 06 00 1E 7D DF CC CF 1C [01:24:59]Write to MH i2c: E2 84 00 22 04 80 0D 02 02 7C 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EA 9E C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C2 00 00 35 04 06 00 1E 7D DF CC CF 1C 00 00 45 [01:24:59]Write i2c OK [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 [01:24:59]MH_I2C_Read... [01:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:59]Read from MH i2c: E2 03 00 [01:24:59]MH_I2C_Read... [01:24:59]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [01:24:59]RAPDU: 90 00 [01:24:59]wFMCommunicate OK [01:24:59]wFMCommunicate request_size=4 [01:24:59]MH_SAM_APDU [01:24:59]CAPDU: 80 0D 03 02 [01:24:59]Write to MH i2c: E2 08 00 23 04 80 0D 03 02 00 00 00 00 A2 [01:24:59]Write i2c OK [01:24:59]MH_I2C_Read... [01:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:00]Read from MH i2c: E2 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: E2 0B 00 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: E2 0B 00 23 04 00 3C C6 A5 76 D2 94 8D C2 90 00 75 [01:25:00]RAPDU: 3C C6 A5 76 D2 94 8D C2 90 00 [01:25:00]wFMCommunicate OK [01:25:00]SAM_PROTO_SignData done [01:25:00]FM_MakeSignedData done [01:25:00]CreateOFDProtocolMessage [01:25:00]wFMCommunicate request_size=4 [01:25:00]MH_SAM_APDU [01:25:00]CAPDU: 80 11 00 00 [01:25:00]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [01:25:00]Write i2c OK [01:25:00]MH_I2C_Read... [01:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:00]Read from MH i2c: E2 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: E2 17 00 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 ED [01:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:25:00]wFMCommunicate OK [01:25:00]CreateOFDProtocolMessage done [01:25:00]OFDSenderStorePacket 49899 [01:25:00]StoreOFDPacket docnum=49899 [01:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 86 01 00 00 C5 58 7E 01 98 FE 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EA 9E C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C2 00 00 35 04 06 00 1E 7D DF CC CF 1C 3C C6 A5 76 D2 94 8D C2 [01:25:00]CheckFolder [01:25:00]dirname=/storage/ofd_packets [01:25:00]CheckFolder done [01:25:00]ProducePacketName [01:25:00]name=ofd_packets/00049899 [01:25:00]NVStorageSaveData ofd_packets/00049899 [01:25:00]File name is /storage/ofd_packets/00049899 [01:25:00]Write 420 bytes [01:25:00]NVStorageSaveData done [01:25:00]OFDSenderStorePacket done [01:25:00]KKMCreateOFDPacket done [01:25:00]NVStorageSaveData kkm_last_timestamp [01:25:00]File name is /storage/kkm_last_timestamp [01:25:00]Write 4 bytes [01:25:00]NVStorageSaveData done [01:25:00]ExternCall_PrintAddStr [01:25:00]wPrintStart [01:25:00]Write to MH i2c: 01 00 00 25 04 29 [01:25:00]Write i2c OK [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 07 00 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [01:25:00]RasterBufferAndPrint [01:25:00]line Счет N : (3)190073 [01:25:00]line ИНН: 02508201610067 [01:25:00]line Контрольно-Кассовый Чек [01:25:00]line ПРОДАЖА [01:25:00]line Товар: 47803008 [01:25:00]line Сигареты Winston XS Blue [01:25:00]line 1.000 * 140.00 [01:25:00]line = 140.00 [01:25:00]line НДС 12% НСП 1% [01:25:00]line > о реализуемом товаре [01:25:00]line Товар: 4700000160211 [01:25:00]line Вода Легенда 0,5л [01:25:00]line 1.000 * 40.00 [01:25:00]line = 40.00 [01:25:00]line НДС 12% НСП 1% [01:25:00]line > о реализуемом товаре [01:25:00]line ИТОГО: 180.00 [01:25:00]line НСП 1% : 1.59 [01:25:00]line НДС 12% : 19.12 [01:25:00]line Наличными: 180.00 [01:25:00]line Безнал.: 0.00 [01:25:00]line Место: АЗС № 95 "Партнер Нефть" [01:25:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:25:00]line СНО: Общий режим [01:25:00]line Чек 6 19.08.2024 01:24 [01:25:00]line Смена: 467 ФФД: 1.0 [01:25:00]line ЗНМ: 0300000078 [01:25:00]line РНМ: 0000000000092546 [01:25:00]line Версия ККМ: 001 [01:25:00]line ФМ: 0000000000871800 [01:25:00]line ФД: 49899 [01:25:00]line ФПД: 33525974486812 [01:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012458&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49899&fm=33525974486812&tin=02508201610067®Number=0000000000092546&sum=18000 [01:25:00]line 0 [01:25:00]OFD Sender: Processing packet 49899 [packets to send 21, broken 20] [01:25:00]ProducePacketName [01:25:00]name=ofd_packets/00049899 [01:25:00]OFD Sender: To server: pG, [01:25:00]CommunicateWithHost lk.salyk.kg:30040 [01:25:00]ConnectInit lk.salyk.kg [01:25:00]written 0, free lines is 4095 [01:25:00]Connected sock=9 [01:25: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 38 30 30 86 01 00 00 C5 58 7E 01 98 FE 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EA 9E C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C2 00 00 35 04 06 00 1E 7D DF CC CF 1C 3C C6 A5 76 D2 94 8D C2 [01:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0D 10 47 00 66 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 38 30 30 10 04 04 00 EB C2 00 00 F4 03 04 00 59 49 C2 66 B6 04 01 00 00 18 45 82 CC C5 D0 CB 19 [01:25:00]CommunicateWithHost err = 0 [01:25:00]CheckOFDResponse [01:25:00]1017 (14) - 77093643461234 [01:25:00]1041 (16) - 0000000000871800 [01:25:00]1040 (4) - 49899 [01:25:00]1012 (4) - 18.08.2024 19:19 [01:25:00]1206 (1) - 0 [01:25:00]OFD Sender: Remove packet 49899 [01:25:00]ProducePacketName [01:25:00]name=ofd_packets/00049899 [01:25:00]NVStorageDeleteData [01:25:00]Write to MH i2c: 01 00 00 53 04 57 [01:25:00]Write i2c OK [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 07 00 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 8D 0C F7 [01:25:00]RasterBufferAndPrint [01:25:00]line [01:25:00]line [01:25:00]line [01:25:00]line [01:25:00]line [01:25:00]written 0, free lines is 3219 [01:25:00]MH_Cut [01:25:00]Write to MH i2c: D1 01 00 5A 04 01 30 [01:25:00]Write i2c OK [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: D1 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: D1 01 00 [01:25:00]MH_I2C_Read... [01:25:00]Read from MH i2c: D1 01 00 5A 04 00 2F [01:25:00]Write to MH i2c: 01 00 00 5B 04 5F [01:25:00]Write i2c OK [01:25:00]MH_I2C_Read... [01:25:01]OFD Sender: No OFD packet to send [01:25:01]*** Cut start [01:25:01]*** Purtial cut [01:25:01]*** CUTSNS_PIN = 0 [01:25:01]*** Stage 1: CUTSNS_PIN = 1 [01:25:03]Read from MH i2c: 01 [01:25:03]MH_I2C_Read... [01:25:03]*** Stop cut motor [01:25:03]Read from MH i2c: 01 07 00 [01:25:03]MH_I2C_Read... [01:25:03]*** Cut end [01:25:03]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [01:25:03]process_action close_receipt done [01:25:03]requested_data is exist [01:25:03]produce_requested_data [01:25:03]requested_item fm.sn is exist - process it [01:25:03]wFMCommunicate request_size=4 [01:25:03]MH_SAM_APDU [01:25:03]CAPDU: 80 11 00 00 [01:25:03]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:03]Read from MH i2c: E2 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 17 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [01:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:25:03]wFMCommunicate OK [01:25:03]requested_item fd.num is exist - process it [01:25:03]SAM_PROTO_GetFieldsCounters [01:25:03]wFMCommunicate request_size=4 [01:25:03]MH_SAM_APDU [01:25:03]CAPDU: 80 13 00 00 [01:25:03]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:03]Read from MH i2c: E2 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 62 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [01:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:03]wFMCommunicate OK [01:25:03]SAM_PROTO_GetFieldsCounters done [01:25:03]requested_item shift.num is exist - process it [01:25:03]requested_item shift.opened is exist - process it [01:25:03]req_shift_opened [01:25:03]FM_GetShiftState [01:25:03]SAM_PROTO_GetShiftState [01:25:03]wFMCommunicate request_size=4 [01:25:03]MH_SAM_APDU [01:25:03]CAPDU: 80 13 01 00 [01:25:03]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:03]Read from MH i2c: E2 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 0E 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 99 [01:25:03]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:25:03]wFMCommunicate OK [01:25:03]SAM_PROTO_GetShiftState done [01:25:03]FM_GetShiftState done [01:25:03]req_shift_opened done [01:25:03]requested_item shift.open_date is exist - process it [01:25:03]req_shift_open_date [01:25:03]req_shift_open_date done [01:25:03]produce_requested_data done [01:25:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49899,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:25:03]process_action_free close_receipt [01:25:03]json_value_free [01:25:03]json_value_free done [01:25:03]process_json_proto returns [01:25:03]Send response to host [01:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49899,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:25:03]free response buf [01:25:03]execute_script done [01:25:03]execute_script returns [01:25:03]free content buf [01:25:03]Sock 10.Close socket [01:25:03]Sock 10.Thread stoped [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:37]accept exits with 7 [01:54:37]New connection [01:54:37]New thread 3067211108 created [01:54:37]Thread 3067354468 joined [01:54:37]Waiting for new connection... [01:54:37] Sock 7.Parse request [01:54:37]Sock 7.Check first char [01:54:37]Sock 7.First char is OK [01:54:37]request: POST /json_proto HTTP/1.0 [01:54:37]Method: POST [01:54:37]URL: /json_proto [01:54:37]Method is POST - this is cgi request [01:54:37]url: /json_proto [01:54:37]query_string will be loaded in cgi processing [01:54:37]execute_cgi json_proto POST (null) [01:54:37]execute_cgi path=json_proto method=POST [01:54:37]POST find Content-Length [01:54:37]Host: 172.17.46.196:8080 [01:54:37]Content-Length: 805 [01:54:37]Content-Type: application/json [01:54:37] [01:54:37]POST finish read [01:54:37]Found Content-Length = 805 [01:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190074", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:54:37]execute_script... [01:54: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 : (3)190074", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:54:37]POST & json_proto [01:54:37]process_json_proto [01:54:37]json parsed OK: [01:54:37]protocol is kg_v1.0 [01:54:37]action value=close_receipt [01:54:37]process_action close_receipt [01:54:37]cmd_close_receipt [01:54:37]MH_GetDate [01:54:37]Write to MH i2c: F0 00 00 5F 04 52 [01:54:37]Write i2c OK [01:54:37]MH_I2C_Read... [01:54:37]Read from MH i2c: F0 [01:54:37]MH_I2C_Read... [01:54:37]Read from MH i2c: F0 09 00 [01:54:37]MH_I2C_Read... [01:54:37]Read from MH i2c: F0 09 00 5F 04 00 DE A5 C2 66 C4 85 C2 66 77 [01:54:37]GetLastDocTimeStamp 1724030698 [01:54:37]current date 1724032478 [01:54:37]FM_GetShiftState [01:54:37]SAM_PROTO_GetShiftState [01:54:37]wFMCommunicate request_size=4 [01:54:37]MH_SAM_APDU [01:54:37]CAPDU: 80 13 01 00 [01:54:37]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [01:54:37]Write i2c OK [01:54:37]MH_I2C_Read... [01:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:37]Read from MH i2c: E2 [01:54:37]MH_I2C_Read... [01:54:37]Read from MH i2c: E2 0E 00 [01:54:37]MH_I2C_Read... [01:54:37]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9B [01:54:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:54:37]wFMCommunicate OK [01:54:37]SAM_PROTO_GetShiftState done [01:54:37]FM_GetShiftState done [01:54:37]opened in 1724026361 [01:54:37]opened+sec_in_day 1724112761 [01:54:37]quantity*price = 4200 [01:54:37]sum+1 = 4201 [01:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 0.00 Безнал.: 42.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 7 19.08.2024 01:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49900 ФПД: 95943556808161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T015438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49900&fm=95943556808161&tin=02508201610067®Number=0000000000092546&sum=4200 0 [01:54:39]StoreToDocumentArchive [01:54:39]shift 467 fd 49900 [01:54:39]save to /storage/0467/doc_00049900 [01:54:39]save last doc name /storage/0467/doc_00049900 to /storage/kkm_last_doc_name [01:54:39]save OK [01:54:39]Clear old archive folders... [01:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:54:39]tlvbuf is 00F69AD0 [01:54:39]SAM_PROTO_ClearQueue [01:54:39]wFMCommunicate request_size=4 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 09 00 00 [01:54:39]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [01:54:39]RAPDU: 90 00 [01:54:39]wFMCommunicate OK [01:54:39]SAM_PROTO_ClearQueue done [01:54:39]KKMCreateOFDPacket [01:54:39]OFDProtocolAddRootSTLVToBuf [01:54:39]FM_MakeSignedData [01:54:39]FM_MakeSignedData [01:54:39]SAM_PROTO_SignData [01:54:39]wFMCommunicate request_size=4 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 0D 01 02 [01:54:39]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [01:54:39]RAPDU: 90 00 [01:54:39]wFMCommunicate OK [01:54:39]wFMCommunicate request_size=255 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DE A5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [01:54:39]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DE A5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 EA [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [01:54:39]RAPDU: 90 00 [01:54:39]wFMCommunicate OK [01:54:39]wFMCommunicate request_size=34 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C2 00 00 35 04 06 00 57 42 99 9F 3D E1 [01:54:39]Write to MH i2c: E2 25 00 70 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C2 00 00 35 04 06 00 57 42 99 9F 3D E1 00 00 44 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [01:54:39]RAPDU: 90 00 [01:54:39]wFMCommunicate OK [01:54:39]wFMCommunicate request_size=4 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 0D 03 02 [01:54:39]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 0B 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 0B 00 71 04 00 D9 76 1F CB 63 1D 9D 47 90 00 8E [01:54:39]RAPDU: D9 76 1F CB 63 1D 9D 47 90 00 [01:54:39]wFMCommunicate OK [01:54:39]SAM_PROTO_SignData done [01:54:39]FM_MakeSignedData done [01:54:39]CreateOFDProtocolMessage [01:54:39]wFMCommunicate request_size=4 [01:54:39]MH_SAM_APDU [01:54:39]CAPDU: 80 11 00 00 [01:54:39]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:39]Read from MH i2c: E2 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 17 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [01:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:54:39]wFMCommunicate OK [01:54:39]CreateOFDProtocolMessage done [01:54:39]OFDSenderStorePacket 49900 [01:54:39]StoreOFDPacket docnum=49900 [01:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 51 BF 1F 01 AD DC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DE A5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C2 00 00 35 04 06 00 57 42 99 9F 3D E1 D9 76 1F CB 63 1D 9D 47 [01:54:39]CheckFolder [01:54:39]dirname=/storage/ofd_packets [01:54:39]CheckFolder done [01:54:39]ProducePacketName [01:54:39]name=ofd_packets/00049900 [01:54:39]NVStorageSaveData ofd_packets/00049900 [01:54:39]File name is /storage/ofd_packets/00049900 [01:54:39]Write 325 bytes [01:54:39]NVStorageSaveData done [01:54:39]OFDSenderStorePacket done [01:54:39]KKMCreateOFDPacket done [01:54:39]NVStorageSaveData kkm_last_timestamp [01:54:39]File name is /storage/kkm_last_timestamp [01:54:39]Write 4 bytes [01:54:39]NVStorageSaveData done [01:54:39]ExternCall_PrintAddStr [01:54:39]wPrintStart [01:54:39]Write to MH i2c: 01 00 00 73 04 77 [01:54:39]Write i2c OK [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: 01 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: 01 07 00 [01:54:39]MH_I2C_Read... [01:54:39]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [01:54:39]RasterBufferAndPrint [01:54:39]line Счет N : (3)190074 [01:54:39]line ИНН: 02508201610067 [01:54:39]line Контрольно-Кассовый Чек [01:54:39]line ПРОДАЖА [01:54:39]line Товар: 5449000005489 [01:54:39]line Вода Бонаква 1л б/г [01:54:39]line 1.000 * 42.00 [01:54:39]line = 42.00 [01:54:39]line НДС 12% НСП 1% [01:54:39]line > о реализуемом товаре [01:54:39]line ИТОГО: 42.00 [01:54:39]line НСП 1% : 0.37 [01:54:39]line НДС 12% : 4.46 [01:54:39]line Наличными: 0.00 [01:54:39]line Безнал.: 42.00 [01:54:39]line Место: АЗС № 95 "Партнер Нефть" [01:54:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:54:39]line СНО: Общий режим [01:54:39]line Чек 7 19.08.2024 01:54 [01:54:39]line Смена: 467 ФФД: 1.0 [01:54:39]line ЗНМ: 0300000078 [01:54:39]line РНМ: 0000000000092546 [01:54:39]line Версия ККМ: 001 [01:54:39]line Платежная система: O! деньги [01:54:39]line ФМ: 0000000000871800 [01:54:39]line ФД: 49900 [01:54:39]line ФПД: 95943556808161 [01:54:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T015438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49900&fm=95943556808161&tin=02508201610067®Number=0000000000092546&sum=4200 [01:54:40]OFD Sender: Processing packet 49900 [packets to send 21, broken 20] [01:54:40]ProducePacketName [01:54:40]name=ofd_packets/00049900 [01:54:40]OFD Sender: To server: pG, [01:54:40]CommunicateWithHost lk.salyk.kg:30040 [01:54:40]ConnectInit lk.salyk.kg [01:54:40]line 0 [01:54:40]written 0, free lines is 4095 [01:54:40]Connected sock=11 [01:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 51 BF 1F 01 AD DC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 10 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 DE A5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C2 00 00 35 04 06 00 57 42 99 9F 3D E1 D9 76 1F CB 63 1D 9D 47 [01:54:40]Write to MH i2c: 01 00 00 9D 04 A1 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 07 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 B9 0C 6D [01:54:40]RasterBufferAndPrint [01:54:40]line [01:54:40]line [01:54:40]line [01:54:40]line [01:54:40]line [01:54:40]written 0, free lines is 3263 [01:54:40]MH_Cut [01:54:40]Write to MH i2c: D1 01 00 A4 04 01 7A [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: D1 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: D1 01 00 [01:54:40]MH_I2C_Read... [01:54:40]Read from MH i2c: D1 01 00 A4 04 00 79 [01:54:40]Write to MH i2c: 01 00 00 A5 04 A9 [01:54:40]Write i2c OK [01:54:40]MH_I2C_Read... [01:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B6 C8 47 00 48 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C2 00 00 F4 03 04 00 4D 50 C2 66 B6 04 01 00 00 60 D5 E1 E4 82 E7 4E 41 [01:54:40]CommunicateWithHost err = 0 [01:54:40]CheckOFDResponse [01:54:40]1017 (14) - 77093643461234 [01:54:40]1041 (16) - 0000000000871800 [01:54:40]1040 (4) - 49900 [01:54:40]1012 (4) - 18.08.2024 19:49 [01:54:40]1206 (1) - 0 [01:54:40]OFD Sender: Remove packet 49900 [01:54:40]ProducePacketName [01:54:40]name=ofd_packets/00049900 [01:54:40]NVStorageDeleteData [01:54:41]OFD Sender: No OFD packet to send [01:54:41]*** Cut start [01:54:41]*** Purtial cut [01:54:41]*** Stage 1: CUTSNS_PIN = 1 [01:54:41]Read from MH i2c: 01 [01:54:41]MH_I2C_Read... [01:54:41]*** Stop cut motor [01:54:41]*** Cut end [01:54:41]Read from MH i2c: 01 07 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [01:54:41]process_action close_receipt done [01:54:41]requested_data is exist [01:54:41]produce_requested_data [01:54:41]requested_item fm.sn is exist - process it [01:54:41]wFMCommunicate request_size=4 [01:54:41]MH_SAM_APDU [01:54:41]CAPDU: 80 11 00 00 [01:54:41]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:41]Read from MH i2c: E2 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 17 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [01:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:54:41]wFMCommunicate OK [01:54:41]requested_item fd.num is exist - process it [01:54:41]SAM_PROTO_GetFieldsCounters [01:54:41]wFMCommunicate request_size=4 [01:54:41]MH_SAM_APDU [01:54:41]CAPDU: 80 13 00 00 [01:54:41]Write to MH i2c: E2 08 00 A7 04 80 13 00 00 00 00 00 00 27 [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:54:41]Read from MH i2c: E2 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 62 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 62 00 A7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [01:54:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:54:41]wFMCommunicate OK [01:54:41]SAM_PROTO_GetFieldsCounters done [01:54:41]requested_item shift.num is exist - process it [01:54:41]requested_item shift.opened is exist - process it [01:54:41]req_shift_opened [01:54:41]FM_GetShiftState [01:54:41]SAM_PROTO_GetShiftState [01:54:41]wFMCommunicate request_size=4 [01:54:41]MH_SAM_APDU [01:54:41]CAPDU: 80 13 01 00 [01:54:41]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [01:54:41]Write i2c OK [01:54:41]MH_I2C_Read... [01:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:41]Read from MH i2c: E2 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 0E 00 [01:54:41]MH_I2C_Read... [01:54:41]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E3 [01:54:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [01:54:41]wFMCommunicate OK [01:54:41]SAM_PROTO_GetShiftState done [01:54:41]FM_GetShiftState done [01:54:41]req_shift_opened done [01:54:41]requested_item shift.open_date is exist - process it [01:54:41]req_shift_open_date [01:54:41]req_shift_open_date done [01:54:41]produce_requested_data done [01:54:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49900,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [01:54:41]process_action_free close_receipt [01:54:41]json_value_free [01:54:41]json_value_free done [01:54:41]process_json_proto returns [01:54:41]Send response to host [01:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49900,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [01:54:41]free response buf [01:54:41]execute_script done [01:54:41]execute_script returns [01:54:41]free content buf [01:54:41]Sock 7.Close socket [01:54:41]Sock 7.Thread stoped [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send